home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12325 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.9 KB

  1. Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
  2. From: twbrown@PE-Nelson.COM (Tom W. Brown)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Dumb questions about Borland C++
  5. Message-ID: <593@lax.lax.pe-nelson.com>
  6. Date: 13 Aug 92 22:57:54 GMT
  7. References: <q!3m8wf.sjk@netcom.com> <1992Aug13.152405.16170@ucc.su.OZ.AU>
  8. Sender: news@lax.pe-nelson.com
  9. Organization: PE-Nelson
  10. Lines: 61
  11.  
  12. In article <1992Aug13.152405.16170@ucc.su.OZ.AU>, maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
  13. |> In article <q!3m8wf.sjk@netcom.com> sjk@netcom.com (Shel Kaphan) writes:
  14. |> >I've been trying to port some programs written for a Unix C compiler
  15. |> >to Borland C/C++, and have a few questions:
  16. |> >
  17. |> >- How do you add an assembly language file to a project in the Windows
  18. |> >IDE ("Integrated Development Environment")?  I tried to do the obvious
  19. |> >thing, and it claims to have successfully "compiled" the assembly
  20. |> >files, but it turns out it didn't do anything.
  21. |> 
  22. |>     Just add the file to the project. Must have .ASM extension.
  23. |> Never tried it but it should work. Otherwise you can configure
  24. |> the project to specifically invole the assembler.
  25.  
  26. No, the Windows hosted IDE (BCW.EXE) is still brain-dead in version 3.1 and
  27. doesn't have the Transfer Options capability of the DOS hosted version.  Only
  28. .C (.CPP) and .RC files can be compiled.  You can, however, put the .OBJ's
  29. in the project as long as you assemble them separately.
  30.  
  31.  
  32. |> >
  33. |> >- Is there a way to view the 386 registers in the debugger?  I mean
  34. |> >those registers not already present in the 286 and 8086.
  35. |> 
  36. |>     No because they are not used.
  37.  
  38. Yes you can, sort of...  bring up the Register window (View|Registers) or 
  39. activate the register subwindow of the CPU view (View|CPU) and press CTRL-R to
  40. toggle between 32 and 16 bit views of the registers.  In 32 bit mode the
  41. additional segment registers FS and GS are displayed.  Note, however, that
  42. you do not get a view of any of the real funky control registers like the
  43. GDTR, LDTR, etc.
  44.  
  45.  
  46. |> >
  47. |> >- Isn't there some way to tell it that you want "int" and "unsigned int"
  48. |> >to be 32 bits?   (just wishful thinking).
  49. |> 
  50. |>     #define long int :-)
  51.  
  52. :-O
  53.     you mean, #define int long, right ;-)
  54.  
  55. |> 
  56. |> >
  57. |> >- Is there no memory model on the PC in which the stack can occupy
  58. |> >more than 64K bytes?  (more wishful thinking, I know ... don't flame me.) 
  59. |> >Don't ask why I care.
  60. |> 
  61. |>     No. Its only a 16 bit machine. And the 386 still
  62. |> runs 16 bit operating systems.
  63.  
  64. Wait for NT and then wait for Borland to release their compiler support for
  65. it (better get a deck of cards or something while you're waiting :-)
  66.  
  67.  
  68. ----------------------------------------------------------------------------
  69. Tom Brown               |  "Strange women, laying in ponds, distributing
  70. PE Nelson Systems       |   swords is no basis for a system of government."
  71. twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
  72. ----------------------------------------------------------------------------
  73.