say i execute an windows api function in my code to allocate memory in the specified process! How do i actually view/know this worked without checking getlasterror() or return codes? is there any other way i can do this in a easier/better manner? maybe runtime with a debugger? if so what would i even need to check for to know it worked successfully?
lochnessmonster
0
Junior Poster
Recommended Answers
Jump to PostWhich specific fuction are you talking about? win32 api functions normally return 0 if the function failed.
>>is there any other way i can do this in a easier/better manner
Write your own wrapper for the win32 api function that throws an exception, similar to the one that c++ …
All 2 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
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.