Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.
When I excute in release mode MessageBox is not displaying spaces and when I debug in the release mode it is showing.
long l_no_of_chars = 100; LPSTR t_space_text = NULL; CString u_space; // Allocate that much space t_space_text = (LPSTR) malloc (l_no_of_chars + 1); // Fill the variable with 32 _strnset( t_space_text, 32, l_no_of_chars); // Set the Last Character *(t_space_text + l_no_of_chars) = 0; // Get the Left Text u_space = t_space_text; ::MessageBox (NULL,"File", u_space, MB_OK | MB_ICONINFORMATION); // Free allocated memory free (t_space_text);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|DCT of 2D array using fftw in c++||9||137|
|MS Access Using VBA Split Word Docx file into separate Doc for Each Page||15||73|
|C++ statement T∗ begin(Vector<T>& x)||5||46|
|calling back function with same name and different signature||1||45|
Join the community of 500,000 technology professionals and ask your questions.