|
New to C++, how to make it work with an interface? (Sdk)
New to C++, how to make it work with an interface? // Sdk
Aug 9, 2002, 7:43pm
I'm sorta new to C++, and I know how to do that MFC AppWizard and all of
that, but I try putting #define AW_STATIC at the top of the dialog code and
#include "aw.h" below it with those files in the project's directory and
everything and it says everything is undeclared. Maybe someone can help? (no
I didn't spell them wrong this time lol i copied them directly from the
console version).
Aug 9, 2002, 9:32pm
Did you include aw.lib?
-J
[View Quote]"tomilius" <homeworkkid at msn.com> wrote in message
news:3d543780 at server1.Activeworlds.com...
> I'm sorta new to C++, and I know how to do that MFC AppWizard and all of
> that, but I try putting #define AW_STATIC at the top of the dialog code
and
> #include "aw.h" below it with those files in the project's directory and
> everything and it says everything is undeclared. Maybe someone can help?
(no
> I didn't spell them wrong this time lol i copied them directly from the
> console version).
>
>
|
Aug 10, 2002, 2:40am
You dont need the aw.lib if you have AW_STATIC defined since It compiles all
the communications inside itself instead of using aw.dll.
[View Quote]"tomilius" <homeworkkid at msn.com> wrote in message
news:3d543780 at server1.Activeworlds.com...
> I'm sorta new to C++, and I know how to do that MFC AppWizard and all of
> that, but I try putting #define AW_STATIC at the top of the dialog code
and
> #include "aw.h" below it with those files in the project's directory and
> everything and it says everything is undeclared. Maybe someone can help?
(no
> I didn't spell them wrong this time lol i copied them directly from the
> console version).
>
>
|
Aug 10, 2002, 2:45am
If your project is called "xyz" it will create a file
"xyz.h". Edit that and find the line
#include "resource.h"
close to the top.
Behind this line insert your include for aw.h .
[View Quote]tomilius wrote:
>
> I'm sorta new to C++, and I know how to do that MFC AppWizard and all of
> that, but I try putting #define AW_STATIC at the top of the dialog code and
> #include "aw.h" below it with those files in the project's directory and
> everything and it says everything is undeclared. Maybe someone can help? (no
> I didn't spell them wrong this time lol i copied them directly from the
> console version).
|
Aug 10, 2002, 2:53am
I think Josh meant aw_static.lib, which you DO need.
[View Quote]"athnex" <awnews at athnex.com> wrote in message
news:3d549938 at server1.Activeworlds.com...
> You dont need the aw.lib if you have AW_STATIC defined since It compiles
all
> the communications inside itself instead of using aw.dll.
>
> "tomilius" <homeworkkid at msn.com> wrote in message
> news:3d543780 at server1.Activeworlds.com...
> and
> (no
>
>
|
Aug 19, 2002, 8:42pm
I'm pretty sure you guys are telling him the wrong thing. I had the same
error, and this is how you fix it:
The ClassView window at the left side of the screen is what shows, but there
are two tabs below that window. Click on FileView, then right click on
Resource Files and then Add Files To Folder, then select AW_STATIC.lib and
AW_STATIC will work. THen to get Aw.h working Right click on External
Dependencies and go through the same process just to be sure. It should now
work.
I hate it when that happens.
[View Quote]"tomilius" <homeworkkid at msn.com> wrote in message
news:3d543780 at server1.Activeworlds.com...
> I'm sorta new to C++, and I know how to do that MFC AppWizard and all of
> that, but I try putting #define AW_STATIC at the top of the dialog code
and
> #include "aw.h" below it with those files in the project's directory and
> everything and it says everything is undeclared. Maybe someone can help?
(no
> I didn't spell them wrong this time lol i copied them directly from the
> console version).
>
>
|
|