Click to See Complete Forum and Search --> : Failed to create empty document error...


August 8th, 1999, 06:00 AM
Hi!

My program works perfect on my own box with DevStudio installed but when I try to install it
on a "normal" windows machine it generates the "Failed to create empty document" error and exits.

The error occurs in the MyProgDoc::OnNewDocument() call to the CDocument::OnNewDocument()
funktion.. WHY??

I've tested a simple SDI program and it runs fine on both machines but this program generates the error.
The differece is that I use databases in the error prog.. but they are never used in the init of the prog/document...
What can I do about it.. any suggestions would be highly appriciated!

//Calle Lennartsson

TOHCS
August 8th, 1999, 08:25 PM
"Failed to create empty document error... ", If not mistaken, I think this error may cause by licensing issue. When you create a simple SDI which is not using any active-X then you are able to run on your client machine. Email to me if you want to know more details.

jm_escardo
August 9th, 1999, 07:53 AM
Some times this problem is caused by an old version of comctl32.dll, you will find it in the
windows\system directory.
In the PC you are running the program look at the properties dialog in Windows Explorer, to
find the version number, compare it whith the version in the PC you have Visual Studio.

Update comctl32.dll if neccessary.

In my PC I have version: 5.80 because comctl32.dll was updated when I installed IE 5.

Download from the Microsoft site the update for comctl32.dll, which name is 401comupd.exe,
perhaps at the present there is a new one.

I hope this helps you, regards

jm_escardo

calle
August 9th, 1999, 02:07 PM
Wonderful!!

Thanks the comctl32.dll was the problem...
You just saved me alot of time .. THANKS!

//Calle

thangam
June 14th, 2000, 11:00 PM
Hi i need more details about this...

devoloper in Betawave-India