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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I try to connect a dll in my CF application. (Mydll.dll)
Te dll use 3 functions: hex1, hex2, key

I dont't have the source of the dll.

Cfx doesn't work and i can't load the dll in memory. Is there another way to proceed ?
 
I don't think you can call a .dll directly from CF unless it's been compiled as a cfx. The only way I know to do this is to write a C, C++, or VB wrapper that calls the .dll for you. You can then compile this external code as a cfx tag or as a .com object. I haven't done anything with creating cfx tags but I've done some simple .com objects in VB and there's not much to them. You just have to make sure to register the .com object after you create it.

GJ
 
When i try to register my dll i receive the msg: "crypt.dll was loaded, but the DLLInstall entry point was not found.
DllInstall may not be exported, or a corrupt version of crypt.dll may be in memory. Consider using PView to detect ans remove it".

When i use PView i don't see crypt.dll

And if i try the ole viewer: i get back this msg

"LoadTypeLib(C:\crypt.dll) failed.
Error loading type library/DLL
TYPE_E_CANTLOADLIBRARY ($80029C4A)"
 
Sounds like a problem in the .dll you're trying to call. Do you know for certain that it works with other programs?

GJ
 
Yeah, there is definitely something wrong with the DLL. Are you sured you compiled it properly in VB or C++? Have you tried to use COM?
<webguru>iqof188</webguru>
 
I think I may have missed your point. I assumed you were having problems with the original .dll. If this is an error with the .dll you are creating, I would try compiling it as a com object first as IQ points out. I think the com route will be easier than a cfx tag.

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top