i downloaded the SAP RFC SDK 7.20 unicode (Windows Server on IA32 32bit)
opened VisualStudio 2010
created new MFC dialog based project
added additional include directories (linked to SDK folder)
added additional library folders (also linked to SDK directory)
added librfc32u.lib;libsapucum.lib as additional dependency
added #include "saprfc.h"
put some code into the project
rfc_handle = RfcOpenEx("",&rfc_err_inf_ex);
and tried to compile ... the result is an error that the external symbol RfcOpenEx is unresolved.
1>------ Build started: Project: saprfcsdk, Configuration: Debug Win32 -
1>saprfcsdkDlg.obj : error LNK2019: unresolved external symbol _RfcOpenEx@8 referenced in function "public: void __thiscall CsaprfcsdkDlg::OnBnClickedButton1(void)" (?OnBnClickedButton1@CsaprfcsdkDlg@@QAEXXZ)
1>...\saprfcsdk\Debug\saprfcsdk.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Anyone has an idea what i am doing wrong ?
I have a Win7 64Bit running but i also tried it on VS2003 and WinXP ... but got the same error.
Thanks for your hints.