return HANDLE?

This is a discussion on return HANDLE? within the C++ Programming forums, part of the General Programming Boards category; hi can i return a HANDLE from a function. like Code: HANDLE OpenPort(char* WhichPort); { HANDLE PortHandle; PortHandle = CreateFile(WichPort....aso ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    37

    return HANDLE?

    hi

    can i return a HANDLE from a function.
    like

    Code:
    HANDLE OpenPort(char* WhichPort);
     {
        
         HANDLE PortHandle;
    
         PortHandle = CreateFile(WichPort....aso
    
         return PortHandle;
    
    }

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    37
    ok.
    got it... yes i can.... if i do it the right way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New string functions
    By Elysia in forum C Programming
    Replies: 11
    Last Post: 03-28-2009, 06:03 AM
  2. need help program crashing
    By tunerfreak in forum C++ Programming
    Replies: 14
    Last Post: 05-22-2006, 12:29 PM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  4. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 01:26 AM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 02:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21