Monday, July 27, 2009

Is it Possible Use Vb.Net Dll in C Language?

I have a old program written in C Language and i want it to be able to communicate to MSN without using MSN Messanger.


for that I need a DLL(in .NET/VB) that will use MSN Messenger APIs and will connect to the MSN Messenger network. The DLL should allow other MSN users to connect and communicate with our program.





Is it possible.

Is it Possible Use Vb.Net Dll in C Language?
There are two alternatives I know you could use to make these working:





1. Upgrade to Manged (CLR) C++ which you could assume it is a C++ .Net language. In this case you could easily access .Net class libraries written in VB.Net, C#.Net or any other .Net language.





2. Make your VB.Net exposed class (the class you want to access from C) ComVisible. In this case,you may access the VB.Net class as a standard COM component.





Good luck
Reply:yes it is possible...





thas is the whole thing about the .net framework, just pass right arguments to the dll and it should work.


No comments:

Post a Comment