Thread: Callbacks

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    3

    Callbacks

    Hi,

    Can anybody explain me how to construct a client server function with Callbacks..

    I know it is possible using Visual C++.. But i have not done it till now.

    Why does this forum look similar to vbforums.com ..???

    Are they being owned by same group..???

    Thanks,
    Pradeep

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: Callbacks

    >>Why does this forum look similar to vbforums.com ..???
    The forum software comes from here and is used by loads of web sites.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Re: Callbacks

    Originally posted by pradeepkrao
    Why does this forum look similar to vbforums.com ..???
    They are both made of the same VBulletin template
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    3

    Wow....

    Thanks Guys.....

    Well can somebody answer the main question..

    Pradeep

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

    Re: Callbacks

    Originally posted by pradeepkrao
    Hi,

    Can anybody explain me how to construct a client server function with Callbacks..

    I know it is possible using Visual C++.. But i have not done it till now.

    Why does this forum look similar to vbforums.com ..???

    Are they being owned by same group..???

    Thanks,
    Pradeep
    Sure....but it requires some reading on your part I'm afraid...Gogle will give you what you need

    You need to do a google search on asyncronous IO. Winsock allows you to use a function called WSAAsyncSelect()....with this you can register a windows to recieve wessages when some activity takes place on the socket...For instance reading, connection, closing, writing ect.....so ll you do is add a handler in the switch statement of your Windows Procedure....

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    3

    Hi

    Thanks...I know that.. I am a VB Programmer..
    In VB i would simply write a ActiveX exe for a server and the client code will instanciate it.. It was very simple there..

    I guess that in VC++ the ATL Wizard would do the code generation..

    But i dont know what to use where..??


    Thanks,
    Pradeep

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. threads and callbacks
    By steve1_rm in forum C Programming
    Replies: 4
    Last Post: 02-25-2009, 01:34 PM
  2. Input via callbacks or functions
    By zacs7 in forum Game Programming
    Replies: 3
    Last Post: 06-02-2008, 05:12 PM
  3. Callbacks to member functions
    By prog-bman in forum C++ Programming
    Replies: 0
    Last Post: 01-19-2008, 02:48 AM
  4. declaring function pointer types for callbacks
    By Pea in forum C Programming
    Replies: 6
    Last Post: 01-06-2005, 09:46 PM
  5. callbacks within a class?
    By btq in forum C++ Programming
    Replies: 5
    Last Post: 10-02-2002, 05:51 AM