Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMouse move event Pin
RajiRaghu6-Jun-06 0:43
RajiRaghu6-Jun-06 0:43 
Questionconversion to _bstr_t - newbie Pin
antonaras6-Jun-06 0:29
antonaras6-Jun-06 0:29 
AnswerRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:37
Sarath C6-Jun-06 0:37 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:58
ThatsAlok6-Jun-06 0:58 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 1:02
ThatsAlok6-Jun-06 1:02 
AnswerRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:43
ThatsAlok6-Jun-06 0:43 
GeneralRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:49
Sarath C6-Jun-06 0:49 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:57
ThatsAlok6-Jun-06 0:57 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 0:55
antonaras6-Jun-06 0:55 
GeneralRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:59
Sarath C6-Jun-06 0:59 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 1:01
ThatsAlok6-Jun-06 1:01 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 1:09
antonaras6-Jun-06 1:09 
AnswerRe: conversion to _bstr_t - newbie Pin
Viorel.6-Jun-06 1:20
Viorel.6-Jun-06 1:20 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 1:33
antonaras6-Jun-06 1:33 
GeneralRe: conversion to _bstr_t - newbie Pin
Viorel.6-Jun-06 1:47
Viorel.6-Jun-06 1:47 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 1:58
antonaras6-Jun-06 1:58 
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 

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.