Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 64 bit MFC apps Pin
Jochen Arndt8-May-13 2:19
professionalJochen Arndt8-May-13 2:19 
QuestionRe: 64 bit MFC apps Pin
David Crow8-May-13 4:22
David Crow8-May-13 4:22 
QuestionMemory Management in C++ - Understanding Stack and Heap in Detail.? Pin
mbatra316-May-13 23:06
mbatra316-May-13 23:06 
AnswerRe: Memory Management in C++ - Understanding Stack and Heap in Detail.? Pin
Vijjuuu.7-May-13 2:07
Vijjuuu.7-May-13 2:07 
GeneralRe: Memory Management in C++ - Understanding Stack and Heap in Detail.? Pin
Erudite_Eric8-May-13 1:33
Erudite_Eric8-May-13 1:33 
QuestionRe: Memory Management in C++ - Understanding Stack and Heap in Detail.? Pin
David Crow7-May-13 3:51
David Crow7-May-13 3:51 
AnswerRe: Memory Management in C++ - Understanding Stack and Heap in Detail.? Pin
Erudite_Eric8-May-13 1:48
Erudite_Eric8-May-13 1:48 
QuestionC++ - Code performance - code injection Pin
ixjf6-May-13 20:45
ixjf6-May-13 20:45 
Hey,

I've asked this question on Stack Overflow, as you probably have seen if you're active there, but they said my project was illegal therefore nobody helped me (though, I proved them there are lots of projects like mine) - my project is just about injecting a piece of code into a game (namely Grand Theft Auto VC) to create a big mod (multiplayer, I wouldn't like to say my current ideas just for the sake of not getting stolen, though sooner or later when I release the project there will be someone who will copy some of them anyway; and I think that's not necessary either).

Through the development process of the project, I came up with some questions:
1. Is it better to use Assembly to call a pointer returned by
C++
GetProcAddress
or type cast it and call it directly from C++?
__asm call pointer

vs
C++
typedef int (*DOWINMAIN) ( HINSTANCE, HINSTANCE, LPSTR, int );
DOWINMAIN pDoWinMain = (DOWINMAIN)GetProcAddress ( hModule, "DoWinMain" );


2. As I mentioned above, my project is based on code injection, the thing is: DEP (Data Execution Prevention) doesn't let the program edit the game's memory, unless I, of course, disable it. Is there a way to inject the code without DEP caughing the program or do I really have to disable DEP definitely? Can that be made in C++ or do the users have to manually disable it?

Thanks for reading Smile | :)
AnswerRe: C++ - Code performance - code injection Pin
ThatsAlok6-May-13 21:25
ThatsAlok6-May-13 21:25 
GeneralRe: C++ - Code performance - code injection Pin
ixjf6-May-13 21:47
ixjf6-May-13 21:47 
GeneralRe: C++ - Code performance - code injection Pin
ThatsAlok7-May-13 1:51
ThatsAlok7-May-13 1:51 
GeneralRe: C++ - Code performance - code injection Pin
Chris Losinger7-May-13 1:56
professionalChris Losinger7-May-13 1:56 
GeneralRe: C++ - Code performance - code injection Pin
ixjf7-May-13 2:19
ixjf7-May-13 2:19 
AnswerRe: C++ - Code performance - code injection Pin
ThatsAlok20-May-13 23:42
ThatsAlok20-May-13 23:42 
AnswerRe: C++ - Code performance - code injection Pin
dusty_dex7-May-13 3:14
dusty_dex7-May-13 3:14 
AnswerRe: C++ - Code performance - code injection Pin
jschell7-May-13 9:42
jschell7-May-13 9:42 
GeneralRe: C++ - Code performance - code injection Pin
ixjf8-May-13 2:06
ixjf8-May-13 2:06 
QuestionDetails regarding insertion of wide characters into a sqlite3 database programatically Pin
Member 78946016-May-13 18:23
Member 78946016-May-13 18:23 
AnswerRe: Details regarding insertion of wide characters into a sqlite3 database programatically Pin
Coder Block6-May-13 19:42
Coder Block6-May-13 19:42 
AnswerRe: Details regarding insertion of wide characters into a sqlite3 database programatically Pin
LaxmikantYadav6-May-13 19:48
LaxmikantYadav6-May-13 19:48 
GeneralRe: Details regarding insertion of wide characters into a sqlite3 database programatically Pin
Member 78946016-May-13 22:24
Member 78946016-May-13 22:24 
QuestionOnShowWindow() doesn't work on CPropertyPage Pin
Donguy19766-May-13 11:53
Donguy19766-May-13 11:53 
AnswerRe: OnShowWindow() doesn't work on CPropertyPage Pin
«_Superman_»6-May-13 16:50
professional«_Superman_»6-May-13 16:50 
GeneralRe: OnShowWindow() doesn't work on CPropertyPage Pin
Donguy19767-May-13 3:38
Donguy19767-May-13 3:38 
GeneralRe: OnShowWindow() doesn't work on CPropertyPage Pin
«_Superman_»7-May-13 18:29
professional«_Superman_»7-May-13 18:29 

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.