Search found 72 matches

by manianis
Tue Jan 30, 2007 7:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Which IDE is best to begin programming ?
Replies: 8
Views: 1381

tierra wrote:It's free for commercial products as well actually.
That's a good news... Thanks.
by manianis
Tue Jan 30, 2007 3:04 pm
Forum: Compiler / Linking / IDE Related
Topic: Which IDE is best to begin programming ?
Replies: 8
Views: 1381

I'm now using the Code::Blocks I like it even it isn't as powerfull as Visual Studio but is sufficient for my actual programming needs.
by manianis
Tue Jan 30, 2007 11:55 am
Forum: wxCode
Topic: How to find one value with DatabaseLayer
Replies: 9
Views: 2170

Thank you very much the snippet are very usefull. I'll use it to find one column result of the query. I've added this lines to the MysqlDatabaseLayer class in order to retrieve only one wxString scalar value. Because I found that adding this functions to my program will be more complicated than addi...
by manianis
Mon Jan 29, 2007 8:47 am
Forum: wxCode
Topic: How to find one value with DatabaseLayer
Replies: 9
Views: 2170

Why not add a function in DatabaseLayer class like this :

Code: Select all

/// Run a select query to find only one result
virtual wxString RunQueryOneResult(const wxString& strQuery, int nField) = 0;
It's useful if the resultset contains only one value as a result.
by manianis
Mon Jan 29, 2007 8:24 am
Forum: wxCode
Topic: How to find one value with DatabaseLayer
Replies: 9
Views: 2170

I just need a generic function that returns only one value not a resultset. Because the result of the query can be of anytype : date/double/string/...
by manianis
Sun Jan 28, 2007 10:58 pm
Forum: wxCode
Topic: How to find one value with DatabaseLayer
Replies: 9
Views: 2170

How to find one value with DatabaseLayer

I'm trying to create a function that return only one value from a query like : SELECT MAX(date_operation) AS dateStart FROM mytable I'm using MySQL. I tried this function but it doesn't return the results I want. wxVariant MyApp::QueryValue(MysqlDatabaseLayer* myConn, wxString strQuery, wxString fie...
by manianis
Sun Jan 28, 2007 9:13 pm
Forum: wxCode
Topic: DatabaseLayer 1.55 Release Candidate
Replies: 15
Views: 3247

I needed a function that return the number of rows in the resultset.

I added this in DatabaseResultSet.h :

Code: Select all

  /// Return the number of rows
  virtual int GetRowCount() = 0;
by manianis
Sun Jan 28, 2007 7:30 pm
Forum: wxCode
Topic: DatabaseLayer 1.55 Release Candidate
Replies: 15
Views: 3247

I've just checked this API change into CVS for all the DatabaseLayer backends. If you get a chance, please see if the implementation works as you wanted. I've made enough changes this weekend that I'm considering a 1.6.1 release soon. Thanks I'll compile and test the new changes... It's really hard...
by manianis
Sat Jan 27, 2007 11:40 pm
Forum: Compiler / Linking / IDE Related
Topic: wxMemoryInputStream Issue
Replies: 4
Views: 781

... `wx-config --cxxflags` ... `wx-config --libs`

this commands tells the gcc compiler where to find the includes and the libraries used to build and link you application. In your program source you've to add the needed includes.
by manianis
Sat Jan 27, 2007 11:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Which IDE is best to begin programming ?
Replies: 8
Views: 1381

VS2005 is the best but it's very expensive I can't buy it. And also the .Net platform complicates the programmers work. It's dedicated for professionnal not for learning programmers...
by manianis
Sat Jan 27, 2007 11:31 pm
Forum: Compiler / Linking / IDE Related
Topic: wxMemoryInputStream Issue
Replies: 4
Views: 781

you've to add the include file :

#include <wx/mstream.h>

because it contains the definition of the wxMemoryInputStream...
by manianis
Sat Jan 27, 2007 11:26 pm
Forum: C++ Development
Topic: Streching components
Replies: 19
Views: 2068

wxFlexGridSizer will resolve your problem... I hope.

If you set the control inside the Sizer to wxEXPAND after creating it and setting the Sizer to grow by specifiying the cols and rows that must grows in the Sizer.
by manianis
Sat Jan 27, 2007 11:13 pm
Forum: The Code Dump
Topic: wxGrid with MS Excel (copy/paste)
Replies: 11
Views: 13182

goeba wrote:Hi, ...

I have written a keyboard-handler for my grid which accepts Ctrl C and Ctrl V, so if anyone is interested, I can post it. ... Regards,


Andreas
Please I'm interested...
by manianis
Sat Jan 27, 2007 11:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Harmless Warnings?
Replies: 9
Views: 1435

-Wall : means display all warnings try removing it and recompile your code.
by manianis
Sat Jan 27, 2007 11:02 pm
Forum: Compiler / Linking / IDE Related
Topic: Unresolved external Symbol
Replies: 3
Views: 2434

It's a guess : Have you some BEGIN_EVENT_TABLE(MainFrame,wxFrame) ... END_EVENT_TABLE() without it's corressponding DECLARE_EVENT_TABLE() I've got like this compilation error under mingw compiler : E:\Travail\ClientCredit\mainframe.cpp:44: error: ISO C++ does not permit `wxFrame::sm_eventTable' to b...