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
> >
> >
>
>