Search found 85 matches

by rafae11
Thu Dec 20, 2012 2:35 pm
Forum: C++ Development
Topic: wxtextfile append data
Replies: 3
Views: 1127

wxtextfile append data

I need to append more data to the end of a 12MB txt file. when i first create it and save data it is fine. if (m_ignorelog == true) { // if ignore counts is checked set counts to be // 130560 counts = 130560; file.Create(m_pathname.c_str()); file.Open(m_pathname.c_str()); if (m_lines == 0) { file.Go...
by rafae11
Wed Dec 19, 2012 4:04 pm
Forum: Platform Related Issues
Topic: how to change defualt icon in visual studio
Replies: 1
Views: 1035

how to change defualt icon in visual studio

How do i change the default icon of an executable.

i have two files
small.ico
large.ico

what do i put in the .rc file

thanks
by rafae11
Sat Oct 13, 2012 12:12 pm
Forum: Compiler / Linking / IDE Related
Topic: ld.exe: cannot find -lwxmsw29ud
Replies: 3
Views: 4635

Re: ld.exe: cannot find -lwxmsw29ud

i tried it again and it builds now linker settings is empty

but the settings are different

compiler settings
$(#wx)\include
$(#wx)\contrib\include

linker settings

resource compiler
$(#wx)\include

#defines
__GNUWIN32__
__WXMSW__
WXUSINGDLL
wxUSE_UNICODE

i don't understand it but it works.
by rafae11
Sat Oct 13, 2012 1:23 am
Forum: Compiler / Linking / IDE Related
Topic: ld.exe: cannot find -lwxmsw29ud
Replies: 3
Views: 4635

ld.exe: cannot find -lwxmsw29ud

hi im using codeblocks 10.05 wxwidgets 2.9.4 -------------- Build: Debug in Serial --------------- Compiling: main.cpp Linking executable: bin\Debug\Serial.exe c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw29ud collect2: ld returned 1 exit status Process te...
by rafae11
Fri Sep 21, 2012 8:58 pm
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

Re: how do i save wxGrid data while using wxThread

I still can't get my head around threads. i just got an application that clicks the buttons for me after a certain time interval. it works but its not ideal.
by rafae11
Wed Sep 19, 2012 11:08 am
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

Re: how do i save wxGrid data while using wxThread

i want to have just button i press called run program. this generates a thread - thread runs a sequence of commands. - set temperature, set battery measurements, set servo, set angle etc after each iteration it outputs the results to a wxgrid using post event. i do this for about 50 times. when ever...
by rafae11
Wed Sep 19, 2012 7:52 am
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

Re: how do i save wxGrid data while using wxThread

The main purpose of the thread was so that i can still modify some values in the application while the process is running. my process takes about 20 minutes and if its not threaded the user interface hangs. I think this would do the job. wxThread::ExitCode MyThread::Entry() { while (!TestDestroy()) ...
by rafae11
Tue Sep 18, 2012 10:17 am
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

Re: how do i save wxGrid data while using wxThread

i just want a way to save the data from the wxgrid after the thread has been processed. i would then need to erase all the information and reapeat the process several times. i can do all the functions independently but i wish to have one button to do all these things function { run thread(); save da...
by rafae11
Tue Sep 18, 2012 8:18 am
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

Re: how do i save wxGrid data while using wxThread

i have added these in my thread i am getting the same problem it will not compile i get the error error C2065: 'grid3' : undeclared identifier i know grid3 exists because i can save data fine when i am not using wxThread. does anybody know if its possible to pass a grid as an argument to the thread?...
by rafae11
Mon Sep 17, 2012 3:34 pm
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

Re: how do i save wxGrid data while using wxThread

i would like to automate my calibration process with just 1 button. i first set the path where i want my files saved. set temperature of device set battery set servo create a thread get measurements save data that was why i wanted to access the grid inside the thread. with the code below it jumps to...
by rafae11
Mon Sep 17, 2012 1:04 pm
Forum: C++ Development
Topic: how do i save wxGrid data while using wxThread
Replies: 18
Views: 4723

how do i save wxGrid data while using wxThread

I have a function that is getting called inside a thread. i wish to get data from the grid and save it to a file. could someone please explain to me why i am not able to access the data from the grid Thanks this is the error message i get error C2227: left of '->GetCellValue' must point to class/str...
by rafae11
Sat Sep 15, 2012 9:19 am
Forum: C++ Development
Topic: save data to xslx
Replies: 2
Views: 766

Re: save data to xslx

Thanks
I will try to use ExcelFormat
I just need the excel file for storage no data manipulation.
I use another program to process the data.
by rafae11
Fri Sep 14, 2012 10:38 pm
Forum: C++ Development
Topic: save data to xslx
Replies: 2
Views: 766

save data to xslx

I want to save data from wxgrid as an xslx file with multiple sheets.
I already have code that saves from the grid to as csv file but i don't want to generate so many files.
Does wxwidgets have a way to generate an excel file with multiple sheets?

Many Thanks
by rafae11
Fri Aug 17, 2012 7:54 am
Forum: C++ Development
Topic: wxHtmlHelpController
Replies: 1
Views: 478

wxHtmlHelpController

Hi, I want to have a help file for my application could somebody please give me a basic template i would greatly appreciate it. I have tried with the code below an i get the following error. #include <wx/html/helpctrl.h> On load; helpController = new wxHtmlHelpController; helpController->Initialize(...
by rafae11
Wed Aug 15, 2012 9:47 am
Forum: C++ Development
Topic: populate wxchoice
Replies: 2
Views: 929

Re: populate wxchoice

thanks alot