Click to See Complete Forum and Search --> : How to make Managed DLL for using in VB.net


Muhammad Riaz
December 21st, 2003, 08:41 AM
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);
}

bye