Search found 396 matches
- Tue Mar 04, 2008 6:18 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Building dll's with Bakefile
- Replies: 6
- Views: 2265
- Mon Mar 03, 2008 7:03 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Building dll's with Bakefile
- Replies: 6
- Views: 2265
- Sat Mar 01, 2008 9:49 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Building dll's with Bakefile
- Replies: 6
- Views: 2265
- Sat Mar 01, 2008 2:44 am
- Forum: Compiler / Linking / IDE Related
- Topic: Building dll's with Bakefile
- Replies: 6
- Views: 2265
Building dll's with Bakefile
Hey I recently started using Bakefile as my build system, and so far it works well. However, I ran into a problem trying to build dll's with it. For some reason import libraries aren't generated, even though the linker is told to make them. :? So now my executable fails to build because the import l...
- Tue Feb 26, 2008 6:51 pm
- Forum: C++ Development
- Topic: wxFileConfig doesn't write config file?
- Replies: 7
- Views: 3383
- Mon Feb 25, 2008 9:08 pm
- Forum: C++ Development
- Topic: wxFileConfig doesn't write config file?
- Replies: 7
- Views: 3383
I see. You write that the directory does not exist, maybe that is the problem? What happens if you create the dir manually? Hmm ok. Actually that turned out to be the problem (had to fix my code first LOL). So I was under the impression that the directory would be created for me? Is that not the ca...
- Fri Feb 22, 2008 6:15 pm
- Forum: C++ Development
- Topic: wxFileConfig doesn't write config file?
- Replies: 7
- Views: 3383
Vista is a bit wierd and I haven't fully plumbed its foibles but your file will be somewhere if it is able to be read and written to. Perhaps in C:\Program Data\myapp. I know the read/write settings for your app dir are important but you are writing (hopefully) to your user or current user's dir. R...
- Thu Feb 21, 2008 7:52 pm
- Forum: C++ Development
- Topic: wxFileConfig doesn't write config file?
- Replies: 7
- Views: 3383
wxFileConfig doesn't write config file?
Hey I'm having a really weird problem with wxFileConfig.... I want the config file to be in the user's application data directory. On Windows Vista that would be: C:\Users\user-name\AppData\Local\app-name\settings.txt So I do: conf = new wxFileConfig(_T("Foo"), wxEmptyString, wxStandardPat...
- Thu Jul 06, 2006 5:15 pm
- Forum: Compiler / Linking / IDE Related
- Topic: ide recommendations?
- Replies: 6
- Views: 1998
Re: ide recommendations?
Hi I have just finished a project using wxWidgets with VS7 that was built on msw only, so much nicer than mfc! I am about to start a new project targeting osx and win32/64. I will mostly be coding on the PC but will have to do some coding/debugging on the mac too. I know v little about mac programm...
- Mon Jun 26, 2006 6:27 pm
- Forum: wxDev-C++
- Topic: What abaout DevC++ ? ? ?
- Replies: 12
- Views: 3956
Sorry, only VC has tht at the moment. You want to controbute the switches? Hmm sorry for jumping in in the middle. ;) I think what he means is that Code::Blocks supports the GCC arch optimization switches..... Like -march=athlon-xp http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/i386-and-x86_002d64-Opt...
- Mon Jun 26, 2006 12:56 pm
- Forum: C++ Development
- Topic: wxNotebook::GetPageCount()
- Replies: 10
- Views: 3973
Thanks.phlox81 wrote:The last Page has the index 0.Code: Select all
size_t count = m_pNotebook->GetPageCount(); for (int i=count-1; i>-1; --i)
- Mon Jun 26, 2006 12:41 pm
- Forum: C++ Development
- Topic: wxNotebook::GetPageCount()
- Replies: 10
- Views: 3973
size_t count = m_pNotebook->GetPageCount(); for (int i=count-1; i>0; --i) // ... <count> pages means numbered from 0 to <n-1>... so let's decrement from <n-1> to 0. and use an integer index to be able to go to -1 and stop the loop. maybe you should also post the rest of your code. It may contain so...
- Fri Jun 16, 2006 4:49 pm
- Forum: C++ Development
- Topic: wxNotebook::GetPageCount()
- Replies: 10
- Views: 3973
benedicte wrote:so as to be sure the GetPageCount() is not evaluated for each loop.Code: Select all
size_t count = m_pNotebook->GetPageCount(); for (size_t i = count; i >= 0; --i) //...
Uhh didn't work either.
- Fri Jun 16, 2006 4:41 pm
- Forum: C++ Development
- Topic: wxNotebook::GetPageCount()
- Replies: 10
- Views: 3973
Hmm like this?benedicte wrote:once the first one is deleted, the indexes are changed.
instead of doing "for i=0 to n", I would do "for I=n to 0"...
Code: Select all
for (size_t i = m_pNotebook->GetPageCount(); i >= 0; --i)
- Fri Jun 16, 2006 4:31 pm
- Forum: C++ Development
- Topic: wxNotebook::GetPageCount()
- Replies: 10
- Views: 3973
wxNotebook::GetPageCount()
I have a problem with the following code:
all of the pages aren't closed (deleted).
What is going on here?
Code: Select all
for (size_t i = 0; i <m_pNotebook>GetPageCount(); ++i)
{
// some other code.....
m_pNotebook->DeletePage(i);
}
What is going on here?