Announcement

Collapse
No announcement yet.

Patrice's Goldfish on Source Forum

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

  • Patrice's Goldfish on Source Forum

    Mucho tres tres bella Patrice.

    I tried launching it from a Graphics program (Gary Barnes' Life) and a text program (ZPost, my variation of Bob Scott's EZ Post) It launched from each (could see it in the taskbar) but never showed up.

    code I used
    Code:
    Function Goldfish_Swimmer As Long
      Local tmp_File$, pid As Dword
      tmp_File$ = "Goldfish.exe" & $Nul
      pid??? = Shell(tmp_File$, 1)  
       ?"Launched a goldfish"
    End Function
    If I launch it from File Explorer or the desktop, it works fine (swimming across the screen as we speak which explains any typos {grin})

    =================================================
    She knows what is the best purpose of education:
    not to be frightened by the best
    but to treat it as part of daily life.
    John Mason Brown
    =================================================
    It's a pretty day. I hope you enjoy it.

    Gösta

    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

  • #2
    Likely by running it from such programs, the current path (folder) is not being changed to the same folder as the app. The goldfish program is probably simply not finding the image, since it is not found in the same folder it is being run from.

    Change the current folder to the same folder as the goldfish app, before attempting to run it.
    Chris Boss
    Computer Workshop
    Developer of "EZGUI"
    http://cwsof.com
    http://twitter.com/EZGUIProGuy

    Comment


    • #3
      Use the new PB9 EXE.Path$ statement like this:

      gsImageFullPathName = EXE.Path$ + "GoldFish.png"

      ...
      Patrice Terrier
      www.zapsolution.com
      www.objreader.com
      Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

      Comment


      • #4
        Originally posted by Chris Boss View Post
        Likely by running it from such programs, the current path (folder) is not being changed to the same folder as the app. The goldfish program is probably simply not finding the image, since it is not found in the same folder it is being run from.

        Change the current folder to the same folder as the goldfish app, before attempting to run it.
        No that's not it Chris. Goldfish.exe is in the cyrrent folder. I had even tried curdir$ & "\Goldfish.exe" & $Nul.

        Goldfish launches (shows icon on Taskbar) from within Life (See Gary Barnes' Life thread) but Goldie does not display.

        Patrice:
        Use the new PB9 EXE.Path$ statement like this:

        gsImageFullPathName = EXE.Path$ + "GoldFish.png"
        Cool. I hadn't seen that one yet.

        Hmmm... I got it now. The image fiile (Goldfish.png) has to be in the same folder as the exe. I had thought it was imbedded in the .exe ala a resource file or something.

        Something engaging about the d*** fish swimming back and forth across the screen. And I know something about fish {grin}.

        Thanks guys.

        ===================================
        "In theory, there is no difference
        between theory and practice.
        But, in practice, there is."
        Jan L.A. van de Snepscheut
        ===================================
        It's a pretty day. I hope you enjoy it.

        Gösta

        JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
        LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

        Comment

        Working...
        X