home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4615 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!yale.edu!jvnc.net!newserver.jvnc.net!newsserver.technet.sg!ntuix!ntuvax.ntu.ac.sg!sa6904623
  3. From: sa6904623@ntuvax.ntu.ac.sg
  4. Subject: Re: Calling C from VB--Debug
  5. Message-ID: <1993Jan6.084106.1@ntuvax.ntu.ac.sg>
  6. Lines: 19
  7. Sender: news@ntuix.ntu.ac.sg (USENET News System)
  8. Nntp-Posting-Host: v9001.ntu.ac.sg
  9. Organization: Nanyang Technological University - Singapore
  10. Date: Wed, 6 Jan 1993 00:41:06 GMT
  11.  
  12. You can use the Quick C debugger for the DLL.  Set the Project/Run options to
  13. make the driver to be the VB program.
  14.  
  15. For the VB program, use the File/Make option to create the .EXE file.  This exe
  16. file will be loaded and executed by Quick C.  QC will give a warning about the
  17. application not having debug info, just ignore it.
  18.  
  19. Once the VB application makes a call to the DLL, QC is in control (traps,
  20. traces and other debugging options are enabled).  Once the function returns to
  21. the VB application, QC is no longer in control.
  22.  
  23. WARNING:  Set a breakpoint in the function of the DLL and use the RUN command
  24. to start the debugging session.  Be sure to use the RUN command again at the
  25. end of the function, before returning to the VB application.  Attempting to get
  26. QC to STEP through the VB application leads to a protection fault!
  27.  
  28.  
  29. Kenneth "Automan" Tan
  30.  
  31.