I cannot get "Windows::ApplicationModel::Package::Current->InstalledLocation"

  • Thread starter Thread starter Manda Rajo
  • Start date Start date
M

Manda Rajo

Guest
Hi! I'm new to this kind of pointer (^), can anyone help me to solve my problem please? Thanks.
I read Samples, and learn step by step but I'm stuck here.

ref class MyClass
{
internal:
MyClass();
};

MyClass::MyClass()
{
Windows::Storage::StorageFolder ^p;
p = Windows::ApplicationModel::Package::Current->InstalledLocation;
// There is a breakpoint error here: Exception thrown at 0x00007FFB6A283FB8 in MyApp.exe:
// Microsoft C++ exception: Platform::COMException ^ at memory location 0x000000C53638E080.
//
// If there is a handler for this exception, the program may be safely continued.
}

In any function such as main():

MyClass ^C = ref new MyClass();

Continue reading...
 
Back
Top