HOW CAN I ADD dll to windows .net application
-
:confused: hi, can any body tell how can i add .dll for my application(c#.net) because it can not directly added from add references( neither .net nor from com component) so i want to add dll through command prompt i edit c:\>regsvr "c:\BAS\bin\Deug\BAS_DAL.dll" BUT IT PRODUCE MESSAGE " C:\BAS\bin\Deug\BAS_DAL.dll was loaded but the DllRegisterServer entry point was noy found, DllRegisterServer may not be exported " HOW CAN ADD I .dll to my project through command prompt or Other way from :-Jaydeep Bhatt
-
:confused: hi, can any body tell how can i add .dll for my application(c#.net) because it can not directly added from add references( neither .net nor from com component) so i want to add dll through command prompt i edit c:\>regsvr "c:\BAS\bin\Deug\BAS_DAL.dll" BUT IT PRODUCE MESSAGE " C:\BAS\bin\Deug\BAS_DAL.dll was loaded but the DllRegisterServer entry point was noy found, DllRegisterServer may not be exported " HOW CAN ADD I .dll to my project through command prompt or Other way from :-Jaydeep Bhatt
If you wrote the DLL in (say) C++, then you probably need to use PInvoke - here's an introduction[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
:confused: hi, can any body tell how can i add .dll for my application(c#.net) because it can not directly added from add references( neither .net nor from com component) so i want to add dll through command prompt i edit c:\>regsvr "c:\BAS\bin\Deug\BAS_DAL.dll" BUT IT PRODUCE MESSAGE " C:\BAS\bin\Deug\BAS_DAL.dll was loaded but the DllRegisterServer entry point was noy found, DllRegisterServer may not be exported " HOW CAN ADD I .dll to my project through command prompt or Other way from :-Jaydeep Bhatt
If the dll you want to add is not (yet) registered you might find it through "add references" --> choose the "search" tab and search your path to the dll. In case you change that path you have to correct your reference as well. BTW some dlls you don't register with regsvr32 but with regasm. Regards Michael
-
If you wrote the DLL in (say) C++, then you probably need to use PInvoke - here's an introduction[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Hi, If your dll has .Net framework dependency then try the following, Go to .Net command prompt and enter the command below, RegAsm yourDll.dll /tlb:yourDll.tlb /codebase Note: It will register in to GAC & export tlb. Thanks
Md. Marufuzzaman
-
Hi, If your dll has .Net framework dependency then try the following, Go to .Net command prompt and enter the command below, RegAsm yourDll.dll /tlb:yourDll.tlb /codebase Note: It will register in to GAC & export tlb. Thanks
Md. Marufuzzaman
Md. Marufuzzaman wrote:
your dll
It's NOT my DLL - can I suggest yuou reply to the OP, rather than to my reply to him - he ain't going to read your message otherwise...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p