home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 875 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.4 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!by703
  2. From: by703@cleveland.Freenet.Edu (James E. Carey)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Re: setjmp/longjmp
  5. Date: 9 Sep 1992 13:49:20 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 20
  8. Message-ID: <18kvd0INNsu3@usenet.INS.CWRU.Edu>
  9. References: <1992Sep8.202606.13762@xanadu.com>
  10. Reply-To: by703@cleveland.Freenet.Edu (James E. Carey)
  11. NNTP-Posting-Host: slc5.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, ravi@xanadu.com (Ravi Pandya) says:
  15.  
  16. >The July NT x86 toolset does not include setjmp/longjmp - the header
  17. >file is ifdef'ed out, and it is not in the library. It is a fairly
  18. >straightforward piece of assembly code to write, but before I do it,
  19. >I'd like to know if there are any subtle reasons why the obvious
  20. >approach won't work. Does NT do any odd messing around with stacks,
  21. >privilege levels, etc that would make it hard? I have a suspicion that
  22. >something like this is the reason it is not in the library.
  23. >
  24. You don't say if you are writing a character cell app or a GUI app. If you 
  25. are writing a character cell app see setjmp.h.  It works just fine. You may 
  26. need to link with either LIBC or CRTDLL rather than LIBCMT.  I've got a
  27. character cell app that is happily using setjmp and longjmp.
  28.  
  29. Jim Carey
  30. Information Resources, Inc.
  31. jcarey@cykick.infores.com - or - by703@cleveland.freenet.edu
  32.  
  33.