|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help registering a dllUsing: "regsvr32 expcg.dll" I get this error message: "expcg.dll was
loaded, but the DllRegisterServer entry point was not found. the file can not be registered." William Cruz *** Sent via Developersdex http://www.developersdex.com *** That means that the DLL is not not an ActiveX DLL...
-- Show quoteHide quoteBest regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com "William Cruz" <wcru***@msn.com> escribió en el mensaje news:%23MhQhvvjGHA.3588@TK2MSFTNGP02.phx.gbl... > Using: "regsvr32 expcg.dll" I get this error message: "expcg.dll was > loaded, but the DllRegisterServer entry point was not found. the file > can not be registered." > > William Cruz > > *** Sent via Developersdex http://www.developersdex.com *** If you're trying to register a .NET assembly for use with COM use regasm.exe
instead /claes Show quoteHide quote "Carlos J. Quintero [VB MVP]" <carlosq@NOSPAMsogecable.com> wrote in message news:OclB%239vjGHA.4716@TK2MSFTNGP03.phx.gbl... > That means that the DLL is not not an ActiveX DLL... > -- > > Best regards, > > Carlos J. Quintero > > MZ-Tools: Productivity add-ins for Visual Studio > You can code, design and document much faster: > http://www.mztools.com > > > "William Cruz" <wcru***@msn.com> escribió en el mensaje > news:%23MhQhvvjGHA.3588@TK2MSFTNGP02.phx.gbl... >> Using: "regsvr32 expcg.dll" I get this error message: "expcg.dll was >> loaded, but the DllRegisterServer entry point was not found. the file >> can not be registered." >> >> William Cruz >> >> *** Sent via Developersdex http://www.developersdex.com *** > > I'm wanting to use my DLL app in VBA for AutoCAD.
William Cruz *** Sent via Developersdex http://www.developersdex.com *** What steps do I need to take to make my DLL an ActiveX.
William Cruz *** Sent via Developersdex http://www.developersdex.com *** First you must decide if you want to create:
- A .NET assembly Dll: in this case the Dll can be registered for COM Interop using regasm.exe. See COM Interop in the MSDN docs. For example: Exposing .NET Framework Components to COM http://msdn2.microsoft.com/en-us/library/zsfww439(VS.80).aspx - A native ActiveX dll: in this case you can´t use a .NET language but you can still use VS.NET to create a Visual C++ DLL, or use VB6, etc. -- Show quoteHide quoteBest regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com "William Cruz" <wcru***@msn.com> escribió en el mensaje news:eSUSPlwjGHA.4264@TK2MSFTNGP02.phx.gbl... > What steps do I need to take to make my DLL an ActiveX. > > William Cruz I have done the first of your suggestions. I registered the DLL using
regasm.com in this manner: “regasm expcg.dll /tlb:expcg.tlb”. I then went into VBA for AutoCAD and went to “add reference” and then “expcg” to add as a reference, this all works fine. I then declare it this way: “Dim Calcs As New ExpCG.ExpCG_Calcs” This also goes as planned. Now when I try to use it, I get an error. I try to use it this by setting a value withing the dll “Calcs.UnitWeight = 144” and I get this error. Run-time error ‘-2147024894 (80070002)’: The system cannot find the file specified. Before using regasm.exe, I copied the dll file from the project directory into the Windows\system32\ directory. William Cruz *** Sent via Developersdex http://www.developersdex.com *** Hi,
Try registering the DLL with the codebase flag: regasm.exe /codebase expgc.dll etc -- Show quoteHide quoteBest regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com "William Cruz" <wcru***@msn.com> escribió en el mensaje news:%23$Nfo76jGHA.4104@TK2MSFTNGP04.phx.gbl... >I have done the first of your suggestions. I registered the DLL using > regasm.com in this manner: "regasm expcg.dll /tlb:expcg.tlb". I then > went into VBA for AutoCAD and went to "add reference" and then "expcg" > to add as a reference, this all works fine. I then declare it this way: > "Dim Calcs As New ExpCG.ExpCG_Calcs" This also goes as planned. Now when > I try to use it, I get an error. I try to use it this by setting a value > withing the dll "Calcs.UnitWeight = 144" and I get this error. > > Run-time error '-2147024894 (80070002)': > The system cannot find the file specified. > > > Before using regasm.exe, I copied the dll file from the project > directory into the Windows\system32\ directory. > > > William Cruz You can just save the dll in the same folder where your application
exists. This would help, if your dll is not a activex dll. -Sugan William Cruz wrote: Show quoteHide quote > What steps do I need to take to make my DLL an ActiveX. > > William Cruz > > *** Sent via Developersdex http://www.developersdex.com ***
Problem connecting to SQL Server
Inserting Variables in a Document RANT: option strict etc c# to vb.net getting screen coordinates for positioning a floating control next to a tableLayOutPanel embeded con To catch when a process is terminated cast from string to button PrinterSettings.PrintRange, print only selected pages. Help with C# to VB.Net ... Please Window Service and Http Request |
|||||||||||||||||||||||