views:

766

answers:

2

Hi

Can any body tell me what is diff between regsvr32 and RegAsm and My Dll is C# dll so how can i import the classes to c++.

+6  A: 

regsvr32 will load the library and try to call the DllRegisterServer() from that library. It doesn't care what DllRegisterServer() actually does - it just calls that function and checks the returned value. You use it to register COM servers in unmanaged DLLs. It can't generate a .tlb file.

regasm will register a COM-exposed .NET assembly as a COM server. You use it for .NET assemblies. It can generate a .tlb file given the assembly only - it inspects the type infromation stored in the assembly and includes the COM-exposed entities into the type library.

sharptooth
@sharptooth: I think we should ask for VPN Access now from Cute to make his codez work :)
Aamir
@Aamir: When I first tried to make a COM-exposed assembly and consume it from a VC++ application and make this application redistributable I had a similar set of question. The difference is that Stackoverflow.com was launched later.
sharptooth
@Aamir:Ha Ha Ha Thanks for ur Support.If posiible we can..But i need permision... :-)
Cute