home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- 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
- From: oper7@ee06.ncu.edu.tw (Anthony Shih Hao Lee)
- Subject: BC++, call member func in inline-assembly code
- Message-ID: <1993Jan5.074509.5936@sparc4.ncu.edu.tw>
- Sender: news@sparc4.ncu.edu.tw
- Organization: Dep. of EECS, National Central University, Chungli, Taiwan, R.O.C.
- Date: Tue, 5 Jan 1993 07:45:09 GMT
- Lines: 26
-
- Hi, all BC++ users:
- I recently write some progs for drawing, but it happened bad things:
- Suppose that I have declared a static class function:
- class test {
- public:
- static void test ( void ) ;
- } ;
- and suppose that it's internal identifier is :
- @test@test$xxx
-
- then I put the following statement in my another program:
-
- #pragma inline // this will made BC++ IDE to call TASM
- _asm extrn @test@test$xxx:far
- _asm call far ptr @test@test$xxx
- These two lines will passed for TASM assembling...
- TLink will report that there is fixup error in that module (which include
- the two in-line asm line)
- i.e., TASM do not produce the correct assembly code...
- Can you tell me what happened?
- Thanks
- tony
- --
- >>> Anthony Li <Li3, Shih4 Hao2><Li:fruit's Name><Shih:Scholar><Hao:Hero> <<<
- <<< Institute of CSEE, National Central Univ, Chungli, Taoyuan, Taiwan, ROC >>>
- >>> Internet: oper7@mbox.ee.ncu.edu.tw oper2@ncuee.ncu.edu.tw >>>
-