WriteProcessMemory(processHandle, address, name.c_str(),sizeof(name.c_str()),NULL)
|
|
is this third argument valid for this function? if not how would i make my std::string return the start address of a c string??
lochnessmonster
0
Junior Poster
Recommended Answers
Jump to PostThe third argument is valid (it's just a c-style string), but the fourth argument is incorrect. name.size() or name.size()+1 is likely what you intended.
All 3 Replies
Narue
5,707
Bad Cop
Team Colleague
lochnessmonster
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.