Click here to Skip to main content
15,849,032 members

Comments by Shao Voon Wong (Top 198 by date)

Shao Voon Wong 30-Jan-24 5:05am View    
Hi Eduardo, I have posted a tip to answer your question on converting console app not to show console here: https://www.codeproject.com/Tips/5376609/Cplusplus-Convert-Console-Project-to-Non-Console
Shao Voon Wong 13-Sep-23 6:27am View    
Deleted
Why your CopyFromMemory() only copy the width?

hr=m_bitmap->CopyFromMemory(NULL,m_frame_buffer,m_screen.dimensions().width*4);
Shao Voon Wong 7-Jun-23 6:22am View    
Visual Studio 2013 supports C++11. You have to enable it in the project properties dialog.
Shao Voon Wong 28-May-23 5:14am View    
Is the 9-digit 4294967294 (0xFFFFFFFE)? You should post what is the 9-digit you are getting.
Shao Voon Wong 25-May-23 7:24am View    
There is no need to free temp. CT2A allocates memory on the stack, not heap. When the function returns, the stack memory used by CT2A shall be freed.

Here is an example on how to use CT2A: https://stackoverflow.com/questions/859304/convert-cstring-to-const-char