login about faq

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;

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

            return;
        }
    }
}
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!

asked Sep 09 at 22:44

kiennt's gravatar image

kiennt
1

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×98

Asked: Sep 09 at 22:44

Seen: 97 times

Last updated: Sep 09 at 22:44

powered by OSQA