1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can some one answer my Question

Discussion in 'MFC' started by falcon eyes, Apr 27, 2007.

  1. falcon eyes

    falcon eyes New Member

    Joined:
    Apr 8, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Hi
    I'm newbie with Visual c++ ,i had learned the essential concepts of c++ like variables,functions,pointer,class but i,m still learning VC++ and i have some questions

    1-Can i creat an object or variables on the fly(at run time) if so how can i do that

    2-During reading some examplesof visual c++ projects i noted a word "HANDLE"
    What's meant by this word,what's the function it do and when i must use it
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Yes you can using pointer as in the case of C++.

    Handle can be think of as an unique identifier for any window or control on the screen you see. IE / FF you are using to see the post also has the unique handle associated with it and it changes each time you launch the application. Through handle you can get the window object and vice versa.
     
  3. falcon eyes

    falcon eyes New Member

    Joined:
    Apr 8, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    can u explain more the answer of the two questions by a simple examples
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    I am not sure of that first one any sample is needed but for the second one you can just use your Visual studio to generate a dialog based application and see where you will find lots of handles and windows.
     

Share This Page