Click here to Skip to main content
15,911,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How i put a CArray as a parament in a function Pin
Immunity188-Jun-07 7:30
Immunity188-Jun-07 7:30 
GeneralRe: How i put a CArray as a parament in a function Pin
Mark Salsbery8-Jun-07 7:40
Mark Salsbery8-Jun-07 7:40 
QuestionCan not take my own IP address (Windows Server 2003) Pin
alejandrofuchs8-Jun-07 6:04
alejandrofuchs8-Jun-07 6:04 
QuestionRe: Can not take my own IP address (Windows Server 2003) Pin
David Crow8-Jun-07 6:33
David Crow8-Jun-07 6:33 
AnswerRe: Can not take my own IP address (Windows Server 2003) Pin
joseaxyz8-Jun-07 7:13
joseaxyz8-Jun-07 7:13 
AnswerRe: Can not take my own IP address (Windows Server 2003) Pin
alejandrofuchs8-Jun-07 7:26
alejandrofuchs8-Jun-07 7:26 
GeneralRe: Can not take my own IP address (Windows Server 2003) Pin
David Crow8-Jun-07 7:33
David Crow8-Jun-07 7:33 
GeneralRe: Can not take my own IP address (Windows Server 2003) [modified] Pin
Mark Salsbery8-Jun-07 7:46
Mark Salsbery8-Jun-07 7:46 
alejandrofuchs wrote:
First, i'm sorry, someone else (joseaxy) was already signed in codeproject in this machine, so my later response had that name.


hmmm...split personality? Poke tongue | ;-P

If you try getaddrinfo(), does that work on Server 2003?

Something like:
char szHostName[256];
if (0 == ::gethostname(szHostName, sizeof(szHostName)))
{
   char* port = "80";
   addrinfo aiHints;
   addrinfo *aiList = NULL;
   int retVal;
 
   memset(&aiHints, 0, sizeof(aiHints));
   aiHints.ai_family = AF_INET;
   aiHints.ai_socktype = SOCK_STREAM;
   aiHints.ai_protocol = IPPROTO_TCP;
 
   if ((retVal = ::getaddrinfo(szHostName, port, &aiHints, &aiList)) == 0) 
   {
      addrinfo *pAddrInfo = aiList;
      while (pAddrInfo)
      {
         // <code>examine pAddrInfo->ai_addr here for local IP address(es)</code>
 
         pAddrInfo = pAddrInfo->ai_next;
      }
 
      <code>::freeaddrinfo(aiList); //*EDIT*</code>
   }
}




-- modified at 14:41 Friday 8th June, 2007

"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Can not take my own IP address (Windows Server 2003) Pin
alejandrofuchs8-Jun-07 8:15
alejandrofuchs8-Jun-07 8:15 
GeneralRe: Can not take my own IP address (Windows Server 2003) Pin
Mark Salsbery8-Jun-07 8:33
Mark Salsbery8-Jun-07 8:33 
GeneralRe: Can not take my own IP address (Windows Server 2003) Pin
Mark Salsbery8-Jun-07 8:43
Mark Salsbery8-Jun-07 8:43 
QuestionHeap corruption in personal threadpool implementation [modified] Pin
Cyrilix8-Jun-07 5:48
Cyrilix8-Jun-07 5:48 
QuestionAutomation object failure on Project Creation Pin
...---...8-Jun-07 4:35
...---...8-Jun-07 4:35 
AnswerRe: Automation object failure on Project Creation Pin
Matthew Faithfull8-Jun-07 5:05
Matthew Faithfull8-Jun-07 5:05 
GeneralRe: Automation object failure on Project Creation Pin
...---...8-Jun-07 5:27
...---...8-Jun-07 5:27 
QuestionDialogBar Pin
thenewbee8-Jun-07 3:14
thenewbee8-Jun-07 3:14 
AnswerRe: DialogBar Pin
Rajkumar R8-Jun-07 3:30
Rajkumar R8-Jun-07 3:30 
GeneralRe: DialogBar Pin
vivekphlp10-Jun-07 17:33
vivekphlp10-Jun-07 17:33 
QuestionRe: DialogBar Pin
Rajkumar R10-Jun-07 18:56
Rajkumar R10-Jun-07 18:56 
AnswerRe: DialogBar Pin
thenewbee10-Jun-07 19:56
thenewbee10-Jun-07 19:56 
QuestionCEdit box buffer limit Pin
NYTSX8-Jun-07 3:03
NYTSX8-Jun-07 3:03 
AnswerRe: CEdit box buffer limit Pin
David Crow8-Jun-07 3:08
David Crow8-Jun-07 3:08 
GeneralRe: CEdit box buffer limit Pin
NYTSX8-Jun-07 3:36
NYTSX8-Jun-07 3:36 
GeneralRe: CEdit box buffer limit Pin
David Crow8-Jun-07 3:43
David Crow8-Jun-07 3:43 
GeneralRe: CEdit box buffer limit Pin
NYTSX8-Jun-07 3:55
NYTSX8-Jun-07 3:55 

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.