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

C / C++ / MFC

 
GeneralMemory error closing if use function that are in DLL Pin
17-May-01 7:41
suss17-May-01 7:41 
GeneralRe: Memory error closing if use function that are in DLL Pin
Dark Angel17-May-01 16:09
Dark Angel17-May-01 16:09 
GeneralLogon Domain and Userid Pin
Chris Meech17-May-01 5:59
Chris Meech17-May-01 5:59 
GeneralRe: Logon Domain and Userid Pin
Carlos Antollini17-May-01 6:21
Carlos Antollini17-May-01 6:21 
GeneralRe: Logon Domain and Userid Pin
Chris Meech17-May-01 6:43
Chris Meech17-May-01 6:43 
Generaldetecting IP Pin
17-May-01 5:54
suss17-May-01 5:54 
GeneralRe: detecting IP Pin
Pavlos Touboulidis17-May-01 13:51
Pavlos Touboulidis17-May-01 13:51 
GeneralRe: detecting IP Pin
BLaZe19-May-01 3:24
BLaZe19-May-01 3:24 
void CGetIPDlg::GetIP()
{
	WORD wVersionRequested;
      WSADATA wsaData;
      char name[255];
      CString ip;
      PHOSTENT hostinfo;
      wVersionRequested = MAKEWORD( 2, 0 );

      if ( WSAStartup( wVersionRequested, &wsaData ) == 0 )
      {

            if( gethostname ( name, sizeof(name)) == 0)
            {
                  if((hostinfo = gethostbyname(name)) != NULL)
                  {
                        ip = inet_ntoa (*(struct in_addr *)*hostinfo->h_addr_list);
                  }
				  m_IP.SetWindowText(ip);
				  UpdateData(FALSE);
            }
            
            WSACleanup( );
      } 

}
<pre>

BLaZe

ICQ # 110244345
email : mpblaze@iquebec.com

GeneralA Black View Pin
Bilal Naveed17-May-01 5:11
Bilal Naveed17-May-01 5:11 
GeneralRe: A Black View Pin
Tomasz Sowinski17-May-01 5:22
Tomasz Sowinski17-May-01 5:22 
GeneralDifferent behaviour WinNT vs Win2000 using Socks... Pin
Carlos Marcão17-May-01 5:11
Carlos Marcão17-May-01 5:11 
General::FindNextChangeNotification Pin
17-May-01 4:41
suss17-May-01 4:41 
GeneralRe: ::FindNextChangeNotification Pin
17-May-01 5:25
suss17-May-01 5:25 
GeneralRe: ::FindNextChangeNotification Pin
17-May-01 11:06
suss17-May-01 11:06 
GeneralMetafiles & RTF Pin
17-May-01 4:31
suss17-May-01 4:31 
GeneralRate of change of Pixel intensity Pin
mr200317-May-01 3:00
mr200317-May-01 3:00 
GeneralRe: Rate of change of Pixel intensity Pin
Christian Graus17-May-01 13:03
protectorChristian Graus17-May-01 13:03 
GeneralRate of change of Pixel intensity Pin
mr200317-May-01 2:48
mr200317-May-01 2:48 
GeneralNT Service Pin
Roger17-May-01 2:42
Roger17-May-01 2:42 
GeneralRe: NT Service Pin
17-May-01 3:21
suss17-May-01 3:21 
GeneralRe: NT Service Pin
Tomasz Sowinski17-May-01 3:35
Tomasz Sowinski17-May-01 3:35 
GeneralRe: NT Service Pin
17-May-01 3:43
suss17-May-01 3:43 
GeneralRegarding notification through events to remote machines Pin
Yamuna17-May-01 2:32
Yamuna17-May-01 2:32 
Generalcasting Pin
hearties16-May-01 23:12
hearties16-May-01 23:12 
GeneralRe: casting Pin
Christian Graus17-May-01 1:13
protectorChristian Graus17-May-01 1:13 

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.