Results 1 to 9 of 9

Thread: Windows

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Cool

    how to create window, controls on it, make to cntrols do something (mfc and API's)?
    VB, C++

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    http://www.parksie.net/Raw.zip
    http://www.parksie.net/RawDlg.zip

    Also look at the platform SDK at http://msdn.microsoft.com/library

    www.cprogramming.com
    www.winprog.org

    And there's a load of other threads on this around as well.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22
    1. In the rawdlg i get some error

    C:\Documents and Settings\Administrator\Desktop\RawDlg\rawdlg.cpp(26) : error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,un
    signed int,long)'
    None of the functions with this name in scope match the target type
    Error executing cl.exe.

    2. I can't download raw.zip (broken link)
    VB, C++

  4. #4
    Guest
    type in a lowercase r instead of the upper case one, that should allow you to download raw.zip.
    and change INT_PTR to int, I think the newer headers that come with the platform sdk use INT_PTR for callbacks.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Sorry 'bout that...yeah. It's the PSDK headers - for compatibility with 64-bit systems all new code has to use INT_PTR, LONG_PTR and the rest because they're guaranteed to keep the same relationship to pointer sizes

    LONG_PTR == LRESULT
    INT_PTR == long
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Question

    COOL Thanx!

    How to make when I click button to display message box with text from edit
    VB, C++

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Question

    COOL Thanx!

    How to make when I click button to display message box with text from edit.
    VB, C++

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Okay...don't have time to make anything up so here's a mini-hint:

    GetWindowText, GetWindowTextLength, GetDlgItem

    These functions should be enough.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Unhappy

    Can you make any example PLS
    VB, C++

Posting Permissions

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



Click Here to Expand Forum to Full Width