Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Windows API `Hello World!`

  1. #11

    Re: Windows API `Hello World!`


    You dont often need getCommandline, this works fine

    [code=thinbasic]
    inst=GetModuleHandle 0
    WinMain inst,0,0,SW_NORMAL

    [/code]

  2. #12
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    56
    Posts
    287
    Rep Power
    46

    Re: Windows API `Hello World!`

    Aha...
    Ok I will try tomorow,becose i get sleep.
    Thanks again...

  3. #13
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    56
    Posts
    287
    Rep Power
    46

    Re: Windows API `Hello World!`

    Charles i try all posible combination but still refuse to work

  4. #14

    Re: Windows API `Hello World!`


    Hi Zlatco

    You can run a message box even before entering WinMain and see whether your system returns a plausible module handle. (Zero means it wont give you one.). Messageboxes are one of the best debugging tools when dealing with low level Windows stuff, (As long as they are not used inside a long loop )


    In O2H:
    [code=thinbasic]
    cmdline=GetCommandLine
    inst=GetModuleHandle 0
    print str inst
    [/code]

  5. #15
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    56
    Posts
    287
    Rep Power
    46

    Re: Windows API `Hello World!`

    Hi Charles...
    I know that MessageBox is great tool and i use them alot when i make
    some stuff in my interpreter.
    but this time I think that is useless I think that CBasic is limited in
    current case (Paul told me that is not posibile?)
    If you wish I can sand you Pm with source code.
    You are expert in this area.
    I do everithing but whitout succses,I'm little bit disapointed.

  6. #16

    Re: Windows API `Hello World!`


    Have you looked at FreeBasic, Zlatco? I chose to use it for Oxygen because of its cross-platform capability and compiling down to x86 code, of course. Though I have not explored all of its features, I find it to be very stable,predictable and fast, which are all essential for building higher level software systems.

    Charles.

  7. #17
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    56
    Posts
    287
    Rep Power
    46

    Re: Windows API `Hello World!`

    Yes Free Basic is good and probably is capable for producing
    Window from API becose is compiler.
    I already have EBasic which is capable for that.
    As i see thinBasic can't produce Window from API directly
    without your oxigen module and without .dll included.
    Or maby I'm wrong?

    Thanks Zlatko

  8. #18

    Re: Windows API `Hello World!`


    ThinBasic can certainly call any DLL directly by using a declaration with a LIB specification. The main issue is can it handle a low level callback for an interpreted Wndproc - Eros would be able to answer this one

    Charles


  9. #19
    Member zlatkoAB's Avatar
    Join Date
    Apr 2008
    Age
    56
    Posts
    287
    Rep Power
    46

    Re: Windows API `Hello World!`

    Yes the main problem is in WinProc.
    So how return function directly
     case else     
    function=DefWindowProc hWnd,wMsg,wParam,lParam
    
    To here:

      lpfnWndProc=&WndProc '#long#long#long#long
    
    This part don't work from CBasic.
    Maby thinBasic can do that.
    If can ,that would be fantastic.
    So Eros what you say it is posible directly from thinBasic open
    window with API-s-?




  10. #20
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    60
    Posts
    3,301
    Rep Power
    350

    Re: Windows API `Hello World!`

    Quote Originally Posted by zlatkoAB

    Paul told me that is not posibile?
    Hi Zlatko,

    don't believe everything you get told by this guy, especially when he sells a competing commercial product.

    There is allways a possibility.

    Cheers
    Michael

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. End of the World [Again]
    By JosephE in forum General
    Replies: 17
    Last Post: 26-05-2011, 07:58
  2. Most typical face in the world
    By Charles Pegge in forum Shout Box Area
    Replies: 0
    Last Post: 05-03-2011, 07:35
  3. World Matrix Rotation
    By Dylan in forum WCHS thinBasic gaming forum
    Replies: 8
    Last Post: 11-11-2010, 16:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •