Announcement

Collapse
No announcement yet.

gbPrintPreview version 5.12 missing #INCLUDE "cgdiplus.inc"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • gbPrintPreview version 5.12 missing #INCLUDE "cgdiplus.inc"

    just downloaded gary's gbPrintPreview version 5.12 16 Dec 2013

    one file is missing in the download zip file.

    #INCLUDE "cgdiplus.inc" <<< not in zip file

    -----------------------------------------------------------------------------
    I also down load a smaller version

    'Print Preview
    'Category: Printing
    'Date: 03-28-2012

    'Return to Index

    this is missing
    #RESOURCE "gbtemplate.pbr"
    Robert

  • #2
    Robert,
    #INCLUDE "cgdiplus.inc" is found in J.Roca includes WINAPI_III_107.

    Comment


    • #3
      where to find J.Roca includes WINAPI_III_107 ?
      Robert

      Comment


      • #4
        Originally posted by Robert Alvarez View Post
        where to find J.Roca includes WINAPI_III_107 ?
        here

        Note:
        Do not mix these includes with PBWIN includes. Either use PBWIN includes or use J.Roca includes. Not both.

        Comment


        • #5
          that is quite a link posting , says that it is a sticky topic. will be a very sticky topic for me, but will try to see what I can do.
          Robert

          Comment


          • #6
            Originally posted by Jim Fritts View Post

            here

            Note:
            Do not mix these includes with PBWIN includes. Either use PBWIN includes or use J.Roca includes. Not both.
            Failed; Network Error
            The world is strange and wonderful.*
            I reserve the right to be horrifically wrong.
            Please maintain a safe following distance.
            *wonderful sold separately.

            Comment


            • #7
              Works with Windows 10 1909 Edge

              Comment


              • #8
                network error, yes

                just looking at the code, it does not have PBMAIN or PBWIN, so what is the starting block of code to start the program.

                Will try to just read the code to see if I can figure out some useful code .
                Robert

                Comment


                • #9
                  have lastest Edge. what is "1909" , version ?
                  Robert

                  Comment


                  • #10
                    Where are you having a problem?
                    Do you have Roca's includes? WINAPI_III_107.zip

                    If yes, then change the compiler options to only Roca includes.

                    If you are seeing this...
                    network error, yes
                    just looking at the code, it does not have PBMAIN or PBWIN, so what is the starting block of code to start the program.
                    Will try to just read the code to see if I can figure out some useful code .

                    Then you are likely mixing includes.

                    have lastest Edge. what is "1909" , version ?

                    1909 is the Windows 10 release version. 19=2019 and 09=September

                    Comment


                    • #11
                      could download Windows API Headers III v. 1.07

                      . got network issue.
                      Robert

                      Comment


                      • #12
                        Main interest is the dialog frame work . meaning starting

                        dialog info
                        DIALOG NEW PIXELS, PPD.hParent, "gbPrintPreview", PPD.DialogX, PPD.DialogY, PPD.DialogW, PPD.DialogH, %WS_OVERLAPPEDWINDOW OR %WS_CLIPCHILDREN TO PPG.hDlg ,

                        graphic window info
                        CONTROL ADD GRAPHIC, PPG.hDlg, %IDC_PPGraphic, "", 0,%PPToolbar_Height,PPD.DialogW, PPD.DialogH - %PPToolbar_Height, %WS_BORDER OR %SS_NOTIFY

                        graphic vertiual info,
                        GRAPHIC SET VIRTUAL MAX(PPG.VirtualW,wCont), MAX(PPG.VirtualH,hCont)

                        zooming info.

                        quite a lot to trace.
                        Robert

                        Comment


                        • #13
                          gbPrintPreview v5.12 should have this as the PBMAIN
                          Code:
                          FUNCTION PBMAIN() AS LONG
                             LOCAL STYLE AS LONG
                             STYLE = %WS_CHILD OR %WS_VISIBLE OR %ES_MULTILINE OR %WS_VSCROLL _
                                OR %ES_AUTOVSCROLL OR %ES_WANTRETURN OR %WS_TABSTOP OR %WS_BORDER
                             DIALOG NEW PIXELS, 0, "gbPrintPreview Demo  v" + $DemoVer,100,100,500,400, %WS_OVERLAPPEDWINDOW TO hDlg
                             DIALOG SET ICON hDlg, "logo"
                             CreateToolbar
                             CONTROL ADD LABEL, hDlg, %IDC_LabelB, "Sample Text:", 10, 90, 110, 20
                             CONTROL ADD TEXTBOX, hDlg, %IDC_SampleText, "", 10, 110, 250, 250, STYLE '<--- Sample Text
                          
                             CONTROL ADD LABEL, hDlg, %IDC_LabelA, "Quiet Print Range:", 10, 60, 110, 20
                             CONTROL ADD TEXTBOX, hDlg, %IDC_MinPage, "1", 130, 60, 30, 20
                             CONTROL ADD TEXTBOX, hDlg, %IDC_MaxPage, "2", 170, 60, 30, 20
                          
                             CONTROL ADD STATUSBAR, hDlg, %IDC_StatusBar, "", 0,0,0,0
                             DIALOG SHOW MODAL hDlg CALL DlgProc
                          END FUNCTION
                          It is found here.

                          Or here.

                          Comment


                          • #14
                            just download from your link.
                            still get error on #INCLUDE "cgdiplus.inc"

                            and it does not have
                            FUNCTION PBMAIN() AS LONG
                            code you showed.

                            gbprintpreview_demo.bas is the program I got form zip package.
                            Robert

                            Comment


                            • #15
                              In gbprintpreview_demo.bas you have Function PBMain() As Long in the line 54.

                              > still get error on #INCLUDE "cgdiplus.inc"

                              You have to use my include files. "cgdiplus.inc" doesn not exist in the PB includes.
                              Forum: http://www.jose.it-berater.org/smfforum/index.php

                              Comment


                              • #16
                                got it .
                                was looking at the inc file when erro occured. that where #INCLUDE "cgdiplus.inc" error happen . file not found.
                                Robert

                                Comment


                                • #17
                                  Originally posted by Robert Alvarez View Post
                                  could download Windows API Headers III v. 1.07

                                  . got network issue.
                                  Try clicking up arrow in download bar. Choose [resume].
                                  Could just be a too quick timeout on a too slow cloud.
                                  I tried it again today and that worked.
                                  The world is strange and wonderful.*
                                  I reserve the right to be horrifically wrong.
                                  Please maintain a safe following distance.
                                  *wonderful sold separately.

                                  Comment


                                  • #18
                                    Originally posted by Kurt Kuzba View Post

                                    Try clicking up arrow in download bar. Choose [resume].
                                    Could just be a too quick timeout on a too slow cloud.
                                    I tried it again today and that worked.
                                    Ah-ha!

                                    In Firefox, Just click the "retry" icon

                                    Click image for larger version

Name:	Resume.jpg
Views:	84
Size:	11.3 KB
ID:	794382

                                    Comment


                                    • #19
                                      three dot menu > resume , worked.
                                      thanks everyone

                                      looking at huge inc code will first upgrade my simple print preview with zoom. later will tackle going over this code. Lots of features to explore.

                                      wish that complex software authors would produce a simple flow chart to help see what is going on in a complex software code. I make flow charts and detail diagrams when i get lost with my software program code.
                                      Robert

                                      Comment


                                      • #20
                                        Windows API Index

                                        https://docs.microsoft.com/en-us/win...ndows-api-list

                                        A lot of stuff to read and learn.
                                        Forum: http://www.jose.it-berater.org/smfforum/index.php

                                        Comment

                                        Working...
                                        X