I want a tool similar to the CONNECT example "incrementTextTool". When I use the provided BMAKE to generate the .ma/.dll, all is fine. However, my typical mode is to build the .dll from inside VS2013. When I put the example .cpp file into a VS2013 project, it compiles fine, but the linker chokes on the above mentioned functions. Here is the output:
1> Creating library C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\mdlapps_development/srs_incrementText.lib and object C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\mdlapps_development/srs_incrementText.exp 1>incrementText.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Bentley::RefCountedPtr<struct Bentley::DgnPlatform::TextBlock::FindTextMatch> __cdecl Bentley::DgnPlatform::TextBlock::FindTextW(wchar_t const *,struct Bentley::DgnPlatform::TextBlock::FindTextParameters const *,struct Bentley::DgnPlatform::Caret const *,struct Bentley::DgnPlatform::Caret const *)const " (__imp_?FindTextW@TextBlock@DgnPlatform@Bentley@@QEBA?AV?$RefCountedPtr@UFindTextMatch@TextBlock@DgnPlatform@Bentley@@@3@PEB_WPEBUFindTextParameters@123@PEBUCaret@23@2@Z) 1>incrementText.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl Bentley::DgnPlatform::TextBlock::ReplaceTextW(wchar_t const *,struct Bentley::DgnPlatform::Caret const &,struct Bentley::DgnPlatform::Caret &)" (__imp_?ReplaceTextW@TextBlock@DgnPlatform@Bentley@@QEAAXPEB_WAEBUCaret@23@AEAU423@@Z) 1>C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\mdlapps_development/srs_incrementText.dll : fatal error LNK1120: 2 unresolved externals
What am I doing "wrong" such that the linker can't find the functions, which are clearly there? Is there a "name mangling" issue that I'm not seeing?
Bruce