Search found 79 matches

by Raghu
Mon Mar 06, 2006 11:44 am
Forum: C++ Development
Topic: Writing to config file
Replies: 6
Views: 2050

That was the problem. I was not Saving after writing. Thanks a lot.
by Raghu
Mon Mar 06, 2006 11:00 am
Forum: C++ Development
Topic: Writing to config file
Replies: 6
Views: 2050

I tried replacing input stream with output stream, but it doesn't seem to work. Can u just provide a code snippet for reading and writing into same config file.
by Raghu
Mon Mar 06, 2006 10:14 am
Forum: C++ Development
Topic: Writing to config file
Replies: 6
Views: 2050

Thanks for finding that mistake.Does the same file config.txt can be assigned to output stream.
by Raghu
Mon Mar 06, 2006 9:28 am
Forum: C++ Development
Topic: Writing to config file
Replies: 6
Views: 2050

Writing to config file

This is the piece of code I had written to write to the config file wxFileInputStream NamesStream("config.txt"); wxFileConfig *ConfigNames = new wxFileConfig(NamesStream); bool b = ConfigNames->Write("ramu","ramu@123"); The return value is true but it doesn't write anyt...
by Raghu
Mon Mar 06, 2006 5:30 am
Forum: C++ Development
Topic: address book
Replies: 6
Views: 1552

Is there any specific class for implementing address book in wxWidgets? or do we need to use wxFrame for that.
by Raghu
Thu Mar 02, 2006 1:19 pm
Forum: C++ Development
Topic: address book
Replies: 6
Views: 1552

Graphical view. There r some classes associated with grids like GridCellEditor and like. Will those be useful. I want to display a list of strings among which user has to choose. The associated value with the choosed text should be displayed in some text box. And user must be able to add new contact...
by Raghu
Thu Mar 02, 2006 12:57 pm
Forum: C++ Development
Topic: address book
Replies: 6
Views: 1552

address book

Whats the best way of implementing Address book kind of feature in wxwidgets. I mean something like phone book.
by Raghu
Thu Mar 02, 2006 11:33 am
Forum: Platform Related Issues
Topic: Can somebody help me why this code fails in linux
Replies: 3
Views: 1515

Can somebody help me why this code fails in linux

wxString BasicFrame::GetMyIp() { wxIPV4address MyIp; wxString MyHostName = MyIp.Hostname(); /* Get my hostname */ wxString sMyIp; bool bRet; bRet = MyIp.Hostname(MyHostName); /* Set MyIp to my Hostname */ if (bRet == true) { sMyIp = MyIp.IPAddress(); /* Get Ip address of my Hostname */ } else { sMy...
by Raghu
Wed Mar 01, 2006 2:16 pm
Forum: C++ Development
Topic: Hostname() problem in linux
Replies: 1
Views: 673

I am running in super user mode
by Raghu
Wed Mar 01, 2006 1:44 pm
Forum: C++ Development
Topic: Hostname() problem in linux
Replies: 1
Views: 673

Hostname() problem in linux

I had written a function to get Host Ip address. wxString BasicFrame::GetMyIp() { wxIPV4address MyIp; wxString MyHostName = MyIp.Hostname(); /* Get my hostname */ wxString sMyIp; bool bRet; bRet = MyIp.Hostname(MyHostName); /* Set MyIp to my Hostname */ if (bRet == true) { sMyIp = MyIp.IPAddress(); ...
by Raghu
Mon Feb 27, 2006 11:46 am
Forum: C++ Development
Topic: Emulating cancel button
Replies: 2
Views: 821

Is there any way of getting the previous set value in the text ctrl rather than reading from the internal structure. Consider A text ctrl with value user123 If this is changed to user456 and then clicked CANCEL, it should revert back to user123 rather than displaying user456. I mean instead of Trans...
by Raghu
Mon Feb 27, 2006 10:41 am
Forum: C++ Development
Topic: Emulating cancel button
Replies: 2
Views: 821

Emulating cancel button

I have a frame which takes multiple text inputs and has OK and CANCEL button. If the user changes any of the text and clicks OK it will be updated in a structure and the frame is hidden. On clicking CANCEL button the changes are not updated. But the problem is whatever changes user has made to the t...
by Raghu
Wed Feb 22, 2006 12:52 pm
Forum: C++ Development
Topic: equivalent function to inet_addr()
Replies: 4
Views: 1741

Thanks a lot. That helped me a lot.
by Raghu
Wed Feb 22, 2006 5:13 am
Forum: C++ Development
Topic: equivalent function to inet_addr()
Replies: 4
Views: 1741

IPAddress() returns 0.0.0.0 but not the actual IPAddress of the machine.
by Raghu
Tue Feb 21, 2006 2:30 pm
Forum: C++ Development
Topic: wxIPV4address::IPAddress() ???
Replies: 1
Views: 822

wxIPV4address::IPAddress() ???

IPAddress() returns 0.0.0.0. I expescted that it returns the Ipaddress of the system. Whats the problem? Can somebody help me how to get the IpAdress of the host system