home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / tools / 1406 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.8 KB

  1. Path: sparky!uunet!gumby!wupost!cheswicks!f0.n86.z86.toadnet.org!Peter.Garner
  2. From: Peter.Garner@f0.n86.z86.toadnet.org (Peter Garner)
  3. Sender: ufgate@cheswicks.toadnet.org (newsout1.26)
  4. Newsgroups: comp.os.ms-windows.programmer.tools
  5. Subject: Re: BC++ far* default in
  6. Message-ID: <54.2B02CF63@cheswicks.toadnet.org>
  7. Date: Wed, 11 Nov 92 16:26:19 cdt
  8. Organization: FidoNet node 86:86/0 - Zone Toad, St Louis MO
  9. Lines: 47
  10.  
  11.  PP> In your data declarations, if you do not specifically specify PP>
  12. keyword far, then the declaration is left in the default data
  13.  
  14.  
  15. Aha, so you think that what that guy wanted was a way to get his medium
  16.  
  17. model data out of DGROUP.  I hvae run into that problem, even in the
  18. large model.  MSC has a compiler line switch to automatically move all
  19. string constants out of DGROUP, if this is compiled:
  20.  
  21. double lfAngle;    // 8 bytes taken up in DGROUP
  22. char far caPrompt[8];    // 8 bytes stored in a far segment NOT
  23.         // in DGROUP
  24.  
  25. Unfortunately, I know of know way to accomplish this with BC++.  In
  26. fact, I participated in the writing of a large model C++ multimedia GUI
  27.  
  28. authoring package for Chrysler last year, and we never did figure out
  29. how
  30. to DEFAULT data out of DGROUP.  As you said, you can EXPLICITLY declare
  31.  
  32. the data as far, but there seems to be no way to make that a default.
  33. Also in the medium model all your medium model library fcns will crash
  34. when they attempt access data in another segment witha near pointer!
  35. Now
  36. that you have pointed out what this guy really wants (he DID ask a very
  37.  
  38. good question) I am most interested in the answer.
  39.  
  40. Thank you
  41.  
  42. Peter
  43.  
  44.  
  45.  * KWQ/2 1.0 *
  46.  
  47. .
  48.  
  49.  * KWQ/2 1.0 *
  50.  
  51.  
  52. --- WM v2.04/92-0499
  53.  * Origin: Cheswick's * HST/DS * STLMO (86:86/0)
  54. --  
  55. Peter Garner - via Toadnet/UUCP Gateway 86:86/200
  56. UUCP: ....!wupost!0!Peter.Garner
  57. INTERNET: Peter.Garner@f0.n86.z86.toadnet.org
  58.