Looking for a little direction

voorhees

New member
Joined
Oct 12, 2005
Messages
1
Programming Experience
Beginner
Hi,

I am very new to Visual Studio .NET 2003 and Visual Basic. I am trying to build a Visual Basic application that basically runs a C program I already have. Can this be done? I have been playing around and of course made the prerequisite "Hello world!" program, however I have been unsuccessful in figuring out if I can put my C code in the VB application to build it as one application. I am assuming I am just searching for the wrong thing. I was looking for a little help in pointing me in the right direction. Is VB the right place to start? Or C++? Where do I put the C code in the application? :confused:

Any help would be much appreciated. Thank you very much in advance.
 
voorhees said:
Hi,

I am very new to Visual Studio .NET 2003 and Visual Basic. I am trying to build a Visual Basic application that basically runs a C program I already have. Can this be done? I have been playing around and of course made the prerequisite "Hello world!" program, however I have been unsuccessful in figuring out if I can put my C code in the VB application to build it as one application. I am assuming I am just searching for the wrong thing. I was looking for a little help in pointing me in the right direction. Is VB the right place to start? Or C++? Where do I put the C code in the application? :confused:

Any help would be much appreciated. Thank you very much in advance.

There are many C code to VB code converters.. Try google and search for one ;)

No idea if you can put C into VB alone :S
 
you would have to convert the c code to vb.net before you can use it in a vb.net application

another option would be to convert the c code to c++.net or c#.net then make a c++.net or c# library project and reference that dll in the vb.net code
 
Hi voorhees,
Is it OpenGL code? If it's so, then google for "Using OpenGL with VB.NET" :)
However notice that the code that runs within the common language runtime is called managed code, whereas the code that runs outside the common language runtime is called unmanaged code. The common language runtime provides an interoperability layer, which allows both the managed code and the unmanaged code to interoperate with each other.
An example (not fully related to your question but it will give you an idea i beleive): http://www.codeproject.com/Purgatory/c_dll_in_vb.asp#xx919238xx

Regards ;)
 
Back
Top