Click here to Skip to main content
15,924,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Linking files - inline, or Dev studio? Pin
Viorel.13-Jun-06 5:03
Viorel.13-Jun-06 5:03 
QuestionMFC Class Wizard has Stopped Working Pin
Jethro6313-Jun-06 4:48
Jethro6313-Jun-06 4:48 
AnswerRe: MFC Class Wizard has Stopped Working Pin
toxcct13-Jun-06 5:02
toxcct13-Jun-06 5:02 
GeneralRe: MFC Class Wizard has Stopped Working Pin
Jethro6313-Jun-06 5:08
Jethro6313-Jun-06 5:08 
GeneralRe: MFC Class Wizard has Stopped Working Pin
bob1697213-Jun-06 5:37
bob1697213-Jun-06 5:37 
Questionhow to convert string to unicode or LPWSTR Pin
iLL eFFect13-Jun-06 4:20
iLL eFFect13-Jun-06 4:20 
AnswerRe: how to convert string to unicode or LPWSTR Pin
Ganesh_T13-Jun-06 4:28
Ganesh_T13-Jun-06 4:28 
AnswerRe: how to convert string to unicode or LPWSTR Pin
Viorel.13-Jun-06 4:42
Viorel.13-Jun-06 4:42 
If performance is not important, I think the easier alternative way is using of _bstr_t type. You can assign and you can get strings of both types:

_bstr_t s;
s = "abc";
s = L"abc";
char * a = s;
wchar_t * w = s;

So just try ::RegOpenKeyEx(..., _bstr_t(my_non_unicode_string), ...).

Note that you can explicitly stipulate the version of RegOpenKeyEx function when your strings do not correspond to the project configuration settings. Just use RegOpenKeyExA or RegOpenKeyExW according to your needs.
GeneralRe: how to convert string to unicode or LPWSTR Pin
iLL eFFect13-Jun-06 4:46
iLL eFFect13-Jun-06 4:46 
GeneralRe: how to convert string to unicode or LPWSTR Pin
Viorel.13-Jun-06 4:52
Viorel.13-Jun-06 4:52 
GeneralRe: how to convert string to unicode or LPWSTR Pin
iLL eFFect13-Jun-06 5:00
iLL eFFect13-Jun-06 5:00 
GeneralRe: how to convert string to unicode or LPWSTR Pin
Viorel.13-Jun-06 5:07
Viorel.13-Jun-06 5:07 
AnswerRe: how to convert string to unicode or LPWSTR Pin
Michael Dunn13-Jun-06 6:27
sitebuilderMichael Dunn13-Jun-06 6:27 
QuestionMisbehaving StrList.AddTail(pStr[i]); (vc++6) [modified] Pin
Tara1413-Jun-06 4:18
Tara1413-Jun-06 4:18 
AnswerRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Viorel.13-Jun-06 4:26
Viorel.13-Jun-06 4:26 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Tara1413-Jun-06 4:38
Tara1413-Jun-06 4:38 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Viorel.13-Jun-06 4:46
Viorel.13-Jun-06 4:46 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Tara1413-Jun-06 4:51
Tara1413-Jun-06 4:51 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Tara1413-Jun-06 5:11
Tara1413-Jun-06 5:11 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Viorel.13-Jun-06 5:16
Viorel.13-Jun-06 5:16 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Tara1413-Jun-06 5:22
Tara1413-Jun-06 5:22 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Viorel.13-Jun-06 5:36
Viorel.13-Jun-06 5:36 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
Tara1413-Jun-06 5:45
Tara1413-Jun-06 5:45 
GeneralRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) Pin
David Crow13-Jun-06 6:09
David Crow13-Jun-06 6:09 
AnswerRe: Misbehaving StrList.AddTail(pStr[i]); (vc++6) [modified] Pin
_AnsHUMAN_ 13-Jun-06 4:32
_AnsHUMAN_ 13-Jun-06 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.