Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: rect on top of the Text Pin
Dave Bryant14-Jul-03 17:46
Dave Bryant14-Jul-03 17:46 
Generalnot working Pin
spicy_kid200014-Jul-03 17:54
spicy_kid200014-Jul-03 17:54 
GeneralRe: not working Pin
Dave Bryant14-Jul-03 18:02
Dave Bryant14-Jul-03 18:02 
GeneralRe: rect on top of the Text Pin
PJ Arends14-Jul-03 18:01
professionalPJ Arends14-Jul-03 18:01 
GeneralRe: rect on top of the Text Pin
PJ Arends14-Jul-03 18:09
professionalPJ Arends14-Jul-03 18:09 
GeneralRe: rect on top of the Text Pin
spicy_kid200014-Jul-03 18:18
spicy_kid200014-Jul-03 18:18 
GeneralRe: rect on top of the Text Pin
PJ Arends14-Jul-03 18:30
professionalPJ Arends14-Jul-03 18:30 
QuestionInline Assembler Macros? Pin
Aidman14-Jul-03 16:37
Aidman14-Jul-03 16:37 
Hi, all Smile | :)

I am trying to write a high performance library by using inline assembler, but I have encountered a irritating problem. It seems that VC++ refuses to accept multi-instructions within the inline asm section for the macro. For example, I can write a inline assembler macro with the single instruction “mov eax, 0” but that’s it, VC++ refuses to accept anymore instructions. The following code might give a better understanding.

#define TestMacro1(x) _asm{ mov eax, 0 } // This works<br />
#define TestMacro2(x) _asm{ mov eax, 0; mov ebx, 0 } // This doesn’t


So what I am trying to do here is to add more then one instruction into the macro, but I don’t know how. Any ideas on how to solve this are highly appreciated.

Thanks in advance.
Aidman » over and out
AnswerRe: Inline Assembler Macros? Pin
PJ Arends14-Jul-03 17:39
professionalPJ Arends14-Jul-03 17:39 
GeneralRe: Inline Assembler Macros? Pin
Aidman14-Jul-03 22:36
Aidman14-Jul-03 22:36 
AnswerRe: Inline Assembler Macros? Pin
Toni7814-Jul-03 19:22
Toni7814-Jul-03 19:22 
GeneralRe: Inline Assembler Macros? Pin
Aidman14-Jul-03 22:56
Aidman14-Jul-03 22:56 
GeneralRe: Inline Assembler Macros? Pin
Toni7814-Jul-03 23:39
Toni7814-Jul-03 23:39 
GeneralRe: Inline Assembler Macros? Pin
Ryan Binns14-Jul-03 23:18
Ryan Binns14-Jul-03 23:18 
GeneralRe: Inline Assembler Macros? Pin
Toni7814-Jul-03 23:36
Toni7814-Jul-03 23:36 
GeneralRe: Inline Assembler Macros? Pin
Ryan Binns15-Jul-03 0:48
Ryan Binns15-Jul-03 0:48 
AnswerRe: Inline Assembler Macros? Pin
TheSurrealist15-Jul-03 0:00
TheSurrealist15-Jul-03 0:00 
Generalabout using OpenDriver() Pin
gdzfy14-Jul-03 16:27
gdzfy14-Jul-03 16:27 
GeneralCPropertySheet Apply button disabled Pin
haritadala14-Jul-03 13:55
haritadala14-Jul-03 13:55 
GeneralRe: CPropertySheet Apply button disabled Pin
Andrew Walker14-Jul-03 15:03
Andrew Walker14-Jul-03 15:03 
GeneralRe: CPropertySheet Apply button disabled Pin
haritadala15-Jul-03 2:30
haritadala15-Jul-03 2:30 
GeneralRe: CPropertySheet Apply button disabled Pin
Andrew Walker15-Jul-03 2:32
Andrew Walker15-Jul-03 2:32 
GeneralCAsyncSocket usage Pin
caustiK14-Jul-03 11:50
caustiK14-Jul-03 11:50 
GeneralRe: CAsyncSocket usage Pin
User 665814-Jul-03 12:41
User 665814-Jul-03 12:41 
GeneralRe: CAsyncSocket usage Pin
caustiK15-Jul-03 3:02
caustiK15-Jul-03 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.