Problem with "MyAccess.hpp" and Pre-compiled header files

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Problem with "MyAccess.hpp" and Pre-compiled header files

Post by Thomas J. » Mon 13 Mar 2006 15:45

Hello support I have problems with "MyAccess.hpp" (I asume) and Pre-compiled header files.
The error is "db.hpp : W8058 Precompiled header file cannot no be created"

#include
#include "MyAccess.hpp"
#pragma hdrstop
-> error come

#include
#pragma hdrstop
-> pre-compiled header file created
C++ Builder 6
MySQL MyDac VCL Version 4.30.0.11

Thanks for your help


:idea:
So I used the version 3.55.0.26 and this is running proper with pre-compiled headers. -> something is different between version 3.55 and 4.30

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 14 Mar 2006 12:37

Most possibly the problem is concerned to your local settings. Please try to compile CBuilder Demo.

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Tue 14 Mar 2006 19:58

Did you test it? :?
You can reproduce it. Of course you have to change the main.cpp file
#include
#pragma hdrstop
#include "Main.h"

-->

#include
#include "Main.h"
#pragma hdrstop

Maybe you get the error in dialogs.hpp but this you can fix by changing

extern PACKAGE bool __fastcall PromptForFileName(AnsiString &AFileName, const AnsiString AFilter = "", const AnsiString ADefaultExt = "", const AnsiString ATitle = "", const AnsiString AInitialDir = "", bool SaveDialog = false);
-->
extern PACKAGE bool __fastcall PromptForFileName(AnsiString &AFileName, const AnsiString AFilter = 0, const AnsiString ADefaultExt = 0, const AnsiString ATitle = 0, const AnsiString AInitialDir = 0, bool SaveDialog = false);

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 15 Mar 2006 14:25

Unfortunately we couldn't reproduce the problem.
Most possibly you have some files left from previous version of MyDAC on your hard drive. Try to uninstall MyDAC and remove all the files concerned to it. Then install MyDAC 4.30 one more time.

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Thu 16 Mar 2006 07:06

I did it but without success. Did you change in your example the main.cpp file like mentioned before?

I did it now the second time and made a test run with your demo and every time the same. 3.xx is running, 4.30 not.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 17 Mar 2006 09:40

We have changed main.cpp as described, but no errors were raised.
We highly recommend to search for files that might be left from previous installation.
If problem persists then send us (mydac*crlab*com) the example of our demo which causes this problem.

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Fri 17 Mar 2006 10:12

Antaeus wrote: We highly recommend to search for files that might be left from previous installation.
What can I do more then call your uninstaller?
Which files are not be deleted? For which files in which directory could your files from version 3 be stored? :?

FYI
I uninstalled the your version 3, two times and deleted the complete directory where your comp was located and the I installed the version 4 on another drive the version 3 was installed. :cry:

What else can I do?
I send you the project anyway.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Mon 20 Mar 2006 11:14

> I send you the project anyway.
Thank you for example. We have compiled it without any errors.

> What can I do more then call your uninstaller?
Sometimes uninstaller leaves on the hard drive files from the previous installation. This is uninstaller issue.
1) Uninstall MyDAC
2) Search for MyAccess.*, DBAccess.*, mydac*.bpl, dac*.bpl etc files at your HDD and delete them
3) Run Delphi and check that it is started without errors
4) Install MyDAC once more

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Mon 20 Mar 2006 18:51

Antaeus wrote:>
> What can I do more then call your uninstaller?
Sometimes uninstaller leaves on the hard drive files from the previous installation. This is uninstaller issue.
1) Uninstall MyDAC
2) Search for MyAccess.*, DBAccess.*, mydac*.bpl, dac*.bpl etc files at your HDD and delete them
I only found these files
dac32.dll
dac37.dll
All in the program path of Magix (Video app)
Antaeus wrote:>
3) Run Delphi and check that it is started without errors
No errors occurs that the you bpl cannot be found

-> Precompiled header cannot be created.

What can we do else? I cannot use your new release only the version 3

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 21 Mar 2006 15:44

Try to uninstall MyDAC and remove all the MyDAC files on your HDD including files from the project directory that were made by compiler and linker. Then comment (rename) registry key "HKCU\Software\Borland\C++Builder\6.0" and restart the IDE to be sure that it works. After that shut down IDE and install MyDAC one more time. If problem persists, please report us exact version of C++Builder (including update patches and localization).

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Thu 23 Mar 2006 12:27

Now I have changed the lines in Db.hpp and in DateUtils.hpp and it works.
Why it works with your verison 3 and not 4 - I don't know.

But I could use your example without touching the files DateUtils.hpp and Db.hpp and the pre-compiled header file was created.

In my complete app no chance. So it could only be that some other header files in combination create the problem.

Post Reply