Hmm, I could of swore that was what caused a bug with one of my programs, but just ignore my last post. :p
Type: Posts; User: hollowlife1987
Hmm, I could of swore that was what caused a bug with one of my programs, but just ignore my last post. :p
silk.odyssey, In the first code you posted it is allways true, but in the 2nd one GetOpenFileName, has a chance of being 0.
It's a chat client for a p2p network, and you know how people like making their name look cool, the real chat client that the p2p uses allows unicode in usernames, so naturally I have to do the same,...
*sigh* Oh well guess it's the only way
EDIT:
unless anyone else can think of a way I can get the chars to display correctly in my list box
I was hoping to avoid the "UNICODE" and "_UNICODE defines. And since my program needs to support unicode I can't just drop uniocde support. I hope I'm trying not to do the impossible keeping 9x...
Ok, I made the small project, I basicly just striped everything down from the program that I'm having problems with, sorry about the messy code. I used this string in my tests "TestΩ"
Here is a function that I use to append text to a edit control if this helps any.
void AppendWindowText(HWND hWnd, const char * lpString)
{
int iLength = GetWindowTextLength(hWnd);
...
I tryed changing the lfCharSet as you said, and that didn't work, I use this for my Richedit control, which also uses the same data as I'm trying to display in my List View control and it works fine...
I tryed using widechar's but I don't think the list view control supports it since it only showed the first char. Is there anyway to change the code page used for the list view control or any other...
Hi, I was wondering how I can get my List view control in Report mode, work with utf-8, everything else works fine it's just that the multibyte chars aren't displaying correctly, like Ω shows up as...
_T does the same thing as TEXT if I remember correctly and I think people use _T because it's shorter.
I figured out my problem, when i use gethostbyname() it works fine :)
The same thing is happening to me, execpt I'm not using unicode and I'm only using the gethostbyaddr().
Ok, I can get Unicode displaying fine in my program but I want 9x support and the way my program gets the unicode chars is via winsock, and when my program recives it I'm pretty sure thats its...
ok, thank you, i guess I'll have to use MSLU then, oh well, better than non unicode support
I was wondering if MSLU is the only way for a C program made with win32 api to support unicode on 9x
And I'm getting confused on the differance between wide characters and multibyte characters,...
This may help you, if you're trying to do what I think you are.
void AppendWindowText(HWND hWnd, const char * lpString)
{
int iLength = GetWindowTextLength(hWnd);
SendMessage(hWnd,...