Page 1 of 1

No icons in the buttons of the Preview

Posted: Mon Mar 19, 2007 12:41 pm
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

Posted: Mon Mar 19, 2007 12:49 pm
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

Posted: Mon Mar 19, 2007 1:04 pm
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

Posted: Mon Mar 19, 2007 2:04 pm
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

Posted: Mon Mar 19, 2007 2:19 pm
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

Posted: Mon Mar 19, 2007 3:38 pm
by James Bott
I find that often when I edit a 32bit DLL with Workshop, it is damaged.

James

Posted: Mon Mar 19, 2007 6:55 pm
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