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

utilcls.h?? 1

Status
Not open for further replies.

BorlandDave

Programmer
Jun 13, 2005
86
GB
I have changed nothing in my (previously working!) code but I have come up against an error. My program compiles fine, but an error is displayed when it is executed:

intf != 0 failed -C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\VCL\utilcls.h/2868

I have no idea why this error has suddenly arrisen out of nowhere, but even my previous program backups from a month ago are coming up with it!

Can anyone help?

 
Maybe that file is corrupt. Have you tried a restore of that file or reinstall/repair of Borland?


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
But I'm wondering why the program is even looking for the file at runtime. Isn't this a developement file? the program is being run on many other computers, all of which don't have Borland installed, so the file path won't even exist.
 
Has anyone else come across this error... and more to the point, been able to fix it! ;-)
 
Oh, is the problem related to Install Shield? I quit using that and started making my own.

What happens if you manually install you program, that it, manually create the directory, set up registry, install program, etc.?


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
I've diagnosed the problem.

It turns out that the batch file I was using to register all the DCOM modules was location-specific. When The app was installed to a different location these no longer worked, so the DCOM creates in my code were failing.

So, my next question is regarding batch files. My current batch file is something like this:

tregsvr C:\Progra~1\MyApp\Module1.exe
tregsvr C:\Progra~1\MyApp\Module2.exe
tregsvr C:\Progra~1\MyApp\Module3.exe
tregsvr C:\Progra~1\MyApp\Module4.exe
EXIT

But the path "C:\Progra~1\MyApp\" depends on where the program is installed. I have a registry entry which stores the "install directory", but how do I include that in my batch file? The registry entry is in:

HKEY_LOCAL_MACHINE\Software\MyApp\General\BasePath

I'm struggling to find any information on google.
 
This seems to work, cheers for the help 2ffat!

FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\MyApp\General" /v BasePath') DO SET APPPATH=%%B
ECHO APPPATH=%APPPATH%

Utilities\tregsvr %APPPATH%\Module1.exe
Utilities\tregsvr %APPPATH%\Module2.exe
Utilities\tregsvr %APPPATH%\Module3.exe
Utilities\tregsvr %APPPATH%\Module4.exe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top