Search found 48 matches

by Dark_Phoenix
Sat Feb 13, 2010 1:46 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

do you have a Disconnect for your button in the decounstructor, as it has a Connect?
This was almost right. It was not only that I needed to disconnect it but I needed to remove the menu item from the menu bar from inside the plugin's destructor as well.
by Dark_Phoenix
Sat Feb 13, 2010 1:42 pm
Forum: C++ Development
Topic: wxDataViewCtrl column alignment
Replies: 1
Views: 442

wxDataViewCtrl column alignment

Is there any way to set the alignment of the actual data (not the header title) in each column under wxMsw? Right now all the data in the control is centered in each cell and I need to have it left justified.
by Dark_Phoenix
Sun Jan 10, 2010 3:16 pm
Forum: C++ Development
Topic: Access violation using wxDynamicLibrary
Replies: 6
Views: 890

Seems my problem was not with my app after all, but with the DLL that I created... I found this after some googling and thought that since my DLL was adding a menu item to the app's menubar then maybe the DLL needed to delete the menu as well... That seems to have done the trick
by Dark_Phoenix
Sun Jan 10, 2010 11:48 am
Forum: C++ Development
Topic: Access violation using wxDynamicLibrary
Replies: 6
Views: 890

Unload is called in the destructor of wxDynamicLibrary
But if wxDynamicLibrary was created with 'new' then wouldn't the destructor not be called untill 'delete' was called?
by Dark_Phoenix
Sat Jan 09, 2010 8:58 pm
Forum: C++ Development
Topic: Access violation using wxDynamicLibrary
Replies: 6
Views: 890

It is the last thing that is called prior to wxWindow::Destroy()
by Dark_Phoenix
Sat Jan 09, 2010 12:04 pm
Forum: C++ Development
Topic: Access violation using wxDynamicLibrary
Replies: 6
Views: 890

OK, so I figured out that if I dynamically create a wxDynamicLibrary object wxDynamicLibrary* LibLoader = new wxDynamicLibrary; then everything works fine as long as I don't explicitly delete LibLoader. But when I call delete LibLoader; I get the access violation again. But since I created LibLoader...
by Dark_Phoenix
Fri Jan 08, 2010 11:02 pm
Forum: C++ Development
Topic: Access violation using wxDynamicLibrary
Replies: 6
Views: 890

Access violation using wxDynamicLibrary

I have finally been able to successfully create and load a DLL using wxWidgets. I created a simple app using a lot of global variables to load and unload the DLL like this const wxString g_FunctionRegister = wxT("RegisterPlugin"); const wxString g_FunctionUnregister = wxT("UnregisterPlugin"); IPlugi...
by Dark_Phoenix
Sat Jan 02, 2010 6:16 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

OK, I found out that I was at least partially wrong about some of my assumptions I think that VC8.0 is the VCToolkit 2003 I also think that VC9.0 is the VCToolkit 2008 2003 is VC71, 2005 is VC80 and 2008 is VC90 Anyway, I rebuilt wxWidgets from scratch with VC90... I build two versions, debug DLL an...
by Dark_Phoenix
Sat Jan 02, 2010 3:32 pm
Forum: Compiler / Linking / IDE Related
Topic: compiler warnings when building wxWidgets
Replies: 0
Views: 414

compiler warnings when building wxWidgets

When building the project wx_base I am getting 2 compiler warnings, the first on the file thread.cpp and the other on main.cpp. The warning is 'calling _set_se_translator() requires /EHa' (same warning for both). The flag is set for /EHsc. When I changed it to /EHa the compiler automatically changes...
by Dark_Phoenix
Fri Jan 01, 2010 5:30 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

I think I may have figured out what my major problem is... I just need a little verification. I am using VCToolkit 2008 as my compiler. I have installed wxWidgets using the current version of wxPack. I was looking at the installer again and I see that the option for wxWidgets compiled by Visual C++ ...
by Dark_Phoenix
Thu Dec 31, 2009 12:59 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

Right now I only have one plugin... not sure if the ID will cause any problems for other plugins or not... I'll test that when I get the current problem resolved. I suppose I could add a member function to the IPluginHost interface that would return wxNewId() so that I could be sure to have a unique...
by Dark_Phoenix
Thu Dec 31, 2009 12:09 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

What does the code that adds menus to the menubar look like? void wxPlugin::InitPlugin(IPluginHost *pHost) { // interface to the host m_pHost = pHost; // get the menubar from the host wxMenuBar *pHostMenuBar = m_pHost->GetMainMenuBar(); // set up a new menu option wxMenu *pMenu = new wxMenu; pMenu-...
by Dark_Phoenix
Wed Dec 30, 2009 10:08 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

Well, I have figured out that the problem has something to do with either how I am adding items to the menubar and/or how I am loading the DLL. If I take the routine that adds the item to the menubar out of the DLL and put it in the app then everything runs fine. I can't figure this out for the life...
by Dark_Phoenix
Tue Dec 29, 2009 11:09 pm
Forum: C++ Development
Topic: Problem adding items to wxMenuBar
Replies: 9
Views: 1366

Problem adding items to wxMenuBar

Well, I have finally figured out some answers to my plugin problems. I have created a simple app that creates a blank window with a menu bar. The app then loads a plugin (DLL) which adds a new menu item to the app's menu bar, and responds to the menu event for that addition. Now I am getting an acce...
by Dark_Phoenix
Mon Dec 28, 2009 11:26 am
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets as DLL vs Monolithis library
Replies: 3
Views: 1346

Well, I have gotten past this issue only to hit another. Now it seems that every time I build a project using wx as DLL's my system complains about missing msvcrt DLL's. These DLL's are present and in the correct paths too! building a project using wx as a monolithis library works fibe. I'm not sure...