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. Creating UI with Threads

Creating UI with Threads

Scheduled Pinned Locked Moved C / C++ / MFC
designhelpquestion
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.
  • C Offline
    C Offline
    Coremn
    wrote on last edited by
    #1

    Hi I have used this code for a UI in a dll. CNewApp * thread = (CNewApp *) AfxBeginThread(RUNTIME_CLASS(CNewApp),THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED); I get the following compile error error: C2039: 'classCNewApp' : is not a member of 'CNewApp' Note the no space in the error Why Why Why?? CNewApp is of type CWinApp with is of type CWinThread ---

    T J 2 Replies Last reply
    0
    • C Coremn

      Hi I have used this code for a UI in a dll. CNewApp * thread = (CNewApp *) AfxBeginThread(RUNTIME_CLASS(CNewApp),THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED); I get the following compile error error: C2039: 'classCNewApp' : is not a member of 'CNewApp' Note the no space in the error Why Why Why?? CNewApp is of type CWinApp with is of type CWinThread ---

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      Does you CNewApp class contain a DECLARE_CLASS statement? Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

      C 1 Reply Last reply
      0
      • T Tim Smith

        Does you CNewApp class contain a DECLARE_CLASS statement? Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

        C Offline
        C Offline
        Coremn
        wrote on last edited by
        #3

        THis is how I declared my class class AFX_EXT_CLASS CNewApp : public CWinApp { DECLARE_DYNCREATE(CNewApp ) CNewApp (); virtual BOOL InitInstance(); }; IMPLEMENT_DYNCREATE(CDialogThread, CWinApp) BOOL CNewApp ::InitInstance() { ... }

        1 Reply Last reply
        0
        • C Coremn

          Hi I have used this code for a UI in a dll. CNewApp * thread = (CNewApp *) AfxBeginThread(RUNTIME_CLASS(CNewApp),THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED); I get the following compile error error: C2039: 'classCNewApp' : is not a member of 'CNewApp' Note the no space in the error Why Why Why?? CNewApp is of type CWinApp with is of type CWinThread ---

          J Offline
          J Offline
          Jon Hulatt
          wrote on last edited by
          #4

          Why are you trying to create a CWinApp object? You ought to be using a direct derivation of CWinThread. Signature space for rent. Apply Within.

          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