win32 DLL question

This is a discussion on win32 DLL question within the Windows Programming forums, part of the Platform Specific Boards category; Can I get the message queue to send the messages to my DLL. Basically my problem is: I need to ...

  1. #1
    DLL User
    Guest

    win32 DLL question

    Can I get the message queue to send the messages to my DLL.

    Basically my problem is: I need to read from the socket and I need to use WSAAsyncSelect function to notify me when there is data to be read from the socket.

    How can I achieve this on a DLL?

    Thanks.

    (sorry if this is simple question!)

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    If I have this right, you have a dll that reads from the socket and you want that to work?

    Best way is to export the read function from your dll so your exe can use it......then in your exe, create a window, call WSAAsyncSelect(), when you get a notification for FD_READ in your swich block call the read function in your dll.

    Is that what you need?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MSI custom action dll function question
    By donglee in forum Windows Programming
    Replies: 5
    Last Post: 02-14-2009, 11:52 AM
  2. dll question
    By keeper in forum C++ Programming
    Replies: 1
    Last Post: 06-04-2006, 10:44 AM
  3. Win32 Console Color Question
    By AndyBomstad in forum C++ Programming
    Replies: 4
    Last Post: 02-04-2005, 02:35 PM
  4. Question about clrscr() in FAQ (Win32)
    By Brain Cell in forum C Programming
    Replies: 9
    Last Post: 01-14-2005, 02:58 AM
  5. Beginner on Win32 apps, lame question.
    By Templario in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 08:39 PM

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