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

Problem in loading .dll built in VC++.NET

Status
Not open for further replies.

sjhao

Programmer
Jun 30, 2005
4
US
Hi,

I have problem in loading a Tcl extension (.dll) that was build in VC++.NET. The error is: "Could not load "C:/test/newCmd.dll" this library or a dependency library could not be found in library path"

Has anyone met this problem before?

Thanks advance for your help!

Susan



 
It sounds like there might be another DLL that VC++ assumed would be available. Does VC++ tell you anything about external references?

_________________
Bob Rashkin
rrashkin@csc.com
 
Bong,

Thank you so much for your reply!

Yes, there is another DLL that was used when the newCmd.dll was built. VC++ does list any external dependency. when I use the newCmd.dll on the same computer where it was built, there is no problem, all new command are working. BUT, if I copy the newCmd.dll to aother computer and load the newCmd.dll from a Tcl script in that computer, I got the error "C:/test/newCmd.dll" this library or a dependency library could not be found in library path"

So the problem is why the newCmd.dll can be loaded from the same computer where it was built, but not from other computers?

I built this .dll in Debug mode, not release mode. I tried to build the .dll in release mode, but I got error:" fatal error C1083: Cannot open include file: 'C:\Tcl\include': Permission denied." I do not get the error if I build in Debug mode.

Thanks for your help!
Susan


 
Sorry, There is a typo in my previous reply:
"VC++ does list any external dependency." should be "VC++ does NOT list any external dependency."

-Susan
 
Bong,

Thanks for your help! I think that the solution should be related to how to package the DLL that Tcl script can use " package require XXXX ", but I do not know how to package my dll to XXXX. I am researching on it...

Thanks,
Susan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top