Click here to Skip to main content
15,887,386 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
Code-o-mat19-Apr-10 21:42
Code-o-mat19-Apr-10 21:42 
GeneralRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
Stephen Hewitt19-Apr-10 21:57
Stephen Hewitt19-Apr-10 21:57 
AnswerRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
Michel Godfroid20-Apr-10 3:20
Michel Godfroid20-Apr-10 3:20 
GeneralRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
letianzhu20-Apr-10 4:55
letianzhu20-Apr-10 4:55 
QuestionWinSock 2 + UNICODE / Win32 Pin
Fareed Rizkalla19-Apr-10 11:22
Fareed Rizkalla19-Apr-10 11:22 
AnswerRe: WinSock 2 + UNICODE / Win32 Pin
Richard MacCutchan19-Apr-10 11:46
mveRichard MacCutchan19-Apr-10 11:46 
GeneralRe: WinSock 2 + UNICODE / Win32 Pin
Stephen Hewitt19-Apr-10 14:41
Stephen Hewitt19-Apr-10 14:41 
GeneralRe: WinSock 2 + UNICODE / Win32 Pin
Fareed Rizkalla19-Apr-10 15:45
Fareed Rizkalla19-Apr-10 15:45 
hostent *ResolveHost;
wchar_t *HosName = L"www.codeproject.com";
MessageBox(g_hWindow, HosName, L"Tracing", NULL);
char *HostName = new char[wcslen(HosName)+1];
wcstombs(HostName, HosName, wcslen(HosName)+1);
wchar_t buf[100];
swprintf(buf, L"Multi-Byte: %s", HostName);
MessageBox(g_hWindow, (LPCWSTR)HostName, L"Tracing", NULL);
ResolveHost = gethostbyname(HostName);


Well I've been using the Network Monitor to see how the resolving is going. The multi byte string has some random conversions in it, because the IP the program is trying to connect to is consistent in the begging and changing in the end.



Casting the best way to shut up a compiler. Cool | :cool:
Question[SOLVED]Problem using dmColor member of DEVMODE struct [modified] Pin
hhh19-Apr-10 7:14
hhh19-Apr-10 7:14 
QuestionUnhandled exception Pin
PankajB19-Apr-10 5:59
PankajB19-Apr-10 5:59 
AnswerRe: Unhandled exception Pin
Richard MacCutchan19-Apr-10 6:14
mveRichard MacCutchan19-Apr-10 6:14 
GeneralRe: Unhandled exception Pin
PankajB19-Apr-10 6:50
PankajB19-Apr-10 6:50 
GeneralRe: Unhandled exception Pin
Richard MacCutchan19-Apr-10 6:57
mveRichard MacCutchan19-Apr-10 6:57 
AnswerRe: Unhandled exception Pin
Stephen Hewitt19-Apr-10 14:09
Stephen Hewitt19-Apr-10 14:09 
GeneralRe: Unhandled exception Pin
ramana.g19-Apr-10 19:30
ramana.g19-Apr-10 19:30 
GeneralRe: Unhandled exception Pin
Stephen Hewitt19-Apr-10 21:48
Stephen Hewitt19-Apr-10 21:48 
GeneralRe: Unhandled exception Pin
Saurabh.Garg19-Apr-10 19:51
Saurabh.Garg19-Apr-10 19:51 
GeneralRe: Unhandled exception Pin
Stephen Hewitt19-Apr-10 21:48
Stephen Hewitt19-Apr-10 21:48 
Questiontransaction - rollback in C ??? Pin
aa_zz19-Apr-10 0:20
aa_zz19-Apr-10 0:20 
AnswerRe: transaction - rollback in C ??? PinPopular
CPallini19-Apr-10 0:39
mveCPallini19-Apr-10 0:39 
AnswerRe: transaction - rollback in C ??? PinPopular
KarstenK19-Apr-10 1:09
mveKarstenK19-Apr-10 1:09 
GeneralRe: transaction - rollback in C ??? Pin
aa_zz19-Apr-10 22:29
aa_zz19-Apr-10 22:29 
GeneralRe: transaction - rollback in C ??? Pin
CPallini19-Apr-10 22:38
mveCPallini19-Apr-10 22:38 
GeneralRe: transaction - rollback in C ??? Pin
aa_zz19-Apr-10 22:45
aa_zz19-Apr-10 22:45 
GeneralRe: transaction - rollback in C ??? Pin
CPallini19-Apr-10 22:52
mveCPallini19-Apr-10 22:52 

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.