|
Another way is ReadProcessMemory and WriteProcessmemory
|
|
|
|
|
That's not technically shared memory: it's a way to acesss mrmory in another process that isn't shared.
Steve
|
|
|
|
|
That's not technically shared memory: it's a way to acesss memory in another process that isn't shared.
Steve
|
|
|
|
|
I am basically trying to make an anti-cheat tool for a certain program. So I mean how can I stop programs like trainers which modify the programs memory value at runtime?
|
|
|
|
|
Aamir Mughal wrote: I am basically trying to make an anti-cheat tool for a certain program. So I mean how can I stop programs like trainers which modify the programs memory value at runtime?
actually you have to hook api like ReadProcessMemory and writeProcessmemory
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And you
|
|
|
|
|
Hi Friends,
Can anyone guide me in preparaing for a C++ and COM interview? I have seen some online interview questions in C++, but couldn't find anything for COM. This is a face-to-face interview, so i expect those guys to ask me to write some programs. Anyone has a idea, the general C++ programs that will be asked to write in personal interviews?
I would appreciate if someone could guide me on finding some online materials to prepare for an personal interview in C++ and COM.
Thanks in advance.
|
|
|
|
|
i've never had to write a program in an interview.
|
|
|
|
|
Thanks.
Any idea about the other typical questions that i can expect?
|
|
|
|
|
dipuks wrote: typical questions
If you could have only one book on your desk which would you choose?
led mike
|
|
|
|
|
Kamasutra
Just kidding
Is this a interview qestion? Hmmm I will got for VC++ book by Dennis
|
|
|
|
|
Does 'playboy' qualify as a book?
|
|
|
|
|
Yes, but "36C" is not the proper answer for "What does COM stand for?"
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
waldermort wrote: Does 'playboy' qualify as a book?
Vote for it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Re
|
|
|
|
|
Never been asked that one. I'd say 'code complete'.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes great book. Of course Don Miguel's astute observation[^] raised it's value in my opinion.
Personally I never cared for the question. Might as well ask someone, "If you could be a tree what kind of tree would you be?"
led mike
|
|
|
|
|
Chris Losinger wrote: i've never had to write a program in an interview.
Strange.. i always ask people to write program, when ever i take interview...
my favourite question is print this (using any language of his/her choice)->
*
* *
* * *
* * * *
* * * * *
and you will surprise, 80% of people having 2+ exp couldn't able to write this simple program...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Re
|
|
|
|
|
dipuks wrote: I would appreciate if someone could guide me on finding some online materials to prepare for an personal interview in C++ and COM.
I don't get this. Either you know the answers, or you don't. Do you know how to write C++ and COM code ? If so, then you shouldn't have a problem. I'd be more worried about if you get questions like 'how would you deal with conflict with a co-worker' and 'what if the lead tells you to do things differently to how you think it should be done' ?
Those questions suck. The tech stuff should be easy, if you know your stuff. And if you don't, no amount of last minute cramming will help. I prefer to be honest in interviews. I think saying 'I don't know, but I know how to find out' at least once in an interview is probably a *good* thing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Either you know the answers, or you don't.
Good point.
Best,
Jun
|
|
|
|
|
I have developed the GUI using Visual C++ and need to incorporate the functions into the application. The functions are written in C code.
I have been trying to link the two codes together but things are not working fine.
Approach I took:
1. Inserted the C source code project into my GUI application workspace.
2. Make the GUI application dependent on the C source code project.
3. Included the header files from the C source code project and the compilation was fine.
4. Transfer the functions in main program of the C source code to the GUI Dialog class. No problem in terms of compiling though I am not too sure whether this is correct.
Use the following method for the declarations for the C functions in the header file.
afx_msg void decode(void);
afx_msg void Configure(void);
For the function in the cpp file, I used the following method for the first function to be called. The remaining functions remain as C types function headers. If I remove the C++ function declaration, there will be errors as the rest of the C functions could not be recognized.
void Dialogc::decode(void);
void Configure(void);
5. No problem on compiling. However, during the linking up, there are some extern variables in the image processing files that need referencing to. They are declared in the Dialog cpp file. That is the reason for the "unresolved external symbol _img" and the strings of other error message.
I have tried including the Dialogc.h in the source file of the image processing file and they could not recognize the class terms i.e. more error occurred.
Thanks.
lost in time
|
|
|
|
|
Adding C style code to C++ should be pretty straight forward. Though you should watch out for statements wrapped in #if defined, #endif blocks. Without seeing the code, it's hard to say, but I would guess that is where your error are coming from.
|
|
|
|
|
Thanks.
I have included all the C style code files into the project and segregated the C code out from the C++ code. It has compiled successfully.
As usual, after one obstacle is overcome, another one appears. Now I have a problem that is related to Winsock2.h.
The below if-define statements were in the program.
#ifdef WIN32
#include <winsock2.h>
#else
#include <netinet in.h="">
#endif
It compiled successfully but during build, two errors occurred.
rtp.obj : error LNK2001: unresolved external symbol __imp__ntohl@4
rtp.obj : error LNK2001: unresolved external symbol __imp__ntohs@4
The problem has to do with ntohl and ntohs that are defined in Winsock2.h.
I have no idea what these two errors are. The program should not have a problem as a build was done in a separate project and it was successful. Please advise. Thanks.
searcher08
|
|
|
|
|
|
I've created an MDI application that has test.cpp and test.h in it.
I've created an IDD (which is a form) called IDD_TEST and declared it in test.h under the //Dialog Data as: enum { IDD = IDD_TEST };
How does one link multiple IDDs ( i.e. if I create IDD_TEST1 ) to 1 class (test.h and test.cpp) so that the variables and event handlers for the controls of both IDDs are located in test.h and test.cpp and I can use them together. (i.e. if m_nCheckBoxTest is in IDD_TEST and m_nCheckBoxTest1 is in IDD_TEST1 I can do:
if(m_nCheckBoxTest.GetCheck() == 1 && m_nCheckBoxTest1.GetCheck() == 1){}
The dilema is I can't fit everything into just 1 form for my I&T GUI....(even with scroll bars enabled...)
Please help...
Kitty5
|
|
|
|
|
could you put all of your handlers in to a single class derived from CDialog (I'm assuming MFC here) and then have the dialogs derive from your handler class?
<br />
class HandlerClass : public CDialog<br />
{<br />
}<br />
<br />
class Dialog1 : public HandlerClass<br />
{<br />
}<br />
<br />
class Dialog2 : public HandlerClass<br />
{<br />
}
cje
|
|
|
|
|
Are you sure you want to do this? Our product currently has this scenario in several places and it is a nightmare to maintain, especialy where help is involved. Just this week I separated one of the .h/.cpp pairs so that each was using its own dialog template. The dialog templates are almost identical so the original author thought it would be neat if only one class serviced both templates. Yuck!
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|