Thread: win32 DLL question

  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,793
    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, 09: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