No icons in the buttons of the Preview

Post Reply
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

No icons in the buttons of the Preview

Post by driessen »

Hello,

In the preview of any report, generated by the TPrinter class, there are no icons in the buttons, although PREV32.DLL is in the same folder.

It doesn't happen all the time. On my systems with WIN XP Prof, I have no problem. On Windows Vista, the icons are invisible.

But I also have the same problem on some WIN XP systems of my costumers.

Does anyone know how this can be solved ?

Thanks.

Michel
Last edited by driessen on Mon Mar 19, 2007 12:49 pm, edited 1 time in total.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Hello Guys,

Sorry, I found the reason for my problem.

I translated the PREV32.DLL to Dutch by using Resource Workshop.

Unfortunately, that isn't possible.

After having put back the original PREV32.DLL, the icons on the buttons reappeared.

But how can I translate PREV32.DLL to Dutch. My costumers don't like English in their software.

Thanks a lot.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Create a new RC or RES project, import prev32.dll, save and then link the RC or RES to your EXE.

EMG
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Enrico,

And I need to adjust the RPREVIEW class since it is directed to PREV32.DLL, don't I ?

Thanks.

I'll try it out.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

driessen wrote:Enrico,

And I need to adjust the RPREVIEW class since it is directed to PREV32.DLL, don't I ?
Yes, sorry. By the way, I just tried to change messages from prev32.dll and found it perfectly working.

EMG
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

I find that often when I edit a 32bit DLL with Workshop, it is damaged.

James
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Enrico,
James,

I transferred PREV32.DLL to RC-file, compiled it to a RES-file and linked it in my application.

I changed RPREVIEW.PRG (get rid of GetResources(), "PREV32.DLL" ...) and linked it in my application, too.

Now, everything is working fine.

Thanks a lot for your help, guys.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply