Search found 396 matches

by sethjackson
Tue Mar 04, 2008 6:18 pm
Forum: Compiler / Linking / IDE Related
Topic: Building dll's with Bakefile
Replies: 6
Views: 1133

Ok. Thanks!
by sethjackson
Mon Mar 03, 2008 7:03 pm
Forum: Compiler / Linking / IDE Related
Topic: Building dll's with Bakefile
Replies: 6
Views: 1133

Ok. I guess there is no way to just tell the compiler to export everything (export for you) without writing __declspec?

BTW I should have said I was using MSVC 9 not 8... Sorry. :oops:
by sethjackson
Sat Mar 01, 2008 9:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Building dll's with Bakefile
Replies: 6
Views: 1133

Yeah I don't get anything with dumpbin.

So I have to write __declspec( dllexport )?

Yuck (and non-portable)!

Anyway to use DLL's with MSVC 9 without this (maybe without import libs)?

I really don't want to use static libs....
I never had to do anything like this with GCC (MinGW).
So what gives?
by sethjackson
Sat Mar 01, 2008 2:44 am
Forum: Compiler / Linking / IDE Related
Topic: Building dll's with Bakefile
Replies: 6
Views: 1133

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...
by sethjackson
Tue Feb 26, 2008 6:51 pm
Forum: C++ Development
Topic: wxFileConfig doesn't write config file?
Replies: 7
Views: 1327

Thanks!
by sethjackson
Mon Feb 25, 2008 9:08 pm
Forum: C++ Development
Topic: wxFileConfig doesn't write config file?
Replies: 7
Views: 1327

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...
by sethjackson
Fri Feb 22, 2008 6:15 pm
Forum: C++ Development
Topic: wxFileConfig doesn't write config file?
Replies: 7
Views: 1327

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...
by sethjackson
Thu Feb 21, 2008 7:52 pm
Forum: C++ Development
Topic: wxFileConfig doesn't write config file?
Replies: 7
Views: 1327

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, wxStandardPaths::Get()....
by sethjackson
Thu Jul 06, 2006 5:15 pm
Forum: Compiler / Linking / IDE Related
Topic: ide recommendations?
Replies: 6
Views: 1047

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...
by sethjackson
Mon Jun 26, 2006 6:27 pm
Forum: wxDev-C++
Topic: What abaout DevC++ ? ? ?
Replies: 12
Views: 2092

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...
by sethjackson
Mon Jun 26, 2006 12:56 pm
Forum: C++ Development
Topic: wxNotebook::GetPageCount()
Replies: 10
Views: 1861

phlox81 wrote:

Code: Select all

size_t count = m_pNotebook->GetPageCount();
for (int i=count-1; i>-1; --i)
The last Page has the index 0.
:roll: Thanks. :)
by sethjackson
Mon Jun 26, 2006 12:41 pm
Forum: C++ Development
Topic: wxNotebook::GetPageCount()
Replies: 10
Views: 1861

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...
by sethjackson
Fri Jun 16, 2006 4:49 pm
Forum: C++ Development
Topic: wxNotebook::GetPageCount()
Replies: 10
Views: 1861

benedicte wrote:

Code: Select all

size_t count = m_pNotebook->GetPageCount();
for (size_t i = count; i >= 0; --i)
//...
so as to be sure the GetPageCount() is not evaluated for each loop.


Uhh didn't work either. :(
by sethjackson
Fri Jun 16, 2006 4:41 pm
Forum: C++ Development
Topic: wxNotebook::GetPageCount()
Replies: 10
Views: 1861

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"...
Hmm like this?

Code: Select all

for (size_t i = m_pNotebook->GetPageCount(); i >= 0; --i)
It didn't work.....
by sethjackson
Fri Jun 16, 2006 4:31 pm
Forum: C++ Development
Topic: wxNotebook::GetPageCount()
Replies: 10
Views: 1861

wxNotebook::GetPageCount()

I have a problem with the following code:

Code: Select all

for (size_t i = 0; i <m_pNotebook>GetPageCount(); ++i)
{    
    // some other code.....    

    m_pNotebook->DeletePage(i);
}
all of the pages aren't closed (deleted). :P

What is going on here?