Thanks
Thanks bmillerqw. I've actually managed to make something work using MultiByteToWide Char().
I don't think you can use TEXT() or_T() when for example "COM1" is generated at
std::string s("COM1");
TEXT(s.str());
However the MultiByteToWide Char() type methods work fine!
Thanks again!
User Profile
Collapse
-
You can ask on Professional Win32 api newsgroup :
news://nntp.aioe.org/comp.os.ms-wind...ogrammer.win32
where it has often been discussed -
Dynamic use of the TEXT script
I have the same question:
Does anyone know how to generate the output of TEXT("COM1") in a dynamic way?
Thanks,
Ian.Leave a comment:
-
Hello,
I am trying to open COMx where x is anywhere between 1 and 4.
I wondered, did you find an answer to your post on 4th November:
----
I am not sure what that is? (multibyte)
Oh and by the way, it works. I am getting data out of COM1.
My question now is, how do I make this dynamic. Can I pass a var to TEXT()?
It doesn't look like I can because it takes in a "quote"...
No activity results to display
Show More
Leave a comment: