home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5309 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!microsoft!wingnut!stevesi
  3. From: stevesi@microsoft.com (Steven Sinofsky)
  4. Subject: Re: Debuging with CV of MFC program qust.
  5. Message-ID: <1993Jan24.015506.10121@microsoft.com>
  6. Date: 24 Jan 93 01:55:06 GMT
  7. Organization: Microsoft Corporation
  8. References: <1993Jan21.132929.3089@aristo.tau.ac.il>
  9. Lines: 21
  10.  
  11. In article <1993Jan21.132929.3089@aristo.tau.ac.il> bardak@tau.ac.il (Barak Cohen) writes:
  12. >I am writing windows program with MFC (Microsoft found. class) libraries.
  13. >The trouble is that these programs have no WinMain entry point . The entry
  14. >point is through TheApp class. How do I tell CV the entry point in order to
  15. >debug on the source file (*.cpp + *.h)..
  16. >
  17. >
  18. >God bless you all
  19. >
  20. >bardak
  21. >
  22.  
  23. There is a WinMain entry point, and it is contained in the MFC library.
  24. There is CodeView information available so you can just point the
  25. debugger to those files (c:\c700\mfc\src) when asked at startup.  In
  26. order to get the debug information in your executable, you must be
  27. sure to link with the /CODEVIEW switch.  Also, on the debug versions
  28. of the MFC libraries have codeview information (those variants that
  29. end with a 'd', such as mafxcwD.lib).
  30. -- 
  31. Steven Sinofsky
  32. stevesi@microsoft.com
  33. Disclaimer: I don't speak for Microsoft, BillG does that.
  34.