Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: conversion to _bstr_t - newbie Pin
David Crow6-Jun-06 3:35
David Crow6-Jun-06 3:35 
QuestionDraggable, connectable windows classes - where to find them? Pin
midix6-Jun-06 0:29
midix6-Jun-06 0:29 
AnswerRe: Draggable, connectable windows classes - where to find them? Pin
midix6-Jun-06 21:41
midix6-Jun-06 21:41 
QuestionHow to scale a image in C++ Pin
huutribk20016-Jun-06 0:11
huutribk20016-Jun-06 0:11 
AnswerRe: How to scale a image in C++ Pin
Sarath C6-Jun-06 0:42
Sarath C6-Jun-06 0:42 
AnswerRe: How to scale a image in C++ Pin
ThatsAlok6-Jun-06 0:45
ThatsAlok6-Jun-06 0:45 
Questionfunction calling in assembly Pin
zon_cpp6-Jun-06 0:08
zon_cpp6-Jun-06 0:08 
AnswerRe: function calling in assembly Pin
Viorel.6-Jun-06 2:03
Viorel.6-Jun-06 2:03 
The following fragment seems to work:

void MyFunction(char* chCaption) 
{
    MessageBox(0, chCaption, "", 0);
}
//
void main()
{
    _asm
    {
        push eax

        lea eax, text
        push eax
        Call MyFunction
        pop eax

        pop eax

    }
    return;
text: __asm _emit 'Z' __asm _emit ' ' __asm _emit 0
}

Your problems was:

  • The "mov eax, [eax]" instruction hase no sence;
  • The text string is incorectly ended with '0' instead of 0;
  • No exit function at the program end; I used the return instruction in this sample.

GeneralRe: function calling in assembly Pin
zon_cpp6-Jun-06 19:45
zon_cpp6-Jun-06 19:45 
QuestionGetClientRect(rect) or GetClientRect(&rect); Pin
Sarath C5-Jun-06 23:45
Sarath C5-Jun-06 23:45 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Laxman Auti5-Jun-06 23:52
Laxman Auti5-Jun-06 23:52 
GeneralRe: GetClientRect(rect) or GetClientRect(&rect); Pin
toxcct6-Jun-06 0:01
toxcct6-Jun-06 0:01 
QuestionRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Laxman Auti6-Jun-06 0:24
Laxman Auti6-Jun-06 0:24 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); Pin
toxcct6-Jun-06 0:25
toxcct6-Jun-06 0:25 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); [modified] Pin
Viorel.6-Jun-06 0:02
Viorel.6-Jun-06 0:02 
GeneralRe: GetClientRect(rect) or GetClientRect(&rect); [modified] Pin
Sarath C6-Jun-06 0:07
Sarath C6-Jun-06 0:07 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Rinu_Raj6-Jun-06 0:06
Rinu_Raj6-Jun-06 0:06 
GeneralRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Sarath C6-Jun-06 0:09
Sarath C6-Jun-06 0:09 
GeneralRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Rinu_Raj6-Jun-06 0:28
Rinu_Raj6-Jun-06 0:28 
QuestionCrash dump Pin
Anil_vvs5-Jun-06 23:26
Anil_vvs5-Jun-06 23:26 
AnswerRe: Crash dump Pin
_AnsHUMAN_ 5-Jun-06 23:43
_AnsHUMAN_ 5-Jun-06 23:43 
GeneralRe: Crash dump Pin
Anil_vvs6-Jun-06 1:43
Anil_vvs6-Jun-06 1:43 
GeneralRe: Crash dump Pin
_AnsHUMAN_ 6-Jun-06 1:47
_AnsHUMAN_ 6-Jun-06 1:47 
AnswerRe: Crash dump Pin
2249176-Jun-06 0:03
2249176-Jun-06 0:03 
GeneralRe: Crash dump Pin
Anil_vvs6-Jun-06 1:44
Anil_vvs6-Jun-06 1:44 

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.