Click here to Skip to main content
15,868,349 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Obtaining the Parallel Port Address Pin
Roger Stoltz10-Feb-07 9:31
Roger Stoltz10-Feb-07 9:31 
QuestionVirtual methods Pin
Waldermort8-Feb-07 22:34
Waldermort8-Feb-07 22:34 
AnswerRe: Virtual methods Pin
Cedric Moonen8-Feb-07 22:39
Cedric Moonen8-Feb-07 22:39 
GeneralRe: Virtual methods Pin
Waldermort9-Feb-07 1:44
Waldermort9-Feb-07 1:44 
QuestionGet IP Address & system name in C Pin
Karismatic8-Feb-07 22:14
Karismatic8-Feb-07 22:14 
AnswerRe: Get IP Address & system name in C Pin
Sethuraman.K9-Feb-07 1:52
Sethuraman.K9-Feb-07 1:52 
QuestionRe: Get IP Address & system name in C Pin
Mark Salsbery9-Feb-07 6:02
Mark Salsbery9-Feb-07 6:02 
AnswerRe: Get IP Address & system name in C Pin
malaugh9-Feb-07 9:06
malaugh9-Feb-07 9:06 
If you want the host and Ip of your computer, try this:

static int GetHostIP(uint8 *IPAddress)
{
char HostName[128];
struct sockaddr_in SocketAddress;
struct hostent *pHost = 0;


if (gethostname(HostName, sizeof(HostName)) == SOCKET_ERROR)
{
return FCTSERVER_CANNOT_GET_HOST_NAME;
}

pHost = gethostbyname(HostName);
if(!pHost)
{
return FCTSERVER_CANNOT_GET_HOST_IP;
}

memcpy(&SocketAddress.sin_addr, pHost->h_addr_list[0], pHost->h_length);
strcpy(IPAddress, inet_ntoa(SocketAddress.sin_addr));
return FCTSERVER_OK;
}

QuestionDisplaying static control on title bar of a dialog Pin
Q2A8-Feb-07 21:57
Q2A8-Feb-07 21:57 
AnswerRe: Displaying static control on title bar of a dialog Pin
Cedric Moonen8-Feb-07 22:20
Cedric Moonen8-Feb-07 22:20 
GeneralRe: Displaying static control on title bar of a dialog Pin
Q2A8-Feb-07 22:27
Q2A8-Feb-07 22:27 
GeneralRe: Displaying static control on title bar of a dialog Pin
Cedric Moonen8-Feb-07 22:50
Cedric Moonen8-Feb-07 22:50 
GeneralRe: Displaying static control on title bar of a dialog Pin
Q2A9-Feb-07 1:20
Q2A9-Feb-07 1:20 
GeneralRe: Displaying static control on title bar of a dialog Pin
Cedric Moonen9-Feb-07 1:48
Cedric Moonen9-Feb-07 1:48 
AnswerRe: Displaying static control on title bar of a dialog Pin
Hamid_RT9-Feb-07 5:25
Hamid_RT9-Feb-07 5:25 
Questiondisplaying text in diffrent font on rich edit control Pin
Swapnil G8-Feb-07 21:31
Swapnil G8-Feb-07 21:31 
AnswerRe: displaying text in diffrent font on rich edit control Pin
Hamid_RT8-Feb-07 21:38
Hamid_RT8-Feb-07 21:38 
QuestionAbout windowless mode Pin
siddharthsan8-Feb-07 21:25
siddharthsan8-Feb-07 21:25 
AnswerRe: About windowless mode Pin
Waldermort8-Feb-07 21:39
Waldermort8-Feb-07 21:39 
QuestionHow to embed a bitmap file into executable? Pin
LoadBitmap8-Feb-07 21:12
LoadBitmap8-Feb-07 21:12 
AnswerRe: How to embed a bitmap file into executable? Pin
Michael Dunn8-Feb-07 21:20
sitebuilderMichael Dunn8-Feb-07 21:20 
AnswerRe: How to embed a bitmap file into executable? Pin
Hamid_RT8-Feb-07 21:20
Hamid_RT8-Feb-07 21:20 
GeneralRe: How to embed a bitmap file into executable? Pin
LoadBitmap8-Feb-07 21:43
LoadBitmap8-Feb-07 21:43 
GeneralRe: How to embed a bitmap file into executable? Pin
Hamid_RT8-Feb-07 21:47
Hamid_RT8-Feb-07 21:47 
QuestionBest IPC mechanism Pin
vipin_nvk8-Feb-07 20:22
vipin_nvk8-Feb-07 20:22 

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.