|
Another similar option would be to populate the dialogs list with an obviously stupid file extension, then add the items yourself.
|
|
|
|
|
Hi,
Is it possible to kill any process that uses a certain process' memory under Win32?
stay safe,
Aamir
|
|
|
|
|
Aamir Mughal wrote: ...process that uses a certain process' memory...
Please explain.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You can kill any process, however processes generaly do not share the same memory (a memory mapped file being an exception).
|
|
|
|
|
Another way is that both .EXEs can use a DLL which has a shared data segment.
Steve
|
|
|
|
|
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.
|
|
|
|