Search found 135 matches

by ouch67
Thu Jun 26, 2008 7:58 pm
Forum: wxCode
Topic: wxsqlite3 saveing and exporting comma delimited files?
Replies: 3
Views: 1042

wxsqlite3 saveing and exporting comma delimited files?

I know you can do this from the command line tool given with sqlite. but I want my program to have the ability to do this. So is there a special command or maybe some undocumented SQL command to do this? thanks. BTW, I really enjoy wxsqlite3, it really makes working with sqlite that much easier than...
by ouch67
Sun Jun 22, 2008 9:32 am
Forum: General Development
Topic: wxWidgets n00b. Feeling Disheartened.
Replies: 15
Views: 2426

May I make a sugestion here? Why don't you give the codeblocks ide a try? http://www.codeblocks.org/ it first has a wizard to help create a basic template of your program. then it has a graphical wxwidgets editor that allows you to pick and place controls. then from those controls you can write the ...
by ouch67
Sun Jun 22, 2008 9:11 am
Forum: C++ Development
Topic: wxFileOffset to long?
Replies: 1
Views: 512

wxFileOffset to long?

I'm trying to take a text hex string and convert it into a file position. So I'm wondering how I do that in wxwidgets exactly? I know to send the string to ToLong, but I can't seem to find a way to convert that long into that wierd wxFileOffset vaar type that every file command seems to need in wxwi...
by ouch67
Fri Apr 18, 2008 9:50 pm
Forum: C++ Development
Topic: is there a way to get an array of wxTextCtrl?
Replies: 4
Views: 644

thanks for the replies, I didn't want to ditch the rad editor, and didn't want to use wxgrid as I might as well of made this in excell. but the controls aren't all displayed at once. they are on several notebook pages organized and catagorized as neatly as I could. just that reading and writeing all...
by ouch67
Wed Apr 16, 2008 9:45 pm
Forum: C++ Development
Topic: is there a way to get an array of wxTextCtrl?
Replies: 4
Views: 644

is there a way to get an array of wxTextCtrl?

I have a large form consisting of hundreds of wxTextCtrl boxes. I need to be able to get the wxTextCtrl objects themselfs into an array I can access. to further complicate things I'm useing wxSmith in codeblocks to develop the GUI with. which means I can't touch the actual creation of the boxes as i...
by ouch67
Wed Apr 09, 2008 5:13 am
Forum: Component Writing
Topic: Writing a Hex Editor control
Replies: 3
Views: 1752

if it was me I would use wxGrid.
by ouch67
Fri Mar 28, 2008 6:48 pm
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

sure didn't...

works great now, thanks for all your help!
by ouch67
Thu Mar 27, 2008 7:12 pm
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

well I just want to get it to work at the moment. heres what I have now with the memcpy change: wxSQLite3Blob picblob = db.GetBlob(SpinCtrl1->GetValue(),"Picture","Customers"); wxMemoryBuffer picload; int blobsize = picblob.GetSize(); picblob.Read(picload, blobsize, 0); void* dat = malloc(picload.Ge...
by ouch67
Wed Mar 26, 2008 8:10 pm
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

alright I keep getting invalid image when doing SetData and I'm not sure why. So I think it's time to unleash some code. the user pushes a button witch runs this code. it's job is to take the file and resize it for display and DB storage, and finally display it: path = FileDialog1->GetPath(); fname ...
by ouch67
Tue Mar 25, 2008 10:23 pm
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

and the answer to that is no it does not. setdata demands const unsigned char* but wxMemoryBuffer::GetData outputs void. and the post you linked to seems pretty useless as they focus on loading an image, editing it, and then saveing the image useing filestreams which I'm not doing. anyone have any o...
by ouch67
Mon Mar 24, 2008 6:56 pm
Forum: General Forum Issues
Topic: Failure to register
Replies: 3
Views: 1250

it's not a problem, I just thought in 4 days someone would of seen it since the view count kept going up...

anyway, I can post and thats all I needed.

oh... you know what though, could someone remove my email address in aurias post? I get enough spam as it is.

thanks
by ouch67
Mon Mar 24, 2008 6:51 pm
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

So will wxImage::SetData accept a wxMemoryBuffer pointer though?

Can you please post some sample code of this?

thanks for posting btw...
by ouch67
Sun Mar 23, 2008 7:16 am
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

yes I know you can use GetData to save RGB info, however the docs for GetData say:

You should not delete the returned pointer nor pass it to wxImage::SetData.

So how do retore/load an image useing this method if you can't pass SetData info returned from GetData?
by ouch67
Sun Mar 23, 2008 12:53 am
Forum: wxCode
Topic: saveing an wximage object into an wxsqlite3 blob...
Replies: 11
Views: 2567

saveing an wximage object into an wxsqlite3 blob...

So I've programmed myself into a corner and can't seem to figure out a solution. I have an 3MB+ jpeg, but I load it up and reduce the size to fit on screen as a thumbnail of sorts. I would like to save that thumbnail into an sqlite database as a blob. The problem is that there doesn't seem to be any...
by ouch67
Sun Mar 23, 2008 12:15 am
Forum: General Forum Issues
Topic: Failure to register
Replies: 3
Views: 1250

Just wanted to give thanks to the admins for not helping me at all.

I just gave up and made a new account.

but thanks for at least trying auria.