home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18700 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!news.edu.tw!cc.ntnu.edu.tw!news!debbie!sparc4.ncu.edu.tw!ee06!oper7
  3. From: oper7@ee06.ncu.edu.tw (Anthony Shih Hao Lee)
  4. Subject: BC++, call member func in inline-assembly code
  5. Message-ID: <1993Jan5.074509.5936@sparc4.ncu.edu.tw>
  6. Sender: news@sparc4.ncu.edu.tw
  7. Organization: Dep. of EECS, National Central University, Chungli, Taiwan, R.O.C.
  8. Date: Tue, 5 Jan 1993 07:45:09 GMT
  9. Lines: 26
  10.  
  11. Hi, all BC++ users:
  12. I recently write some progs for drawing, but it happened bad things:
  13. Suppose that I have declared a static class function:
  14. class test {
  15.     public:
  16.         static void test ( void ) ;
  17. } ;
  18. and suppose that it's internal identifier is :
  19. @test@test$xxx
  20.  
  21. then I put the following statement in my another program:
  22.  
  23. #pragma inline            // this will made BC++ IDE to call TASM
  24. _asm    extrn    @test@test$xxx:far
  25. _asm    call    far ptr @test@test$xxx
  26. These two lines will passed for TASM assembling...
  27. TLink will report that there is fixup error in that module (which include
  28. the two in-line asm line)
  29. i.e., TASM do not produce the correct assembly code...
  30. Can you tell me what happened?
  31. Thanks
  32. tony
  33. -- 
  34. >>> Anthony Li <Li3, Shih4 Hao2><Li:fruit's Name><Shih:Scholar><Hao:Hero>   <<<
  35. <<< Institute of CSEE, National Central Univ, Chungli, Taoyuan, Taiwan, ROC >>>
  36. >>> Internet:    oper7@mbox.ee.ncu.edu.tw     oper2@ncuee.ncu.edu.tw        >>>
  37.