Results 1 to 10 of 10

Thread: Creating a Window

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Location
    Sweden, Skövde
    Posts
    14

    Creating a Window

    Is there a simple way to create a Window in VC++ 6.0 ??
    // fade][NiVEN
    fade@quakenet

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    What do you mean by simple? The code in the Tutorials post on the top here is quite simple.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Location
    Sweden, Skövde
    Posts
    14
    I thought you guys should answer something like that =). Yes it's quite easy. but is there a way to "draw" a window. something not concerning copy and paste? =)
    // fade][NiVEN
    fade@quakenet

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You can use CreateDialog and the Dialog [sic] editor.
    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Location
    Sweden, Skövde
    Posts
    14
    how do I do that?
    // fade][NiVEN
    fade@quakenet

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    In VC++: Insert->Resource->Dialog
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Location
    Sweden, Skövde
    Posts
    14
    Ok.. I get this error when just creating a dialog. Does it reqiure me to add anything? I'll search in the MSDN for some answers but if you can help please do =)

    --------------------Configuration: Easy Window ---------------------------
    Win32DebugCompiling...
    Easy Window.cpp
    Linking...
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/Easy Window.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    Easy Window.exe - 2 error(s), 0 warning(s)
    -----------------------------------------------------------------------------------
    // fade][NiVEN
    fade@quakenet

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You need to use a proper Windows program, which starts with WinMain, not main (as normal C and C++ programs do). Do a bit of searching on Google and you'll find the answer
    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
    New Member
    Join Date
    Dec 2002
    Location
    Sweden, Skövde
    Posts
    14
    Search on what? WinMain? i'll do that tomorrow.. too darned tired today =).
    // fade][NiVEN
    fade@quakenet

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    WinMain and CreateDialog should do the trick
    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

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