Search found 16 matches

by tsaphah
Tue Nov 29, 2005 3:22 am
Forum: General Development
Topic: transfer data to a webserver
Replies: 2
Views: 855

Re: transfer data to a webserver

So my idea was to make my httprequest like an (post)request that the browser mades when I submit an form. Depending on the scope of the app you might look at the SOAP protocol. I recently wanted to do something similar and I went the SOAP route. Overview, is you setup a server side program (CGI app...
by tsaphah
Mon Nov 21, 2005 2:41 am
Forum: Platform Related Issues
Topic: binary file exchange Windows<->Mac ?
Replies: 6
Views: 1508

Re: binary file exchange Windows<->Mac ?

I am trying to read binary files within my application that were created from within the windows version and of course all I get is quite a mess. Not an export myself, but I'm fairly sure Intel is a Little Endian processor, and the current Mac processor is Big Endian. What does this mean for you? T...
by tsaphah
Fri Nov 18, 2005 12:06 am
Forum: Component Writing
Topic: wxTextCtrl problems
Replies: 6
Views: 2003

Re: wxTextCtrl problems

This is the first wxTextCtrl I've attempted to add and I can't figure out why I keep getting this assert on cleanup. Could you explain what you mean by cleanup maybe? Are explicitly calling Destroy() on the controls? Manually 'delete'ing the pointers? Let wx take care of it all? The code you have p...
by tsaphah
Wed Nov 16, 2005 10:35 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem compiling wxWidgets 2.6.2 with Code::Blocks/MinGW
Replies: 14
Views: 1950

Monolithic Build/ Code::Blocks

Hi, upCASE! I'm using Code:Blocks with the included MinGW instalation. The wxWidget guided installer will work on this? josemarin, just a follow-up for you. Code::Blocks uses a monolithic DLL / Lib. I've not used upCASE's installer, but the "typical" way to build wxWidgets doesn't build a monolithi...
by tsaphah
Tue Nov 15, 2005 11:51 pm
Forum: C++ Development
Topic: Program termnation
Replies: 3
Views: 720

Re: Program termnation

What should i do to terminate the program at any time? My preference in this case would be to use wxLogFatalError("Reason for error"); This will display a dialog and then terminate the application. From the documentation: " .. is like wxLogError, but also terminates the program with the exit code 3...
by tsaphah
Tue Nov 15, 2005 3:32 am
Forum: C++ Development
Topic: wxSocketEvent::GetSocket .. clean up?
Replies: 4
Views: 855

Thanks

Destroy() <- Its going to be the end of me! I'm so use to calling 'delete' lowjoel -- thanks for clarifying which pointer was being returned. Q: In trying to answer these type of questions myself, should I go directly to the wx code itself, or is there a better place (beyond class documents in manua...
by tsaphah
Mon Nov 14, 2005 9:48 pm
Forum: C++ Development
Topic: wxSocketEvent::GetSocket .. clean up?
Replies: 4
Views: 855

wxSocketEvent::GetSocket .. clean up?

With the GetSocket call, am I responsible for cleaning up the memory? i.e. void MainFrame::OnSocketEvent(wxSocketEvent& event) { wxSocketBase *sock = event.GetSocket(); // More Code delete sock; } I've tried this and it doesn't crash, so I would assume its safe to to... .. Is it wxWidgets pattern th...
by tsaphah
Sun Nov 13, 2005 11:00 pm
Forum: C++ Development
Topic: Socket Broadcast
Replies: 3
Views: 2925

Re: Socket Broadcast

upCASE wrote:To send data to the group the wxIPV4address to send to must have set the Hostname() to the GROUP_DEFAULT you defined. The port in this case is 30301. Then simply use m_multicastSocket->Write().
Ok, sounds good. Thanks for the reply upCASE =)
by tsaphah
Fri Nov 11, 2005 12:22 am
Forum: C++ Development
Topic: Program structure
Replies: 5
Views: 1430

I don't know, where to put event table of NaviTree to changing right window by changing selected item in Navi Tree. There will be also need to show some of DataWindow form other palces of program. This may not be the answer you are looking for, but one possible solution is to have a singleton event...
by tsaphah
Thu Nov 10, 2005 11:55 pm
Forum: C++ Development
Topic: Socket Broadcast
Replies: 3
Views: 2925

Socket Broadcast

I'm wanting to broadcast a packet to my subnet (ie 255.255.255.255), and I looked at the thread found here: http://forums.wxwidgets.org/viewtopic.php?t=4820 but it didn't seem like upCASE actually sent information. I believe he was setting up a UDP socket to listen for broadcasts. Is that correct? I...
by tsaphah
Wed Nov 09, 2005 5:26 pm
Forum: C++ Development
Topic: wxWidgets memory management
Replies: 10
Views: 1878

Thanks

Thanks for the reply guys. Guess I'll leave memory management up to the system that knows a bit better =)
by tsaphah
Mon Nov 07, 2005 10:36 pm
Forum: C++ Development
Topic: wxWidgets memory management
Replies: 10
Views: 1878

Manual Memory Clean-up

In line with this tread..

How much will wxWidgets hate me if I clean-up my own controls, windows, etc??

I really dislike seeing 'new' without a clearly visible 'delete'
by tsaphah
Tue Sep 06, 2005 9:32 pm
Forum: C++ Development
Topic: wxGrid bugs
Replies: 6
Views: 1071

Is there a reason you've not upgraded to 2.6? I know many people use 2.4 because that is their code base, but if you are able to upgrade I'd suggest it.
by tsaphah
Tue Sep 06, 2005 9:27 pm
Forum: C++ Development
Topic: sql command in an unicode string don't execute...
Replies: 4
Views: 1943

I guess I am a little puzzled by why you are using the unicode macro for your SQL statement. SQL statements can be represented with ASCII text, so I don't believe that is necessary. wxString will implicitly convert to const char* when needed or you can explicitly return it with c_str(). There are a ...
by tsaphah
Mon Sep 05, 2005 8:28 pm
Forum: C++ Development
Topic: sql command in an unicode string don't execute...
Replies: 4
Views: 1943

mysqlpp::Query query(&con); query.reset(); wxLogMessage(SQL); //this returns my sql command perfectly query << SQL; //setting into query res=query.store(); I'm not familar with mysqlpp, but I wonder about two things: 1) What format does 'query' want its SQL string in? 2) Does the operator<<() handl...