Search:
Type: Posts; User: Arianax
Search:
Search took 0.01 seconds.
-
November 5th, 2023, 10:31 AM
Referring BACK to my post where I simplified the code for you as an example (So you don't need to scroll around too much)...:
Here is the code I'm working from now:
char32_t tester = U'ฐ';...
-
November 3rd, 2023, 12:43 PM
Weird... It is returning as value 224 (e0 in Hex).
That translates to the character Ã* which is certainly not ฐ...
I think the problem is that mbtowc() seems to be assuming the character it is...
-
November 3rd, 2023, 10:43 AM
My guess is mbtowc() is either only reading the FIRST byte of the second argument output and then translating that into the WRONG character OR it's returning (null) when I do printf().
What is the...
-
November 3rd, 2023, 09:55 AM
Thank you for your reply @2kaud
Unfortunately, even when I replace 'MB_LEN_MAX' with 'returned' I STILL get the results I described in my previous post (size of the wchar returned by mbtowc() is 1...
-
November 3rd, 2023, 07:42 AM
I got confused so I started OVER with more SIMPLE CODE.
Here is what I got so far:
char32_t tester = U'ฐ';
int returned = NULL;
-
October 18th, 2023, 10:39 AM
@2kaud
I'm doing the following, but I get anomalous results and nothing prints to the console from printf("%C", wcResult ).
wchar_t wcResult;
int length2;
-
October 18th, 2023, 10:10 AM
@VictorN
I'm giving MultiByteToWideChar a try right now. I'm just not sure how to output the result to the console, and if I'm supplying the char* to the MultiByte string correctly and so on.
...
-
October 15th, 2023, 12:32 PM
Thank you for your reply @2kaud. :)
I have suspected that the current locale may not be correct.
I'm not sure how to set it for windows. When I do
setlocale(LC_ALL, ".utf8") I don't think it...
-
October 15th, 2023, 04:23 AM
Hi all,
I converted a char32_t character with c32rtomb() into a char[sizeof(char32_t)] array.
The converted character was a THAI LANGUAGE character with the U prefix before it.
I'm not sure...
-
January 5th, 2022, 08:06 AM
Hi all,
Using the PlgBlt() function to draw rotated bitmap of a sprite to the screen.
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-plgblt
I'm specifically using the...
-
January 3rd, 2022, 11:29 AM
Ok, so I've tried some mathematical transforms on the three (X, Y) coords required by the PlgBlt() function instead...
Problem is, the origin of rotation seems to be stuck to (0,0) (The Upper-left...
-
January 2nd, 2022, 07:04 AM
Hi all,
This is all way over my head...
Any ideas how to rotate a bitmap by a specified angle in WinAPI?
I was told to use SetWorldTransform() and an xForm structure.
However, I'm not...
-
April 1st, 2021, 07:38 AM
I'm coding a program that, ideally, will work on Windows AND Linux. I would also, as a bonus, like it to work on Android.
I need a way to wait for keyboard presses from the user. Not using 'cin'...
-
March 19th, 2021, 01:55 PM
SOLUTION
The solution appears to be correct use of the function SetConsoleWindowInfo().
By setting the dimensions of the console to the exact size of the buffer you don't trigger text...
-
March 19th, 2021, 12:46 PM
Yes, I followed this guide. It's quite effective.
I also didnt know you could use
~WS_STYLENAME in the SetWindowLongA function to REMOVE WS_STYLE messages...
Unfortunately, if the user...
-
March 19th, 2021, 11:56 AM
I'm a beginner.
What do you mean by "subclass the console"?
-
March 19th, 2021, 08:37 AM
I write to the console as follows:
I have an wchar_t* array of 3600 characters.
The console has 120 characters per line and 30 lines (so that's 120 * 30 = 3600).
I fill the character array...
-
March 18th, 2021, 04:01 PM
Is there a way to prevent the text displayed in the Windows Console from rearranging when you resize the window?
When you resize the window the text reformats itself to accommodate the new size.
...
-
July 20th, 2019, 11:14 AM
I'm getting a ton of seemingly random Exception Errors when doing Process Walking with Process32Next() and when enumerating Services associated with the process SvcHost.exe (found during Process...
-
July 20th, 2019, 05:32 AM
The code is still triggering a range of Exception Errors if it is run more than once during the same execution...
When I close the window that outputs the data from GetProcessNext() and...
-
July 19th, 2019, 10:22 AM
Found a fairly comprehensive set of functions() to do the requested operations now... especially thanks to your input @VictorN and @IgorVartanov :
if(handleName != INVALID_HANDLE_VALUE &&...
-
July 14th, 2019, 04:31 PM
Yes, I know.
EnumServicesStatusEx(SCM, SC_ENUM_PROCESS_INFO, SERVICE_WIN32, SERVICE_ACTIVE, NULL, 0, &pcbBytesNeeded, &lpServicesReturned, &lpResumeHandle, NULL);
if(GetLastError() ==...
-
July 14th, 2019, 03:01 PM
Could you provide sample allocation code?
I think I might be getting it wrong since I use the name of my LPENUM_SERVICE_STATUS_PROCESS struct as the handle to the memory allocation:
...
-
July 14th, 2019, 02:05 PM
This is in C/C++:
I'm doing Process Walking ( https://docs.microsoft.com/en-us/windows/win32/toolhelp/process-walking ) through a PROCESSENTRY32 struct made with...
-
July 14th, 2019, 01:12 PM
Got another question:
About Memory Management in EnumServicesStatusEx().
What's the best way to capture the amount of memory needed from the first call to EnumServicesStatusEx() (where the 5th...
|
Click Here to Expand Forum to Full Width
|