How to make Managed DLL in VC to use in VB.net
-
I developed one DLL in VC6 through win32 dll. Then i called this dll in vb6 and i got accurate result. No problem at all. Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development. In the example use the function to get square of a number like below int squareMe(int x) { return (x*x); } Hope to get reply soon
-
I developed one DLL in VC6 through win32 dll. Then i called this dll in vb6 and i got accurate result. No problem at all. Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development. In the example use the function to get square of a number like below int squareMe(int x) { return (x*x); } Hope to get reply soon
I am not an expert but .net should be able to use a unmanaged dll without recompiling. I am not sure how to do this though. John
-
I developed one DLL in VC6 through win32 dll. Then i called this dll in vb6 and i got accurate result. No problem at all. Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development. In the example use the function to get square of a number like below int squareMe(int x) { return (x*x); } Hope to get reply soon
riaz_muhammad wrote: Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Refer to the Visual Studio Walkthroughs[^] to get started with C++.NET. riaz_muhammad wrote: Should i use VC6 or VC.net for Manage dll development. You can not use VC6 to create a managed DLL. riaz_muhammad wrote: Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. You CAN use your unmanaged DLL from VB.NET. Refer to the following MSDN help lik, Consuming Unmanaged DLL Functions[^]. Roger Stewart "I Owe, I Owe, it's off to work I go..."