Here's the linker error:
[Linker Error] Unresolved external 'HlinkSimpleNavigateToString' referenced
from D:\PROJECTS\MYPROJECT\MYACTIVEFORMIMPL.OBJ
Heres the code:
...
#include <UrlMon.h>
...
WideString wURL = "http:/www.somewhere.com"/;
WideString wNilStr = "";
HlinkSimpleNavigateToString(wURL.c_bstr(),wNilStr.c_bstr(),wNilStr.c_bstr(),
ComObject,NULL,NULL,0,0);
...
Here's the function as defined in UrlMon.h:
...
STDAPI
/* [in] */ LPCWSTR szTarget, // required - target document -
null if local jump w/in doc
/* [in] */ LPCWSTR szLocation, // optional, for navigation into
middle of a doc
/* [in] */ LPCWSTR szTargetFrameName,// optional, for targeting
frame-sets
/* [in] */ IUnknown *pUnk, // required - we'll search this for
other necessary interfaces
/* [in] */ IBindCtx *pbc, // optional. caller may register an
IBSC in this
/* [in] */ IBindStatusCallback *,
/* [in] */ DWORD grfHLNF, // flags
/* [in] */ DWORD dwReserved // for future use, must be NULL
);
...
So I see it is a matter of getting the function that is declared as STDIMP
to be linked to successfully in my project (BCB6), just not sure how to do
it right now... I have tried fiddling with compiler options but to no
avail:( Is it a name mangling problem? How do I get this to work? I am
relatively new with BCB, but I have used this function in many ActiveForms
in Delphi.
Thanks,
Jason
Gambit
"Jason Thibodeau" <jthib...@nulogicdesign.com> wrote in message
news:3ce69b49$1_2@dnews...