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. Worker-Thread In Win32 Application

Worker-Thread In Win32 Application

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 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.
  • Z Offline
    Z Offline
    ZarrinPour
    wrote on last edited by
    #1

    Hi: I have recently created a "Win32 Application" project or, more accurately "A Simple Win32 Application". but i need to use a Worker-Thread in this app so i used AfxBeginThread() function,but when i want to compile project,i receive the following error: error C2065: 'AfxBeginThread' : undeclared identifier Am i doing somethimg wrong? or Is it possible to use this function in Win32 Application ? Please Help me. Best Regards.

    R 1 Reply Last reply
    0
    • Z ZarrinPour

      Hi: I have recently created a "Win32 Application" project or, more accurately "A Simple Win32 Application". but i need to use a Worker-Thread in this app so i used AfxBeginThread() function,but when i want to compile project,i receive the following error: error C2065: 'AfxBeginThread' : undeclared identifier Am i doing somethimg wrong? or Is it possible to use this function in Win32 Application ? Please Help me. Best Regards.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      AfxBeginThread() is a method of CWnd, which is only available if you create an MFC application. Use CreateThread() (and related Win32 functions) if you're not using MFC. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

      J 1 Reply Last reply
      0
      • R Ravi Bhavnani

        AfxBeginThread() is a method of CWnd, which is only available if you create an MFC application. Use CreateThread() (and related Win32 functions) if you're not using MFC. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

        J Offline
        J Offline
        Johann Gerell
        wrote on last edited by
        #3

        Ravi Bhavnani wrote: AfxBeginThread() is a method of CWnd No, but of MFC. Ravi Bhavnani wrote: Use CreateThread() (and related Win32 functions) if you're not using MFC. But preferably _beginthreadex() from the C runtime. -- Human beings, who are almost unique in having the ability
        to learn from the experience of others, are also remarkable
        for their apparent disinclination to do so. (Douglas Adams)

        R 1 Reply Last reply
        0
        • J Johann Gerell

          Ravi Bhavnani wrote: AfxBeginThread() is a method of CWnd No, but of MFC. Ravi Bhavnani wrote: Use CreateThread() (and related Win32 functions) if you're not using MFC. But preferably _beginthreadex() from the C runtime. -- Human beings, who are almost unique in having the ability
          to learn from the experience of others, are also remarkable
          for their apparent disinclination to do so. (Douglas Adams)

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Johann Gerell wrote: No, but of MFC. Ooops, you're so right! :-O /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

          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