ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
Anonymous
115 Views, 2 Replies

include

I wanna include a cpp-file (which reads a file) in another project (using MS
Visual.NET).
How can I do this correctly?

Where do I include the header file?


--
Greetz,

Giuliano
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

I use ARX Wizard to create a project. Then add commands. MyPrjCommmand.cpp
is then created. I write a few functions in Mysub.cpp. In MyPrjCommand.cpp,
add #include "Mysub.cpp". Then everythings goes well.
But if I add the cpp file to the project using Project->Add to Project, an
error will occur:
fatal error C1010: unexpected end of file while looking for precompiled
header directive

Wei

"Giuliano Lodts" wrote in message
news:18BE2E70C337F3EE8C8913A03E24B7C8@in.WebX.maYIadrTaRb...
> I wanna include a cpp-file (which reads a file) in another project (using
MS
> Visual.NET).
> How can I do this correctly?
>
> Where do I include the header file?
>
>
> --
> Greetz,
>
> Giuliano
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Add this line in the top of the file 'Mysub.cpp',
#include "stdafx.h"

"Wei" wrote in message
news:32DA4D94DDC907FE457749683972D764@in.WebX.maYIadrTaRb...
> I use ARX Wizard to create a project. Then add commands.
MyPrjCommmand.cpp
> is then created. I write a few functions in Mysub.cpp. In
MyPrjCommand.cpp,
> add #include "Mysub.cpp". Then everythings goes well.
> But if I add the cpp file to the project using Project->Add to Project,
an
> error will occur:
> fatal error C1010: unexpected end of file while looking for precompiled
> header directive
>
> Wei
>
> "Giuliano Lodts" wrote in message
> news:18BE2E70C337F3EE8C8913A03E24B7C8@in.WebX.maYIadrTaRb...
> > I wanna include a cpp-file (which reads a file) in another project
(using
> MS
> > Visual.NET).
> > How can I do this correctly?
> >
> > Where do I include the header file?
> >
> >
> > --
> > Greetz,
> >
> > Giuliano
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost