No icons in the buttons of the Preview

No icons in the buttons of the Preview

Postby driessen » Mon Mar 19, 2007 12:41 pm

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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby driessen » Mon Mar 19, 2007 12:49 pm

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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Enrico Maria Giordano » Mon Mar 19, 2007 1:04 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby driessen » Mon Mar 19, 2007 2:04 pm

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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Enrico Maria Giordano » Mon Mar 19, 2007 2:19 pm

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
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Mon Mar 19, 2007 3:38 pm

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

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

Postby driessen » Mon Mar 19, 2007 6:55 pm

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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests