Archived Forum Post

Index of archived forum posts


Error when write Lib for WP 8

Sep 09 '16 at 22:44

Hi all,

I want to use chilkat lib to build a Lib secure for windows phone 8. I want to write by C++, but i unknow create prject to build with c++. Please help me!.

I trying create prject Windows Runtime Componet (Windows Phone 8) and add chilkat lib as: On menus VS2015 chose Prject ->Property -> VC++ Directories, then include file .h and chilkat lib. I try with sample as below:#include "pch.h" #include "WTC.h" #include <ckcrypt2.h>

using namespace WTC;
using namespace Platform;

    void ChilkatTest()
        CkCrypt2 crypt;
        bool success = crypt.UnlockComponent("Anything for 30-day trial");
        if (success != true) {

I meet error :
Severity    Code    Description Project File    Line    Suppression State

Error LNK2019 unresolved external symbol "public: bool thiscall CkCrypt2::UnlockComponent(char const *)" (?UnlockComponent@CkCrypt2@@QAE_NPBD@Z) referenced in function "public: virtual void cdecl WTC::WindowsPhoneRuntimeComponent::[WTC::IWindowsPhoneRuntimeComponentPublicNonVirtuals]::ChilkatTest(void)" (?ChilkatTest@?QIWindowsPhoneRuntimeComponentPublicNonVirtuals@WTC@@WindowsPhoneRuntimeComponent@2@U$AAAXXZ) WTC C:UsersTRUNGKIENdocumentsvisual studio 2015ProjectsWTCWTCWTC.obj 1

Please help me! why such errors? Thanks!