Click here to Skip to main content
15,920,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI Parent Size Problem Pin
David Crow6-Jul-05 2:41
David Crow6-Jul-05 2:41 
GeneralRe: MDI Parent Size Problem Pin
sayup6-Jul-05 5:07
sayup6-Jul-05 5:07 
GeneralRe: MDI Parent Size Problem Pin
David Crow6-Jul-05 5:56
David Crow6-Jul-05 5:56 
GeneralSimultaneous access to a serial device from two threads Pin
Juergen Kordes5-Jul-05 21:30
Juergen Kordes5-Jul-05 21:30 
GeneralRe: Simultaneous access to a serial device from two threads Pin
ThatsAlok5-Jul-05 21:42
ThatsAlok5-Jul-05 21:42 
Generalwindow media player Pin
Anonymous5-Jul-05 21:17
Anonymous5-Jul-05 21:17 
GeneralRe: window media player Pin
Jose Lamas Rios6-Jul-05 3:39
Jose Lamas Rios6-Jul-05 3:39 
Generalip adress Pin
_tasleem5-Jul-05 20:57
_tasleem5-Jul-05 20:57 
hi i m trying to get the ip adress of my computer through code.i had used this code for that purpose.
char name[256];
HOSTENT *obj;
gethostname(name,sizeof(name));
MessageBox("The name is",name);
obj=gethostbyname(name);
if(obj==NULL)
MessageBox("The ERROR name is");
// adress of computer is saved in obj->h_addr_list field which is 2d array of strings.i had used this method to get the ip
// but it does not work.
else
{
for(int i=0;i<obj->h_length;i++)
MessageBox("ip adres is",obj->h_addr_list[i]);
}
then if i directaly use that code but it give the error that cannot convert char** to const char.
MessageBox("ip adres is",obj->h_addr_list);
then i had used another method whic is but it does not work also.
char **temp;
temp=obj->h_addr_list;
for(int i=0;i<obj->h_length;i++)
MessageBox("ip adres is",temp[i]);
can anybody help me how to do that or get the values form that field.

ddd
GeneralRe: ip adress Pin
ThatsAlok5-Jul-05 21:35
ThatsAlok5-Jul-05 21:35 
GeneralFont Problem Pin
Pazzuzu5-Jul-05 20:46
Pazzuzu5-Jul-05 20:46 
QuestionTo delete functions via IDE of VC++ 2003 ? Pin
Maxwell Chen5-Jul-05 20:45
Maxwell Chen5-Jul-05 20:45 
Generalopening MDI in maximized form at startup Pin
sayup5-Jul-05 20:15
sayup5-Jul-05 20:15 
GeneralRe: opening MDI in maximized form at startup Pin
Antony T5-Jul-05 22:48
sussAntony T5-Jul-05 22:48 
Generalenum in a switch statement Pin
Ista5-Jul-05 20:13
Ista5-Jul-05 20:13 
GeneralRe: enum in a switch statement Pin
ThatsAlok5-Jul-05 20:26
ThatsAlok5-Jul-05 20:26 
GeneralRe: enum in a switch statement Pin
Bob Stanneveld5-Jul-05 22:18
Bob Stanneveld5-Jul-05 22:18 
GeneralRe: enum in a switch statement Pin
ThatsAlok6-Jul-05 1:44
ThatsAlok6-Jul-05 1:44 
GeneralRe: enum in a switch statement Pin
Bob Stanneveld6-Jul-05 1:47
Bob Stanneveld6-Jul-05 1:47 
GeneralRe: enum in a switch statement Pin
Ista6-Jul-05 8:56
Ista6-Jul-05 8:56 
GeneralRe: enum in a switch statement Pin
Rick York6-Jul-05 11:46
mveRick York6-Jul-05 11:46 
GeneralRe: enum in a switch statement Pin
Ista6-Jul-05 11:51
Ista6-Jul-05 11:51 
GeneralRe: enum in a switch statement Pin
Bob Stanneveld6-Jul-05 20:40
Bob Stanneveld6-Jul-05 20:40 
GeneralUsername n Password Pin
kireken5-Jul-05 19:10
kireken5-Jul-05 19:10 
GeneralRe: Username n Password Pin
Christian Graus5-Jul-05 19:33
protectorChristian Graus5-Jul-05 19:33 
GeneralRe: Username n Password Pin
kireken5-Jul-05 19:48
kireken5-Jul-05 19:48 

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.