Click here to Skip to main content
15,916,417 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
David Crow7-Jul-05 5:03
David Crow7-Jul-05 5:03 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 6:43
balaclavabob7-Jul-05 6:43 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
David Crow7-Jul-05 6:51
David Crow7-Jul-05 6:51 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 7:20
balaclavabob7-Jul-05 7:20 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
David Crow7-Jul-05 7:28
David Crow7-Jul-05 7:28 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 7:36
balaclavabob7-Jul-05 7:36 
QuestionPNG displaying in VISUAL C - is it possible ? Pin
seq-7-Jul-05 3:34
seq-7-Jul-05 3:34 
AnswerRe: PNG displaying in VISUAL C - is it possible ? Pin
Andrew Kirillov7-Jul-05 3:47
Andrew Kirillov7-Jul-05 3:47 
AnswerRe: PNG displaying in VISUAL C - is it possible ? Pin
JWood7-Jul-05 8:33
JWood7-Jul-05 8:33 
GeneralMail Server Project Pin
saood swar7-Jul-05 2:29
saood swar7-Jul-05 2:29 
GeneralRe: Mail Server Project Pin
ThatsAlok7-Jul-05 2:40
ThatsAlok7-Jul-05 2:40 
GeneralRe: Mail Server Project Pin
saood swar7-Jul-05 3:27
saood swar7-Jul-05 3:27 
GeneralRe: Mail Server Project Pin
Ravi Bhavnani7-Jul-05 10:36
professionalRavi Bhavnani7-Jul-05 10:36 
GeneralMSXML ( HELP ) Pin
Anonymous7-Jul-05 2:16
Anonymous7-Jul-05 2:16 
GeneralSorting and searching a CSV file Pin
Sree_india7-Jul-05 0:55
Sree_india7-Jul-05 0:55 
GeneralRe: Sorting and searching a CSV file Pin
Christian Graus7-Jul-05 1:54
protectorChristian Graus7-Jul-05 1:54 
GeneralCall function via inline assembler Pin
georg waechter7-Jul-05 0:49
georg waechter7-Jul-05 0:49 
Hello,

i am currently trying to call a C++ function from inline assembler code. This works fine. But I habe a problem with getting the return value of the called function.

Here my code:
float func(float h)<br />
{<br />
   std::cout << h;<br />
   return 78.0f;<br />
}<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
   float par = 67.5f;<br />
   int adr = reinterpret_cast<int>(&func);<br />
   _asm<br />
   {<br />
      push par;   // Paramter pushen<br />
      call adr;   // Funktion aufrufen<br />
      add esp, 4; // Stackzeiger verschieben<br />
      mov par, eax;  // Returnwert aus eax Register in Variable<br />
   }<br />
<br />
   std::cout << par;<br />
   std::cin.get();<br />
   return 0;<br />
}<br />


Normally par should store 78.0f now. But that's not the case.
Somebody is seeing my fault?

Thanks
Georg
GeneralRe: Call function via inline assembler Pin
Trollslayer7-Jul-05 1:24
mentorTrollslayer7-Jul-05 1:24 
GeneralRe: Call function via inline assembler Pin
georg waechter7-Jul-05 1:53
georg waechter7-Jul-05 1:53 
QuestionCan a DLL is built by VB 6.0 use in VC 6.0? Pin
Member 21004816-Jul-05 22:59
Member 21004816-Jul-05 22:59 
AnswerRe: Can a DLL is built by VB 6.0 use in VC 6.0? Pin
Michael P Butler6-Jul-05 23:34
Michael P Butler6-Jul-05 23:34 
GeneralUser Breakpoint called from code Pin
micutzu6-Jul-05 22:10
micutzu6-Jul-05 22:10 
GeneralRe: User Breakpoint called from code Pin
lfrequency6-Jul-05 22:18
lfrequency6-Jul-05 22:18 
GeneralRe: User Breakpoint called from code Pin
Atul Dwivedi6-Jul-05 23:03
Atul Dwivedi6-Jul-05 23:03 
GeneralRe: User Breakpoint called from code Pin
ThatsAlok6-Jul-05 23:54
ThatsAlok6-Jul-05 23:54 

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.