Click here to Skip to main content
15,891,597 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inline assembly syntax error.. Pin
enhzflep31-Oct-11 0:51
enhzflep31-Oct-11 0:51 
GeneralRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 1:02
CodingLover31-Oct-11 1:02 
GeneralRe: Inline assembly syntax error.. Pin
enhzflep31-Oct-11 1:18
enhzflep31-Oct-11 1:18 
GeneralRe: Inline assembly syntax error.. Pin
David Crow31-Oct-11 3:13
David Crow31-Oct-11 3:13 
GeneralRe: Inline assembly syntax error.. Pin
enhzflep31-Oct-11 3:19
enhzflep31-Oct-11 3:19 
GeneralRe: Inline assembly syntax error.. Pin
Richard MacCutchan31-Oct-11 0:54
mveRichard MacCutchan31-Oct-11 0:54 
GeneralRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 1:03
CodingLover31-Oct-11 1:03 
GeneralRe: Inline assembly syntax error.. Pin
Snorri Kristjansson31-Oct-11 1:09
professionalSnorri Kristjansson31-Oct-11 1:09 
You need to terminate the __asm block with a ';'
e.g.
__asm
{
mov eax,0
mov ebx,10
};

Also note that you MUST preserve (push/pop) any registers you use within an __asm block.
Another thing to note when using 'out' instruction - you may trigger an exception because the Windows OS allows only a few 'out' addresses accesses directly like that from user mode programs (ring 3).
If I remember correctly only tho old LPT ports are accessible.
GeneralRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 1:12
CodingLover31-Oct-11 1:12 
AnswerRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 23:53
CodingLover31-Oct-11 23:53 
JokeRe: Inline assembly syntax error.. Pin
David Crow1-Nov-11 2:57
David Crow1-Nov-11 2:57 
QuestionHow to get the current active document of MDI application? Pin
rahul.kulshreshtha30-Oct-11 20:41
rahul.kulshreshtha30-Oct-11 20:41 
AnswerRe: How to get the current active document of MDI application? Pin
«_Superman_»30-Oct-11 21:55
professional«_Superman_»30-Oct-11 21:55 
QuestionIIS Metadata, can't write the default pages and Mimes. Pin
jkirkerx30-Oct-11 6:43
professionaljkirkerx30-Oct-11 6:43 
AnswerRe: IIS Metadata, can't write the default pages and Mimes. Pin
jkirkerx30-Oct-11 9:42
professionaljkirkerx30-Oct-11 9:42 
AnswerI'm almost there, how to add to safe array Pin
jkirkerx31-Oct-11 13:18
professionaljkirkerx31-Oct-11 13:18 
QuestionBuild problems Pin
columbos1492730-Oct-11 1:24
columbos1492730-Oct-11 1:24 
AnswerRe: Build problems Pin
Richard MacCutchan30-Oct-11 2:51
mveRichard MacCutchan30-Oct-11 2:51 
AnswerRe: Build problems Pin
_AnsHUMAN_ 30-Oct-11 22:02
_AnsHUMAN_ 30-Oct-11 22:02 
GeneralRe: Build problems Pin
columbos1492731-Oct-11 2:53
columbos1492731-Oct-11 2:53 
QuestionHow to extract Visio XML files properties Pin
DeveloperLife201529-Oct-11 1:41
DeveloperLife201529-Oct-11 1:41 
AnswerRe: How to extract Visio XML files properties Pin
Richard MacCutchan29-Oct-11 2:47
mveRichard MacCutchan29-Oct-11 2:47 
GeneralRe: How to extract Visio XML files properties Pin
Code-o-mat29-Oct-11 4:07
Code-o-mat29-Oct-11 4:07 
AnswerRe: Some links to visio code.. Pin
App_29-Oct-11 12:25
App_29-Oct-11 12:25 
QuestionHow to get column Title when get inffo from IShellFolder2::GetDetailsOf Method? Pin
Le@rner29-Oct-11 1:25
Le@rner29-Oct-11 1:25 

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.