Hi,
from your description it seems that your VisualC Code is really C++. You
will not be able to compile this code with the VisualC C-compiler. From my
point of view there are two solutions:
1. Change the VisualC Code so that it can be compiled using the C-compiler
(remove classes and so on...)
2. Generate a DLL rather than an object in VisualC, exporting wrapper
C-Functions you can access from CVI. (I would prefer this solution.)
Regards
Torsten
"nswamys" schrieb im Newsbeitrag
news:506500000005000000EBCB0000-1042324653000@exchange.ni.com...
> Hi,
>
> If i change my file name to .c, I won't be able to include
> 'RelayControl.hpp' into this file because, it won't recognize my class
> declarations. Also i have a these statements
in my .hpp file, that
> forbids me from including this file in any non-c++ files.
> #ifndef __cplusplus
> #error ....
> #endif
>
> Is there a way to include my .hpp file in a .c file ?
>
> Thanks,
> swamy