dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to call DLL Method asynchronously?

  1. #1
    Join Date
    May 2006
    Posts
    45

    How to call DLL Method asynchronously?

    Hi

    I need to call a DLL method asynchronously. But async call is possible only in Activex EXE (as per my knowlwdge ) .

    How DLL method can notify the client abt the completion of method execution if it is called asynchronously.

    Thks
    Vidhi

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    Visual Basic 6.0 does not support multi-threading natively. There are workarounds but they required a bit of effort. You may want to start with the below links:

    http://www.freevbcode.com/ShowCode.Asp?ID=1287
    http://www.planet-source-code.com/vb...14479&lngWId=1
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    the first link in Paul's post is one of my favourite articles. it clearly explains why it is a bad idea to use the CreateThread API in VB.
    That does not mean it is not possible. The June 1999 article of the late VBPJ (Black Belt Programming - Create Worker Threads in DLLs), by Matthew Curland, explains how to create safe 3d in a activeX dll (a little tricky). You can download it from http://www.fawcette.com/archives/magazines/vsm/

    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Similar Threads

  1. Call a 16-bit DLL in Win32
    By MaRiŲ in forum VB Classic
    Replies: 1
    Last Post: 09-04-2002, 12:28 PM
  2. Call shared method without class instantiation?
    By Robert C. Cain in forum .NET
    Replies: 3
    Last Post: 01-27-2002, 02:40 AM
  3. Register a DLL in code and Call a function by address?
    By Sean Woods in forum VB Classic
    Replies: 10
    Last Post: 01-14-2002, 12:26 AM
  4. Replies: 1
    Last Post: 06-23-2000, 08:17 PM
  5. NetUserEnum Api
    By Mike in forum VB Classic
    Replies: 2
    Last Post: 04-24-2000, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center