Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Beginning with VC++

Beginning with VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nguyen Thi Thanh
    wrote on last edited by
    #1

    I am a beginer with VC++. I write a class in VC++ but I don't know where is the program started (as main() in C language). Can you help me. Thank you.

    H L L J T 5 Replies Last reply
    0
    • N Nguyen Thi Thanh

      I am a beginer with VC++. I write a class in VC++ but I don't know where is the program started (as main() in C language). Can you help me. Thank you.

      H Offline
      H Offline
      HOW WHAT
      wrote on last edited by
      #2

      main() -> console _tmain() -> UNICODE ? wmain : main WinMain()-> win32 Application wmain() -> UNICODE main()

      1 Reply Last reply
      0
      • N Nguyen Thi Thanh

        I am a beginer with VC++. I write a class in VC++ but I don't know where is the program started (as main() in C language). Can you help me. Thank you.

        L Offline
        L Offline
        leenmie
        wrote on last edited by
        #3

        I think you should learn more about C++. If you write a win32 app., it's WinMain(). Good luck.

        1 Reply Last reply
        0
        • N Nguyen Thi Thanh

          I am a beginer with VC++. I write a class in VC++ but I don't know where is the program started (as main() in C language). Can you help me. Thank you.

          L Offline
          L Offline
          LivingThoughts
          wrote on last edited by
          #4

          Hi Nguyen How r you? Well you want to code a win32 app. I remember how difficult it was in the beginning to understand everything win32 offers. it was way back to 1 year that i started out my win32 journey with a simple tutorial at http://www.softlookup.com/tutorial/vc++/vcu08fi.asp[^] well here is a prototype of winmain int WINAPI WinMain(HINSTANCE d1, HINSTANCE d2, LPSTR d3, int d4) { code..... return 0; }


          ۞It is on our failures that we base a new and different and better success.

          J 1 Reply Last reply
          0
          • L LivingThoughts

            Hi Nguyen How r you? Well you want to code a win32 app. I remember how difficult it was in the beginning to understand everything win32 offers. it was way back to 1 year that i started out my win32 journey with a simple tutorial at http://www.softlookup.com/tutorial/vc++/vcu08fi.asp[^] well here is a prototype of winmain int WINAPI WinMain(HINSTANCE d1, HINSTANCE d2, LPSTR d3, int d4) { code..... return 0; }


            ۞It is on our failures that we base a new and different and better success.

            J Offline
            J Offline
            John R Shaw
            wrote on last edited by
            #5

            :laugh::laugh::laugh: I guarantee that you have no idea yet! But I also guarantee that you are trying to head in the right direction. Unless you think MFC is pure C++, in which case you need to study both. INTP Every thing is relative...

            L 1 Reply Last reply
            0
            • N Nguyen Thi Thanh

              I am a beginer with VC++. I write a class in VC++ but I don't know where is the program started (as main() in C language). Can you help me. Thank you.

              J Offline
              J Offline
              John R Shaw
              wrote on last edited by
              #6

              The main function (routine/method/what ever...) is the entery point in both C and C++. It is when we need to run it in an eniroment like Windows, Lenux, or Apple (Macintosh) that we have problems. Until you understand the basics, stick to console programes. That is programes that require a main() routine. INTP Every thing is relative...

              1 Reply Last reply
              0
              • N Nguyen Thi Thanh

                I am a beginer with VC++. I write a class in VC++ but I don't know where is the program started (as main() in C language). Can you help me. Thank you.

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                Nguyen Thi Thanh wrote:

                Can you help me. Thank you.

                this section of codeproject is full of beginner tutorial.. i believe it will help... just follow this link http://www.codeproject.com/cpp[^]

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV

                1 Reply Last reply
                0
                • J John R Shaw

                  :laugh::laugh::laugh: I guarantee that you have no idea yet! But I also guarantee that you are trying to head in the right direction. Unless you think MFC is pure C++, in which case you need to study both. INTP Every thing is relative...

                  L Offline
                  L Offline
                  LivingThoughts
                  wrote on last edited by
                  #8

                  hi Shaw I know MFC is simply a wrapper for WIN32 API. if i want to code win32 app. i have to learn pure win32 coding without any choice.


                  ۞It is on our failures that we base a new and different and better success.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups