Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL created with VB .NET (COM Class) won't work 1

Status
Not open for further replies.

timefreeze

Programmer
Aug 16, 2006
2
US
I'm trying to create a basic DLL in .NET and use a function from it in Centura. I created the DLL, registered it using regasm.exe (not sure if necessary as .NET claims it does it automatically), and created an .APL file for it. I then included the APL file as a Library in my Centura application. When I try to use the function from the DLL, however, it gives me the following error:

"Unrecoverable Error: This External Function can't be found. Check the DLL and Ordinal Number."

Is Centura unable to read DLL files created in .NET even when it was intentionally created as a COM DLL? Any help is appreciated.
 
Strange.

I continued messing around and decided to create a Visual C++ DLL. Using the same function, naming conventions, and implementation in Centura; it works!

Not exactly sure why a VB dll wouldn't work but a C++ one would, but my problem is solved.
 
Vary helpfull i'm looking to activex dll for guptura? C++ is not on my computer ill try look for a programer software. good too know visual basics net won"t go.

much thank!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top