Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: copy part out of the videobuffer (videohdr->lpData) Pin
bulg3-Jun-08 13:53
bulg3-Jun-08 13:53 
GeneralRe: copy part out of the videobuffer (videohdr->lpData) Pin
cmos3-Jun-08 14:12
cmos3-Jun-08 14:12 
GeneralRe: copy part out of the videobuffer (videohdr->lpData) Pin
bulg4-Jun-08 10:41
bulg4-Jun-08 10:41 
GeneralRe: copy part out of the videobuffer (videohdr->lpData) Pin
cmos4-Jun-08 14:02
cmos4-Jun-08 14:02 
GeneralRe: copy part out of the videobuffer (videohdr->lpData) Pin
cmos5-Jun-08 6:07
cmos5-Jun-08 6:07 
Answeropen each dialog in the same position Pin
lahom3-Jun-08 12:12
lahom3-Jun-08 12:12 
GeneralRe: open each dialog in the same position [modified] Pin
bulg3-Jun-08 13:25
bulg3-Jun-08 13:25 
Questiongethostname() function problems Pin
koumodaki3-Jun-08 11:33
koumodaki3-Jun-08 11:33 
I am having trouble with gethostname(). The code compiles correctly but the function returns an unknown error. I have compiled on VC6 and .Net2005 platforms. While in VC6, the buffer remains empty, in .Net2005, it gives me unknown error. Why does this occur?

char myname[256];
memset((void*)myname,0,sizeof(myname);
if(!gethostname(myname, sizeof(myname)))
{
int _temp = WSAGetLastError();

if(_temp == WSAEFAULT)
MessageBox(NULL,"Socket creation failed; Attempt to get host name failed; WSAEFAULT ","Lamia",MB_OK);/* who are we? */
if(_temp == WSANOTINITIALISED)
MessageBox(NULL,"Socket creation failed; Attempt to get host name failed; WSANOTINITIALISED ","Lamia",MB_OK);
if(_temp == WSAENETDOWN)
MessageBox(NULL,"Socket creation failed; Attempt to get host name failed; WSAENETDOWN ","Lamia",MB_OK);
if(_temp == WSAEINPROGRESS)
MessageBox(NULL,"Socket creation failed; Attempt to get host name failed; WSAEINPROGRESS ","Lamia",MB_OK);
else
MessageBox(NULL,"Socket creation failed; Attempt to get host name failed; error unknown","Lamia",MB_OK);
}
AnswerRe: gethostname() function problems Pin
Saurabh.Garg3-Jun-08 15:40
Saurabh.Garg3-Jun-08 15:40 
AnswerRe: gethostname() function problems Pin
Jijo.Raj3-Jun-08 18:32
Jijo.Raj3-Jun-08 18:32 
AnswerRe: gethostname() function problems Pin
sudhir_Kumar3-Jun-08 20:21
sudhir_Kumar3-Jun-08 20:21 
AnswerRe: gethostname() function problems Pin
Hamid_RT4-Jun-08 20:33
Hamid_RT4-Jun-08 20:33 
QuestionLoadString Failure Pin
kasi143-Jun-08 8:50
kasi143-Jun-08 8:50 
QuestionRe: LoadString Failure Pin
David Crow3-Jun-08 8:55
David Crow3-Jun-08 8:55 
AnswerRe: LoadString Failure Pin
Jijo.Raj3-Jun-08 9:10
Jijo.Raj3-Jun-08 9:10 
AnswerRe: LoadString Failure Pin
kasi143-Jun-08 9:25
kasi143-Jun-08 9:25 
QuestionRe: LoadString Failure Pin
David Crow3-Jun-08 10:08
David Crow3-Jun-08 10:08 
QuestionCancel Print Jobs Pin
zoiomon3-Jun-08 8:32
zoiomon3-Jun-08 8:32 
QuestionCasting of _bstr_t to CString Pin
SimplySane3-Jun-08 5:01
SimplySane3-Jun-08 5:01 
AnswerRe: Casting of _bstr_t to CString Pin
toxcct3-Jun-08 5:11
toxcct3-Jun-08 5:11 
AnswerRe: Casting of _bstr_t to CString Pin
sudhir_Kumar3-Jun-08 5:17
sudhir_Kumar3-Jun-08 5:17 
GeneralRe: Casting of _bstr_t to CString Pin
toxcct3-Jun-08 5:29
toxcct3-Jun-08 5:29 
GeneralRe: Casting of _bstr_t to CString Pin
ThatsAlok4-Jun-08 1:02
ThatsAlok4-Jun-08 1:02 
AnswerRe: Casting of _bstr_t to CString PinPopular
David Crow3-Jun-08 6:48
David Crow3-Jun-08 6:48 
GeneralRe: Casting of _bstr_t to CString Pin
CPallini3-Jun-08 7:49
mveCPallini3-Jun-08 7:49 

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.