home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8527 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  850 b 

  1. Path: sparky!uunet!caen!hellgate.utah.edu!cc.usu.edu!slb1b
  2. From: slb1b@cc.usu.edu (Holographic Banana)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: BC++ 3.0 wierd compiler bug? or me?
  5. Message-ID: <1992Aug13.171217.58139@cc.usu.edu>
  6. Date: 13 Aug 92 17:12:17 MDT
  7. Organization: Utah State University
  8. Lines: 22
  9.  
  10. This is really bizzare --
  11.  
  12. In Borland C++ v3.0 I'm passing a bunch of const char * and char *. The
  13. parameters comming that are giving me wierd results are constant strings,
  14. e.g.
  15.  
  16. foo("blah");
  17.  
  18. What is happening is that in the call to foo(),  I get a pointer to a
  19. terminating '\0', i.e. the compiler is treating my calls the same as
  20.  
  21. foo("");
  22.  
  23. Has anyone experienced this and have found a remedy???
  24. I'm running DOS 5.0, and compiling with overlays, C++, huge memory model,
  25. fastest code, standard stack frame for debugging.
  26.  
  27. Thanks, 
  28.  
  29. James
  30.  
  31.  
  32.