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!

Dialogs cause errors when compiling without runtime packages

Status
Not open for further replies.

btsht23

Programmer
May 19, 2005
3
DE
hiho,

i have a problem if i want to compile my exe's without runtime packages with the new cppbuilder 2006.

if i have a dialog such as "TPrintDialog" in my form, i get the error "WINSPOOL.DLL not found." when starting the newly compiled exe. if i comile with runtime packages, this error does not appear, and it does also not appear if i comile without runtime packages and without a dialog in one of my forms :-/ ..

but i need that print dialog.

is there any possibility to solve that problem? - i want to have that print dialog, but i also want my exe running on other machines...
 
well, i did it! ;-)

but i dont know whether this is the best variant...

well, i deactivated the "build with runtime packages" - option . after that, i copied the file "winspool.drv" (located in C:/Windows/system32/) into the project directory and renamed the file in "winspool.dll". now i only had to activate the option "Delay load a .dll" in the project->options menu under the heading "Linker->Other Options" and to write "winspool.dll" into the following field. - now everything works. :)

best wishes and a merry christmas,
btsht23
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top