Search found 48 matches

by Dark_Phoenix
Fri Dec 25, 2009 3:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets as DLL vs Monolithis library
Replies: 3
Views: 1371

Using wxWidgets as DLL vs Monolithis library

Just a quick question... I have been using Code::Blocks to develope wxWidgets apps for a while now with no problems. I have always used wxWidgets as a monolithic library but now I am looking into using it as DLL's to cut down on program size. I keep getting linker errors and I am not sure what I nee...
by Dark_Phoenix
Thu Dec 24, 2009 11:56 am
Forum: C++ Development
Topic: Creating a DLL
Replies: 1
Views: 618

Creating a DLL

Hi I need some help understanding how to create a DLL using wxWidgets. I have done a lot of searching and have some up with this so far PluginTest.h #ifndef PLUGINTEST_H_INCLUDED #define PLUGINTEST_H_INCLUDED #include <wx/init.h> #include <wx/frame.h> #include <wx/event.h> #include <wx/menu.h> #incl...
by Dark_Phoenix
Fri Nov 27, 2009 2:52 pm
Forum: C++ Development
Topic: problem setting date in wxDatePickerCtrl
Replies: 4
Views: 707

Looks like the problem was that the wxDatePickerCtrl wanted to take a value with a 4 digit date value (xx/xx/xxxx) and I was passing it a 2 digit date value (xx/xx/xx). I solved it by using StartDate.ParseFormat(m_pTransaction->Date, wxT("%m/%d/%Y) ) instead of StartDate.ParseDate(m_pTransaction->Da...
by Dark_Phoenix
Thu Nov 26, 2009 6:44 pm
Forum: C++ Development
Topic: problem setting date in wxDatePickerCtrl
Replies: 4
Views: 707

m_pTransaction->Date is NOT set to Today.

I am using wxWidgets 2.8.9 and windows XP sp2
by Dark_Phoenix
Thu Nov 26, 2009 5:35 pm
Forum: C++ Development
Topic: problem setting date in wxDatePickerCtrl
Replies: 4
Views: 707

problem setting date in wxDatePickerCtrl

I am trying to set the initial value of a date in a wxDatePickerCtrl using this code if (IsNewTransaction) { m_Amount = wxT("0.00"); StartDate = wxDateTime::Today(); } else { m_Amount = wxString::Format(wxT("%#1.2f"), m_pTransaction->Amount); if (StartDate.ParseDate(m_pTransaction->Date) == NULL) { ...
by Dark_Phoenix
Sat Nov 14, 2009 4:56 pm
Forum: C++ Development
Topic: Problem with pointers
Replies: 10
Views: 1388

Thanks for all the help guys!
by Dark_Phoenix
Sat Nov 14, 2009 3:06 pm
Forum: C++ Development
Topic: Problem with pointers
Replies: 10
Views: 1388

sounds like you used Connect() for the event handlers and didn't use "this" as the event sink parameter That's exactly what I did. So, one more question. Should I use wxButton *pBtnCheck = new wxButton(m_pButtonPanel, IDB_CHECK, wxT("Check") ); pBtnCheck->Connect(IDB_CHECK, wxEVT_COMMAND_BUTTON_CLI...
by Dark_Phoenix
Sat Nov 14, 2009 2:15 pm
Forum: C++ Development
Topic: Problem with pointers
Replies: 10
Views: 1388

Well, I did incorporate a copy and assignment constructor, but the results are the same. However, I did notice something else. When running in debug, the mem address for CAccountViewer ( this ) has one value during the constructor. But then the OnNewTransaction meathod is called the address changes ...
by Dark_Phoenix
Sat Nov 14, 2009 1:52 pm
Forum: C++ Development
Topic: Problem with pointers
Replies: 10
Views: 1388

What is POD ? Plain Old Data, the way I understand it, it is basically non-dynamically allocated memory. what is the protoype for this method? Originally it returned CAccount*, the CAccount object is held in a std::map. I changed it to return a CAccount&. void CAccountManager::GetAccount(wxString &...
by Dark_Phoenix
Sat Nov 14, 2009 12:40 pm
Forum: C++ Development
Topic: Problem with pointers
Replies: 10
Views: 1388

m_pAccount is a pointer to a CAccount class. I have not defined a copy or assignment constructor. This class only has POD member variables. That is, I am under the impression that wxString and std::vector are considered POD. Is that incorrect? class CAccount { //... private: SAccountInfo m_AccountIn...
by Dark_Phoenix
Sat Nov 14, 2009 12:06 pm
Forum: C++ Development
Topic: Problem with pointers
Replies: 10
Views: 1388

Problem with pointers

I think this may be more of a C++ issue than with wxWidgets but I am out of ideas so I thought I would try here. I am developing a simple personal finance program. In this program I have a class (CAccountViewer) that simply displays the transactions from a particular account and also allows to enter...
by Dark_Phoenix
Sat Nov 07, 2009 12:35 pm
Forum: C++ Development
Topic: Problem making buttons work
Replies: 5
Views: 800

OK, I made some corrections but I still cannot get the buttons to work. It was working fine at one point but now it seems that I broke something and I can't find it. WinID does not even pull up any information on the buttons, as if they do not even exsist. Here is the code I have and I will also pos...
by Dark_Phoenix
Thu Nov 05, 2009 10:45 pm
Forum: C++ Development
Topic: Problem making buttons work
Replies: 5
Views: 800

But there you're totally right
Thats what I get when I try to go to fast... copy / paste is a good thing!!
you're connecting; you need to connect the button
Duhhh! I knew it was something simple!

Thanks!
by Dark_Phoenix
Wed Nov 04, 2009 10:04 pm
Forum: C++ Development
Topic: Problem making buttons work
Replies: 5
Views: 800

Problem making buttons work

I have a wxSplitterWindow that initially is displayed NOT split and only shows a series of buttons. The window is split only when one of the buttons is pressed, and the button pressed determins what information is displayed in the opposite pane. Problem is I cannot get the buttons to work. On my sys...
by Dark_Phoenix
Tue Sep 22, 2009 9:02 pm
Forum: C++ Development
Topic: Another wxSplitterWindow question
Replies: 1
Views: 419

Another wxSplitterWindow question

I have a splitter window that works correctly, showing a wxGrid on top that displays data and a wxPanel on bottom with buttons that can be used to change the data. What I want to do is be able to click on a button on the bottom pane and then have that pane split vertically to display a new pane that...