Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2479 - 2479 of 2479   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#2479 From: "Kvorak" <kvorak@...>
Date: Mon Nov 9, 2009 3:37 pm
Subject: Re: Question regarding library configuration
kvorak
Offline Offline
Send Email Send Email
 
Okay, so I figured this out over the weekend... sort of.

It would appear that the

#define DTL_USE_MFC
#include "DTL.h"

lines need to be placed /before/ the call the #include "stdafx.h".  I've never
seen this before, but it works.  Any ideas why?

Kvorak

--- In DatabaseTemplateLibrary@yahoogroups.com, "Kvorak" <kvorak@...> wrote:
>
> Hey Corwin,
>
> Yeah, looks like that was problem... at least that one.  I am having some real
trouble using this library, though in other ways.  For instance, I have a
project, a Console Application project that I was using to test it out in.  It
seems to work fine.  However, when I try #include "DTL.h" into my MFC project
(where I really need it to work anyway) and try to build, I get 73 compiler
errors... most of them in dbconnection.h.  Why would it compile in one project
format and not another?  I read the readme file (something I rarely do) and
added the #define DTL_USE_MFC line but nothing changed.  I'd really like some
assistance with this if anyone is available.  I could even move the whole
project onto my svn server if it would help.  Thanks for the answer to previous
post... just had to match the #defines... doesn't look like this is the same
problem though....
>
> Kvorak
>
> --- In DatabaseTemplateLibrary@yahoogroups.com, "CorwinJ" <corwinjoy@> wrote:
> >
> > Hey Kvorak,
> > I'm not sure exactly how you are getting this error or how to reproduce it. 
I just did a debug build of the example project using VS 2008 and don't see this
error.  Make sure you are using the same defines in your project that you have
in the .lib you built e.g. for debug:
> >
> > WIN32;_DEBUG;DTL_UC
> >
> > So, I don't think you should need to comment anything out, you may just be
missing a define in your project that you set up.  See the readme that comes
with dtl for details.
> >
> > Thanks,
> >
> > Corwin
> >
> > --- In DatabaseTemplateLibrary@yahoogroups.com, "Kvorak" <kvorak@> wrote:
> > >
> > > Hey all,
> > >
> > >   So I'm trying to use the DTL and I've come across a strange thing.  When
I build the example project in release mode that was shipped with the libarary,
everything works.  The Examples run fine and the library looks like a great
idea.  But for the life of me I can't figure out how to include it in my own
projects.
> > >   The problem I am having is that when I build I get an error message
saying, "error C4430: missing type specifier - int assumed: Note: C++ does not
support default-int".  So I did a search for that error.  There was a message on
this board that suggested commenting out the offending line (line 448 in
boundio.h).
> > >   My aversion to this is that the library worked when I built it in the
project that was shipped with it.  I'd rather trust that the library is in good
working order and that it was a project configuration or something before I go
and edit code I didn't write.
> > >   So is there any additional wisdom out there regarding what might be
going on or how to fix it?  Thanks.
> > >
> > > Kvorak
> > >
> >
>

Messages 2479 - 2479 of 2479   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help