Can we use DLLs developed in VC++ 6.0 into C#.net
-
Hi Everybody, Can we use DLLs developed in VC++ 6.0 into C#.net Thanks. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.
-
Hi Everybody, Can we use DLLs developed in VC++ 6.0 into C#.net Thanks. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.
Yep (i guess), a DLL is A DLL, no matter where it was made. If i'm wrong you can shoot me :laugh:
-
Hi Everybody, Can we use DLLs developed in VC++ 6.0 into C#.net Thanks. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.
What sort of DLL is it? eg. COM/Vanilla/MFC extension.... Regards, Rob Philpott.
-
What sort of DLL is it? eg. COM/Vanilla/MFC extension.... Regards, Rob Philpott.
DLL is ordinary one. It contains C functions. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.
-
DLL is ordinary one. It contains C functions. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.
Ah ok. You can use existing functions in standard DLLs from C# using .NET interoperability. You do this by defining the prototype of the function you are calling in your C# code and marking this method with the [DllImport] attribute (stating what dll its in, entry point, calling convention etc). You can then call this function as if it were a normal .NET one. Details can be found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemruntimeinteropservicesdllimportattributeclasstopic.asp[^]. Regards, Rob Philpott.