Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Errors? C++, play with reference Pin
Mark Salsbery31-May-07 12:13
Mark Salsbery31-May-07 12:13 
GeneralRe: Errors? C++, play with reference Pin
C_Zealot31-May-07 12:16
C_Zealot31-May-07 12:16 
QuestionVC++ 6 -warpper Pin
Tal S.31-May-07 9:54
Tal S.31-May-07 9:54 
AnswerRe: VC++ 6 -warpper Pin
Matthew Faithfull31-May-07 10:06
Matthew Faithfull31-May-07 10:06 
AnswerRe: VC++ 6 -warpper Pin
Chris Losinger31-May-07 10:43
professionalChris Losinger31-May-07 10:43 
AnswerRe: VC++ 6 -warpper Pin
Hamid_RT31-May-07 18:27
Hamid_RT31-May-07 18:27 
Questionconverting from const char [] to 'LPWSTR' Pin
maizhiming31-May-07 9:28
maizhiming31-May-07 9:28 
AnswerRe: converting from const char [] to 'LPWSTR' Pin
Matthew Faithfull31-May-07 9:43
Matthew Faithfull31-May-07 9:43 
I would have to see the definition of SERVICE_TABLE_ENTRY to be sure but I suspect it's defined to contain a wide character (UNICODE) string whereas "Service1" is a constant narrow character or (ASCII) string. UNICODE strings, usually, have 16bits per character while ASCII characters have only 8bits each so conversion between the two is non trivial. There's a whole world of pain involved here, code pages, locales, W2A macros, multi-byte character sets, UTF-8 and then some but what you need to do to make the above code work is make use of the _T() macro Microsoft so kindly supply.

SERVICE_TABLE_ENTRY DispatchTable[]=<br />
{{ _T( "Service1" ) , serviceMain }, {NULL, NULL}};


Enjoy.

Nothing is exactly what it seems but everything with seems can be unpicked.

AnswerRe: converting from const char [] to 'LPWSTR' Pin
Xing Chen31-May-07 15:18
Xing Chen31-May-07 15:18 
QuestionGetDIBits() function call fails Pin
TheDelChop31-May-07 8:50
TheDelChop31-May-07 8:50 
AnswerRe: GetDIBits() function call fails Pin
John R. Shaw31-May-07 9:17
John R. Shaw31-May-07 9:17 
AnswerRe: GetDIBits() function call fails Pin
Mark Salsbery31-May-07 9:30
Mark Salsbery31-May-07 9:30 
QuestionNewbie Question Pin
joshp121731-May-07 8:45
joshp121731-May-07 8:45 
AnswerRe: Newbie Question Pin
David Crow31-May-07 10:31
David Crow31-May-07 10:31 
AnswerRe: Newbie Question Pin
Matthew Faithfull31-May-07 11:10
Matthew Faithfull31-May-07 11:10 
GeneralRe: Newbie Question Pin
joshp121731-May-07 11:15
joshp121731-May-07 11:15 
GeneralRe: Newbie Question Pin
Matthew Faithfull31-May-07 11:37
Matthew Faithfull31-May-07 11:37 
Question64 bit XP Pin
Monty231-May-07 7:40
Monty231-May-07 7:40 
AnswerSolution for those interested Pin
Monty231-May-07 22:41
Monty231-May-07 22:41 
GeneralRe: Solution for those interested Pin
Mark Salsbery1-Jun-07 6:22
Mark Salsbery1-Jun-07 6:22 
QuestionRegistry vs .Ini files. Pin
Anurag Gandhi31-May-07 7:37
professionalAnurag Gandhi31-May-07 7:37 
AnswerRe: Registry vs .Ini files. Pin
David Crow31-May-07 7:57
David Crow31-May-07 7:57 
GeneralRe: Registry vs .Ini files. Pin
Anurag Gandhi31-May-07 8:00
professionalAnurag Gandhi31-May-07 8:00 
QuestionRe: Registry vs .Ini files. Pin
David Crow31-May-07 8:15
David Crow31-May-07 8:15 
AnswerRe: Registry vs .Ini files. Pin
Anurag Gandhi31-May-07 8:17
professionalAnurag Gandhi31-May-07 8:17 

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.