Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Unable to use a c program in my visual basics project..
Plaese explain the procedure... Thanx in advance.
Posted
Comments
[no name] 4-May-14 13:27pm    
Why are you "unable"? Before someone can explain any "procedure" we would at least have to have some idea of what it was that we would be trying to explain to you.
Member 10771582 4-May-14 13:30pm    
can't find any option in vb to add a c file.
I searched it on web that at first i have to convert the c program file into a dll file and i can use it but i don't know how....
[no name] 4-May-14 13:34pm    
Well of course not. C is C and VB.NET is nothing like it. You can't just do that. You can compile your C code to an exe and call if from your .NET using the Process class or compile your C code to a DLL and use P/Invoke to use the exported functions.

1 solution

 
Share this answer
 
v2
Comments
Member 10771582 4-May-14 13:37pm    
2nd link is not working
Sergey Alexandrovich Kryukov 4-May-14 14:55pm    
That's a pity. Thank you for the note, I replaced it with something else.
Unfortunately, most Microsoft articles on the topic are old, but all or most of their content is still valid.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900