Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem calling .exe from a dll Pin
#realJSOP3-Jul-01 5:35
professional#realJSOP3-Jul-01 5:35 
GeneralCOM crashing Pin
Chris Klecker2-Jul-01 7:03
Chris Klecker2-Jul-01 7:03 
GeneralADO Pin
Gérald Mercet2-Jul-01 6:41
Gérald Mercet2-Jul-01 6:41 
GeneralRe: ADO Pin
Carlos Antollini2-Jul-01 6:58
Carlos Antollini2-Jul-01 6:58 
Generalbinding member variables Pin
2-Jul-01 5:13
suss2-Jul-01 5:13 
GeneralRe: binding member variables Pin
3-Jul-01 5:29
suss3-Jul-01 5:29 
GeneralReturn variable Pin
Giuseppe Vitali2-Jul-01 0:19
Giuseppe Vitali2-Jul-01 0:19 
GeneralRe: Return variable Pin
Anders Molin2-Jul-01 4:49
professionalAnders Molin2-Jul-01 4:49 
I made a couple of small changes, and now it works.

TCHAR* IPAddress()
{
  WSADATA wsa;
  WSAStartup(MAKEWORD(1, 0), &wsa);
  char szBuffer[250];
  TCHAR *lpIPAddr = new TCHAR[18];
  memset(lpIPAddr, '\0', 18 * sizeof(TCHAR));
  if(gethostname(szBuffer, 250) != 0)
  return 0;
  struct hostent * host = gethostbyname(szBuffer);
  _stprintf(lpIPAddr, "IP Locale: %d.%d.%d.%d\n",
  (BYTE)host->h_addr_list[0][0],
  (BYTE)host->h_addr_list[0][1],
  (BYTE)host->h_addr_list[0][2],
  (BYTE)host->h_addr_list[0][3]);
  return lpIPAddr;
}


- Anders

Money talks, but all mine ever says is "Goodbye!"
GeneralRe: Return variable Pin
Giuseppe Vitali2-Jul-01 5:54
Giuseppe Vitali2-Jul-01 5:54 
GeneralRe: Return variable Pin
Mukkie2-Jul-01 8:19
Mukkie2-Jul-01 8:19 
Generalxml validator Pin
1-Jul-01 23:55
suss1-Jul-01 23:55 
GeneralRe: xml validator Pin
markkuk2-Jul-01 0:46
markkuk2-Jul-01 0:46 
GeneralTemplate Question Pin
1-Jul-01 23:47
suss1-Jul-01 23:47 
GeneralRe: Template Question Pin
Martin Vladic2-Jul-01 0:26
Martin Vladic2-Jul-01 0:26 
GeneralRe: Template Question Pin
2-Jul-01 0:41
suss2-Jul-01 0:41 
GeneralRe: Template Question Pin
Martin Vladic2-Jul-01 23:30
Martin Vladic2-Jul-01 23:30 
GeneralRe: Template Question Pin
Martin Vladic2-Jul-01 23:44
Martin Vladic2-Jul-01 23:44 
GeneralRe: Template Question Pin
Tomasz Sowinski2-Jul-01 1:12
Tomasz Sowinski2-Jul-01 1:12 
GeneralDisplaying Graphical Primitives of RichText Format Pin
1-Jul-01 23:26
suss1-Jul-01 23:26 
GeneralFailure in CRecordSet::IsOpen() Pin
Kristian Thelin1-Jul-01 23:09
Kristian Thelin1-Jul-01 23:09 
GeneralRe: Failure in CRecordSet::IsOpen() Pin
olof neumann1-Jul-01 23:15
olof neumann1-Jul-01 23:15 
Generaloverriding CEDIT Pin
1-Jul-01 21:43
suss1-Jul-01 21:43 
GeneralWM_CLOSE Pin
vijayaramaraju1-Jul-01 21:27
vijayaramaraju1-Jul-01 21:27 
GeneralRe: WM_CLOSE Pin
Gert Boddaert2-Jul-01 4:48
Gert Boddaert2-Jul-01 4:48 
GeneralRe: WM_CLOSE Pin
Hadi Rezaee2-Jul-01 8:29
Hadi Rezaee2-Jul-01 8:29 

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.