>I'm using VC6 (SP5) with MFC framework to produce an .OCX with uses the
>API from VFP7 (SP1).
>
> The component itself works fine, but when I add _OCXAPI() to initiate
>the library functions when you biuld the project it outputs a serious link
>problem with a library:
>
>LINK : fatal error LNK1104: cannot open file "atls.lib"
>
> Is there a workaround ?? Can you tell to Microsoft Support Service to create a fix ??
You need to include the ATL Support library in order to use _OCXAPI.