C++ Builder 2007: Unresolved external ‘__fseeki64’

Question: I work with C++ Builder There are no problems with chilkatLib in IDE version XE8 but I still have some code in C++ Builder 2007 Is it possible to solve this case somehow: [ilink32 Error] Error: Unresolved external ‘__fseeki64’ referenced from LIB-WIN32\CHILKAT_CLASSIC_WIN32.LIB|ChilkatHandle ? Answer: The Chilkat static library for …

Passing Strings to COM/ActiveX in C++ Builder

In C++ Builder, when passing a string to an ActiveX (COM) function, a BSTR is required. This is different than a NULL-terminated WideString. The correct syntax looks like this: long lSuccess; BSTR bstr = SysAllocString(L”UnlockCode”); spChilkatMHT->UnlockComponent (bstr, &lSuccess); SysFreeString( bstr ); The following is incorrect because a NULL-terminated WideString is …

CodeGear C++ Builder: Passing Strings to COM / ActiveX Methods

The correct way to pass a string to a COM/ActiveX method is to use “WideString (theString).c_bstr()” because ActiveX controls/components require BSTR’s, and not strings.  BSTR’s are wide strings (Unicode) where the length of the string precedes the string in memory. The C++ Builder code to pass a string to an …