Author Topic: CSED - Print Preview Problem after Recompile with 10.04 ?  (Read 3929 times)

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 919
  • User-Rate: +30/-4
    • it-berater
CSED - Print Preview Problem after Recompile with 10.04 ?
« on: April 08, 2013, 08:05:36 AM »
The original Executable (CSED.exe) will do the Print-Preview.
Now if i recompile it with 10.04 (new headers), the Print-Preview does not work (Win XP).

I have taken a look into:

SUB CSED_WB_PrintPreview (BYVAL hParent AS DWORD, BYVAL strText AS STRING)   

I have now added an "         AfxDoEvents(hwnd) "

Code: [Select]
      pHTMLDocument2 = pIWebBrowser2.Document
      IF ISOBJECT(pHTMLDocument2) THEN
         AfxDoEvents(hwnd)
         IHTMLDocument2_WriteString(pHTMLDocument2, strText)
         pHTMLDocument2.close
         pHTMLDocument2 = NOTHING   

Now it works.

Does anybody have an idea why this change was necessary?
It must be something with PB, as the original compiled CSED Executable works without that change.
« Last Edit: April 08, 2013, 08:16:59 AM by Theo Gottwald »

Offline Carlo Pagani

  • Newbie
  • *
  • Posts: 39
  • User-Rate: +7/-7
Re: CSED - Print Preview Problem after Recompile with 10.04 ?
« Reply #1 on: April 10, 2013, 02:19:01 AM »
I know this old lady in a dark room with incense and candles... Do you want the address? ;D

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2481
  • User-Rate: +204/-0
Re: CSED - Print Preview Problem after Recompile with 10.04 ?
« Reply #2 on: April 10, 2013, 02:57:32 AM »
I have compiled it with 10.04 and it works without changes in my computer (Windows 7, 64-bit).

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 919
  • User-Rate: +30/-4
    • it-berater
Re: CSED - Print Preview Problem after Recompile with 10.04 ?
« Reply #3 on: April 10, 2013, 07:49:24 AM »
As said, after adding the
AfxDoEvents...
the PrintPreview works,

One more word, Jose. Looking at thiscode from CSED and at your Scintilla wrappers ... thats just an amazing work!
When i take a closer look, i can only say ITS ARTWORK. You are an ARTIST!
Compared to your Artwork, Picasso was just a Nerd (my personal opinion).

PS: If you try to compile things ... try to compile SED 115, and take a look why it does not startup. Possibly you can report a Bug in PB to Jim?