Questions tagged [widechar]

widechar is a generic name for character sets wider than ASCII

The term widechar is a generic name for character sets wider than 8 bits. Generally this means some (unspecified) 16 or 32 bit Unicode encoding.

203 questions
-1
votes
2 answers

Window for taking getch input not showing using ncursesw but works with ncurses

I need to use -lncursesw to print out unicode characters otherwise it wouldn't work however after compiling it with this, the window for user input shows up but when I type characters to it, it doesn't show but still able to type. I honestly don't…
Sirius
  • 27
  • 1
  • 12
-1
votes
1 answer

Heap corruption while trying to free a wchar_t pointer

This is a code that evaluates if a wide string is either L"false" or L"true", but when I try to run it, it gives me this error when trying to free the duplicate string pointer "HEAP CORRUPTION DETECTED: after Normal block(#135756) at…
Nighteen
  • 731
  • 1
  • 7
  • 16
-1
votes
2 answers

C++ 11: Adding an int to a wchar_t

I naively added an int to a wchar_t resulting in a Visual Studio 2013 warning. L'A' + 1 // next letter warning C4244: 'argument' : conversion from 'int' to 'wchar_t', possible loss of data So the error is concerned that a 4 byte int is being…
BSalita
  • 8,420
  • 10
  • 51
  • 68
-1
votes
1 answer

The size parameter from function

I see that a lot of functions need you to set a size for the string which is the output. GetComputerNameW needs: WCHAR wStrName[16U]; DWORD uSize = 16U; GetComputerNameW(wStrName, &uSize); RegSetValueExW needs: WCHAR…
-2
votes
2 answers

Cannot use wide strings in C/C++ Visual Studio, even though it works in CodeBlocks using MinGW

I'm trying to use the Windows API in Visual Studio 2019. The problem is that when I'm trying to create a wide string, using something like this: L"Hello World!", I get an error: 'L': identifier not found Then, I tried using the TEXT() function,…
H-005
  • 467
  • 3
  • 15
-2
votes
3 answers

GetWindowTextW doesnt grab a wide string

I have the following code which gets the data from the textbox input ( pure winapi ) BOOL CALLBACK DlgProc(HWND hw, UINT msg, WPARAM wp, LPARAM lp) { switch (msg) { case WM_INITDIALOG: SendDlgItemMessage(hw, IDC_EDITMASK,…
Vlad
  • 369
  • 4
  • 16
-3
votes
1 answer

Linux wide string to multibyte issue

I know there are many questions already asked on this topic but I am facing a very unusual situation here. I am working in Centos. My application reads some data in wchar_t and converts in multibyte (UTF-8 encoding) and fills the char buffer in a…
Garfield
  • 175
  • 7
  • 17
-3
votes
1 answer

What is the difference between Ansichar and char?

I recently ran into this data type mismatch. This is I never saw before. I hope someone could explain what these are and how are they different. Error I got was F2063. [DCC Error] E2010 Incompatible types: 'AnsiChar' and 'Char'
ThN
  • 3,235
  • 3
  • 57
  • 115
1 2 3
13
14