How to convert TCHAR[] to CString?
-
Hi, how to do it properly? I tried following: TCHAR tch[20]; CString str; ..... str = tch; but Have an error, do not what kind of, know that because of the assignment. Thanx.
Exceter wrote: TCHAR tch[20]; CString str; str = tch; I just tried the code you posted and it works just fine... The error must be something other in your code. Can you perhaps post the compiler/linker output? -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) -
Exceter wrote: TCHAR tch[20]; CString str; str = tch; I just tried the code you posted and it works just fine... The error must be something other in your code. Can you perhaps post the compiler/linker output? -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) -
Yes, it worked fine for me too, at least for last 2 months. but yesterday it stopped working. I checked that in DEBUG. :eek:Unbelievable, now it is working, I changed nothing in the code, NOTHING, it works:omg: What is going on!!!
Exceter wrote: I changed nothing in the code, NOTHING, Ha,Ha. I've had my share of random compiler errors in my early programming years as well. But as I later find out, 9/10 times it was my fault, or there was an explanation (however obscure it may be).
"..Even my comments have bugs!"
Inspired by Toni78 -
Exceter wrote: I changed nothing in the code, NOTHING, Ha,Ha. I've had my share of random compiler errors in my early programming years as well. But as I later find out, 9/10 times it was my fault, or there was an explanation (however obscure it may be).
"..Even my comments have bugs!"
Inspired by Toni78 -
Exceter wrote: I changed nothing in the code, NOTHING, Ha,Ha. I've had my share of random compiler errors in my early programming years as well. But as I later find out, 9/10 times it was my fault, or there was an explanation (however obscure it may be).
"..Even my comments have bugs!"
Inspired by Toni78