Click here to Skip to main content
15,887,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My C++ code, which is part of Media Foundation Transform tend to able to run in Windows Store App (Metro)

I modify the C++ GrayscaleTransform to include the following code.

However, my C++ code fails to locate namespace Windows::Storage.

LPCWSTR zPath = Windows::Storage::ApplicationData::Current->TemporaryFolder->Path->Data();


Is there any additional settings I need to do?

I can make it compiled, by turning on Consume Windows Runtime Extension.

http://i.stack.imgur.com/CWO6z.png[^]

But by doing this, it will give me additional linking error and warnings.

warning LNK4197: export 'DllGetActivationFactory' specified multiple times; using first specification 
warning LNK4197: export 'DllCanUnloadNow' specified multiple times; using first specification
warning LNK4197: export 'DllGetActivationFactory' specified multiple times; using first specification 
warning LNK4197: export 'DllCanUnloadNow' specified multiple times; using first specification
error LNK2005: _DllCanUnloadNow@0 already defined in dllmain.obj 
error LNK1169: one or more multiply defined symbols found


Comment out DllCanUnloadNow will produce runtime error.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900