Home All Groups Group Topic Archive Search About

Help registering a dll

Author
13 Jun 2006 3:13 PM
William Cruz
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 ***

Author
13 Jun 2006 3:38 PM
Carlos J. Quintero [VB MVP]
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


Show quoteHide quote
"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 ***
Author
13 Jun 2006 3:48 PM
Claes Bergefall
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 ***
>
>
Author
13 Jun 2006 4:48 PM
William Cruz
I'm wanting to use my DLL app in VBA for AutoCAD.

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***
Author
13 Jun 2006 4:49 PM
William Cruz
What steps do I need to take to make my DLL an ActiveX.

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***
Author
14 Jun 2006 8:07 AM
Carlos J. Quintero [VB MVP]
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.

--

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


Show quoteHide quote
"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
Author
14 Jun 2006 12:34 PM
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 ***
Author
15 Jun 2006 9:05 AM
Carlos J. Quintero [VB MVP]
Hi,

Try registering the DLL with the codebase flag:

regasm.exe /codebase expgc.dll etc

--

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




Show quoteHide quote
"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
Author
14 Jun 2006 8:20 AM
Sugan
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 ***