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

C / C++ / MFC

 
AnswerRe: problem with creating model-less dialog as a child of CFormView Pin
Richard MacCutchan28-May-10 22:26
mveRichard MacCutchan28-May-10 22:26 
GeneralRe: problem with creating model-less dialog as a child of CFormView Pin
m_code29-May-10 8:39
m_code29-May-10 8:39 
Questionabout Hook WriteProcessMemory Pin
rockago28-May-10 12:30
rockago28-May-10 12:30 
AnswerRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 14:02
professionalGarth J Lancaster28-May-10 14:02 
GeneralRe: about Hook WriteProcessMemory Pin
rockago28-May-10 14:23
rockago28-May-10 14:23 
GeneralRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 15:07
professionalGarth J Lancaster28-May-10 15:07 
GeneralRe: about Hook WriteProcessMemory Pin
rockago28-May-10 21:48
rockago28-May-10 21:48 
GeneralRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 22:27
professionalGarth J Lancaster28-May-10 22:27 
so what does your code look like now ?

also, you should be aware of (from http://msdn.microsoft.com/en-us/library/ms681674(VS.85).aspx[^] )

"hProcess [in]
A handle to the process memory to be modified. The handle must have PROCESS_VM_WRITE and PROCESS_VM_OPERATION access to the process."

so you may not have some permissions to write to that memory -
as that page also says, you can do a call to GetLastError - these 2 pages may help

http://msdn.microsoft.com/en-us/library/ms679360(v=VS.85).aspx[^]

http://msdn.microsoft.com/en-us/library/ms680582(v=VS.85).aspx[^]

so see what the error code is.

Finally, have you checked that your process handle of the process you are trying to write to is valid ? (Im presuming somewhere else in your code you are doing an OpenProcess on the Process ID you are trying to write to)

'g'
AnswerRe: about Hook WriteProcessMemory Pin
Richard MacCutchan28-May-10 22:22
mveRichard MacCutchan28-May-10 22:22 
GeneralRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 22:33
professionalGarth J Lancaster28-May-10 22:33 
GeneralRe: about Hook WriteProcessMemory Pin
Richard MacCutchan28-May-10 23:09
mveRichard MacCutchan28-May-10 23:09 
QuestionWrite a function to cause a thread to wait Pin
Danzy8328-May-10 9:08
Danzy8328-May-10 9:08 
AnswerRe: Write a function to cause a thread to wait Pin
CPallini28-May-10 9:19
mveCPallini28-May-10 9:19 
AnswerRe: Write a function to cause a thread to wait Pin
Luc Pattyn28-May-10 9:33
sitebuilderLuc Pattyn28-May-10 9:33 
AnswerRe: Write a function to cause a thread to wait Pin
Cedric Moonen28-May-10 10:02
Cedric Moonen28-May-10 10:02 
GeneralRe: Write a function to cause a thread to wait Pin
CPallini28-May-10 11:08
mveCPallini28-May-10 11:08 
AnswerRe: Write a function to cause a thread to wait Pin
malaugh28-May-10 11:18
malaugh28-May-10 11:18 
AnswerRe: Write a function to cause a thread to wait Pin
Richard MacCutchan28-May-10 22:17
mveRichard MacCutchan28-May-10 22:17 
QuestionOnPrint from IE Pin
mesajflaviu28-May-10 4:34
mesajflaviu28-May-10 4:34 
AnswerRe: OnPrint from IE Pin
mesajflaviu28-May-10 7:43
mesajflaviu28-May-10 7:43 
QuestionAllocating memory for function pointers [modified] Pin
SelvaKr28-May-10 4:08
SelvaKr28-May-10 4:08 
AnswerRe: Allocating memory for function pointers Pin
Aescleal28-May-10 4:16
Aescleal28-May-10 4:16 
GeneralRe: Allocating memory for function pointers Pin
SelvaKr28-May-10 4:41
SelvaKr28-May-10 4:41 
QuestionHow can draw a Side bar like a CodeProject Left Sidebar? Pin
Le@rner28-May-10 2:53
Le@rner28-May-10 2:53 
AnswerRe: How can draw a Side bar like a CodeProject Left Sidebar? Pin
Richard MacCutchan28-May-10 3:06
mveRichard MacCutchan28-May-10 3:06 

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.