> Hi,
> I have a VC 6 project with a few C source code files,and one c++ source
> file. When I refer to any function in the c++ file from the C file, i get a
> Linker error saying that "error LNK2001: unresolved external symbol
> _AddPicture" ( AddPicture) is the name of the function that i am referring
> to. Function Protoypes and header files have been defined correctly.
Do you use EXTERN_C ?

Signature
Jeff Partch [VC++ MVP]
Pravin Prabhu - 21 Jul 2005 13:10 GMT
No i am not using EXTERN_C, am i supposed to use it ? how...
thanks
> > Hi,
> > I have a VC 6 project with a few C source code files,and one c++
[quoted text clipped - 7 lines]
>
> Do you use EXTERN_C ?
Jeff Partch [MVP] - 21 Jul 2005 13:28 GMT
> No i am not using EXTERN_C, am i supposed to use it ? how...
EXTERN_C VOID FuncForCppOrC(VOID);

Signature
Jeff Partch [VC++ MVP]
Pravin Prabhu - 21 Jul 2005 13:36 GMT
Yes...It works now..Thanks Jeff
> > No i am not using EXTERN_C, am i supposed to use it ? how...
>
> EXTERN_C VOID FuncForCppOrC(VOID);