Results 1 to 13 of 13

Thread: Visual C++ newbie

  1. #1

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Visual C++ newbie

    Hello,

    I got VC++ but i got no MSDN. Does anyone know any good sites where u can learn VC++ from scratch because i dont know any codes.


    Thanks greatly for help
    VS.NET 2003

    Need to email me?

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Do you know how to program in C++ - not windows programming? if not then check out the faq and read some tutorials on C++. Visual C++ is just a compiler for C++
    Baaaaaaaaah

  3. #3

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Hi

    I dont know C/C++ but i have Visual C++
    VS.NET 2003

    Need to email me?

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Then you need to know C++ first. You can program in C++ using the compiler Visual C++

    here are the links to some good tutorials that can get you started in C++. There are some links indexes too:

    http://www.cprogramming.com/tutorial.html
    http://www.cplusplus.com/
    http://www.glenmccl.com/tutor.htm
    http://www2.andrews.edu/~maier/tutor.html
    http://www.vb-bookmark.com/CppTutorial.html

    Books:

    http://www.cesis.lv/learn/C++/
    Baaaaaaaaah

  5. #5

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Thnx
    VS.NET 2003

    Need to email me?

  6. #6
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I would reccomend books. The only way to learn C++. See the FAQ for links.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  7. #7
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Baaaaaaaaah

  8. #8
    Megatron
    Guest
    www.programmingtutorials.com might be of some use to you.

  9. #9
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Yeah, remember, C++ is the language. Visual C++ is just the compiler.
    Alcohol & calculus don't mix.
    Never drink & derive.

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I'd recommend Sam's teach yourself C++ in 21 days, after all C++ is an object oriented language, and if you want to take advantage of that, learn OOP
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Ok Thanks. Meanwhile, does anyone know how to make my Form Un Re-sizable, t.e Static, not Squichable or Stretchable:

    PHP Code:
    #include <windows.h>

    /* Declare Windows procedure */
    LRESULT CALLBACK WindowProcedure(HWNDUINTWPARAMLPARAM);
    /* Make the class name into a global variable */
    char szClassName[ ] = "Test";
    char szWinTitle[ ] = "Test";
    int WINAPI WinMain(HINSTANCE hThisInstanceHINSTANCE hPrevInstanceLPSTR lpszArgumentint nFunsterStil)

    {
        
    HWND hwnd;               /* This is the handle for our window */
        
    HWND txtbox;
        
    MSG messages;            /* Here messages to the application are saved */
        
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

        /* The Window structure */
        
    wincl.hInstance hThisInstance;
        
    wincl.lpszClassName szClassName;
        
    wincl.lpfnWndProc WindowProcedure;      /* This function is called by windows */
        
    wincl.style CS_DBLCLKS;                 /* Catch double-clicks */
        
    wincl.cbSize sizeof(WNDCLASSEX);

        
    /* Use default icon and mouse-pointer */
        
    wincl.hIcon LoadIcon(NULLIDI_APPLICATION);
        
    wincl.hIconSm LoadIcon(NULLIDI_APPLICATION);
        
    wincl.hCursor LoadCursor(NULLIDC_ARROW);
        
    wincl.lpszMenuName NULL/* No menu */
        
    wincl.cbClsExtra 0;                      /* No extra bytes after the window class */
        
    wincl.cbWndExtra 0;                      /* structure or the window instance */
        /* Use light-gray as the background of the window */
        
    wincl.hbrBackground = (HBRUSHGetStockObject(LTGRAY_BRUSH);

        
    /* Register the window class, if fail quit the program */
        
    if(!RegisterClassEx(&wincl)) return 0;

        
    /* The class is registered, let's create the program*/
        
    hwnd CreateWindowEx(
               
    0,                   /* Extended possibilites for variation */
               
    szClassName,         /* Classname */
               
    szWinTitle,         /* Title Text */
               
    WS_OVERLAPPEDWINDOW/* default window */
               
    CW_USEDEFAULT,       /* Windows decides the position */
               
    CW_USEDEFAULT,       /* where the window ends up on the screen */
               
    544,                 /* The programs width */
               
    375,                 /* and height in pixels */
               
    HWND_DESKTOP,        /* The window is a child-window to desktop */
               
    NULL,                /* No menu */
               
    hThisInstance,       /* Program Instance handler */
               
    NULL                 /* No Window Creation data */
               
    );

               
    txtbox CreateWindowEx(0/* Create The TextBox */
               
    "edit",                    /* Classname */
               
    "My textbox",              /* Default text */
               
    WS_CHILD,                  /* TextBox is a child */
               
    CW_USEDEFAULT,                        /* Size/Length/Width */
               
    CW_USEDEFAULT,                        /* Size/Length/Width */
               
    544,                       /* Size/Length/Width */
               
    375,                        /* Size/Length/Width */
               
    hwnd,                      /* Handle */
               
    NULL,                      /* Menu handle */
               
    hThisInstance,             /* Instance Name/Long */
               
    NULL                       /* NULL of something??? */
               
    );

        
    /* Make the window visible on the screen */
        
    ShowWindow(hwndnFunsterStil);
        
    ShowWindow(txtboxnFunsterStil);
        
    /* Run the message loop. It will run until GetMessage( ) returns 0 */
        
    while(GetMessage(&messagesNULL00))
        {
               
    /* Translate virtual-key messages into character messages */
               
    TranslateMessage(&messages);
               
    /* Send message to WindowProcedure */
               
    DispatchMessage(&messages);
        }

        
    /* The program return-value is 0 - The value that PostQuitMessage( ) gave */
        
    return messages.wParam;
    }

    /* This function is called by the Windows function DispatchMessage( ) */
    LRESULT CALLBACK WindowProcedure(HWND hwndUINT messageWPARAM wParamLPARAM lParam)
    {
        switch (
    message)                  /* handle the messages */
        
    {
               case 
    WM_DESTROY:
               
    PostQuitMessage(0);        /* send a WM_QUIT to the message queue */
               
    break;
               default:                   
    /* for messages that we don't deal with */
               
    return DefWindowProc(hwndmessagewParamlParam);
        }
        return 
    0;

    VS.NET 2003

    Need to email me?

  12. #12
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Put:

    PHP Code:
    WS_MAXIMIZEBOX WS_MINIMIZEBOX WS_POPUP WS_CAPTION 
        
    WS_SYSMENU 
    instead of WM_OVERLAPPEDWINDOW for your windows' style
    Baaaaaaaaah

  13. #13

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Ok Thanks a lot
    VS.NET 2003

    Need to email me?

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