Search found 72 matches

by manianis
Sat Jan 27, 2007 10:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Which IDE is best to begin programming ?
Replies: 8
Views: 1381

Which IDE is best to begin programming ?

I've used many IDE and I'm confused what's the best one. Give me some advises please... Thanks...
by manianis
Sat Jan 27, 2007 8:34 pm
Forum: wxCode
Topic: wxArrayInt::Sort - how to use it?
Replies: 6
Views: 4193

First of all, thank you very much for your quick replies! according to the documentation a function like this should be accepted : [...] this is just a guess... I tried it And it have worked... Well, I tried that, too, but it didn't work. Strange... DavidHart: your code is fine, thanks a lot! :) Bu...
by manianis
Sat Jan 27, 2007 8:28 pm
Forum: Component Writing
Topic: How to add a text label to wxBitmapButton ?
Replies: 3
Views: 1091

How's that ?
by manianis
Sat Jan 27, 2007 12:54 pm
Forum: Component Writing
Topic: How to add a text label to wxBitmapButton ?
Replies: 3
Views: 1091

How to add a text label to wxBitmapButton ?

Is it possible to add a label under or behind the image in wxBitmapButton ? If yes how ?

Thanks...
by manianis
Sat Jan 27, 2007 12:45 pm
Forum: wxCode
Topic: wxArrayInt::Sort - how to use it?
Replies: 6
Views: 4193

according to the documentation a function like this should be accepted : int compare_int(int *a, int *b) { if (*a > *b) return 1; else if (*a < *b) return -1; else return 0; } ... wxArrayInt arr; fill_array(arr); arr.Sort(compare_int); this is just a guess... I tried it And it have worked...
by manianis
Fri Jan 26, 2007 9:29 pm
Forum: C++ Development
Topic: wxODBC with MINGW MONOLITHIC SHARED BUILD
Replies: 1
Views: 528

Yes that's correct I'm using a MONOLOTHIC RELEASE DLL and I'm unable to use wxOdbc. But there's DatabaseLayer as an alternative.
by manianis
Fri Jan 26, 2007 8:12 pm
Forum: wxCode
Topic: Databaselayer object destruction.
Replies: 1
Views: 687

I found the problem source it's from the MySQL documentation : int mysql_server_init(int argc, char **argv, char **groups) Description This function must be called once in the program using the embedded server before calling any other MySQL function. It starts the server and initializes any subsyste...
by manianis
Fri Jan 26, 2007 7:46 pm
Forum: wxCode
Topic: Databaselayer object destruction.
Replies: 1
Views: 687

Databaselayer object destruction.

I tried out this code to find a runtime error when executing cleaning instructions in Databaselayer. void MyFrame::OnAbout(wxCommandEvent& event) { wxString host = wxT("localhost"), db = wxT("credit_client"), user = wxT("root"), pass = wxT(""); MysqlDatabaseLayer *pDB = new MysqlDatabaseLayer(); pri...
by manianis
Fri Jan 26, 2007 7:07 pm
Forum: C++ Development
Topic: Internationalization with one exe
Replies: 4
Views: 884

if you're using MSW try this link :

http://wxcode.sourceforge.net/complist.php

there's a component called wxMSWResources that allows you to embed your external files in the exe file. perhaps, It can be used to integrate the internationnalization files.
by manianis
Fri Jan 26, 2007 3:09 pm
Forum: wxCode
Topic: Databaselayer version 1.6 doesn't compile under mingw.
Replies: 9
Views: 2153

I'm debugging my application and it seems that the Close() function is called twice by explicit call and at the end of the try bloc. I must not call the Close() function This code functions well. Thanks... try { MysqlDatabaseLayer* pDB = new MysqlDatabaseLayer(host, db, user, pass); // pDB->Open(db...
by manianis
Fri Jan 26, 2007 2:55 pm
Forum: wxCode
Topic: DatabaseLayer 1.55 Release Candidate
Replies: 15
Views: 3247

Hi again... I'm very interested in this library to access MySQL Database but it lucks a very usefull function :

Code: Select all

bool IsOpen();
how to add it ?
by manianis
Fri Jan 26, 2007 2:49 pm
Forum: wxCode
Topic: Databaselayer version 1.6 doesn't compile under mingw.
Replies: 9
Views: 2153

I'm debugging my application and it seems that the Close() function is called twice by explicit call and at the end of the try bloc. I must not call the Close() function This code functions well. Thanks... try { MysqlDatabaseLayer* pDB = new MysqlDatabaseLayer(host, db, user, pass); // pDB->Open(db,...
by manianis
Fri Jan 26, 2007 1:53 pm
Forum: wxCode
Topic: Databaselayer version 1.6 doesn't compile under mingw.
Replies: 9
Views: 2153

MysqlDatabaseLayer pDB; try { wxString host = wxT("localhost"), db = wxT("credit_client"), user = wxT("root"), pass = wxT(""); pDB.Open(db, user, pass); pDB.Close(); } catch (DatabaseLayerException& e) { wxLogMessage(wxString::Format(_("Error (%d): %s"), e.GetErrorCode(), e.GetErrorMessage().c_str(...
by manianis
Fri Jan 26, 2007 11:56 am
Forum: wxCode
Topic: Databaselayer version 1.6 doesn't compile under mingw.
Replies: 9
Views: 2153

perhaps the problem is due to the implementaion of Open ? I don't know why converting to unicode stream ? bool MysqlDatabaseLayer::Open(const wxString& strDatabase) { m_strDatabase = strDatabase; wxCharBuffer serverCharBuffer = ConvertToUnicodeStream(m_strServer); wxCharBuffer userCharBuffer = Conve...
by manianis
Fri Jan 26, 2007 11:27 am
Forum: wxCode
Topic: Databaselayer version 1.6 doesn't compile under mingw.
Replies: 9
Views: 2153

Yes you've guessed but after I runned the application I get an Error : --------------------------- wxWidgets Application Template: db_layer.exe - Application Error --------------------------- The instruction at "0x1002cd8d" referenced memory at "0xdddddddd". The memory could not be "read". Click on ...