Where linked UWP tile? - c++

I know that Windows start menu's item is link file ever.
In
ProgramData\Microsoft\Windows\Start Menu
linked file exist.
But UWP tile app is not.
Where is linked that app's executable file?
Almost tile is
Program Files\WindowsApps
but not all.
And I can't access this folder normally.
Can I get this file info linked in program code like C++?
Additionally Windows 8's Metro App also...

You may have desktop app dev experience, but link to the app using Shortcut pointed to a file is not the right direction in UWP dev.
And you found that the installation of UWP apps are in the hide folder "Program Files\WindowsApps", but if you send a installed app's .exe file to DeskTop (create shortcut) and double click this shortcut, the following error will be shown:
This application can only run in the context of an app container.
So:
Can I get this file info linked in program code like C++?
The answer is no. But if you need to launch an UWP app from your code, you can refer to Launch the default app for a URI.

Related

Linking .dll files to .exe file

I have just created my first graphical application with the GTK library and I have a little problem.
The application only opens a window of type GtkWidget and shows it to the user as a test.
When compiling this application with Linux g ++, the application opens correctly.
When compiling this application with MinGW g ++ for Windows, this shows that several .dlls are needed to run.
The only solution I have found is to save the .dll files in the same application folder, but I would like to save the .dll files in a separate folder for a better project structure.
I have built the application using the Visual Studio Code text editor.
The compilation has been done using MinGW (and I would like to keep it that way)
I don't think there is an easy way to do it, which is why almost all Windows applications just put the DLLs in the same directory as the executable. Modifying the PATH variable for the user is kind of intrusive (and might be undone by the user).

Icons disappear on an other computer

I've created a program with Qt Creator and compiled it with the release mode.
I've added all the necessary DLLs and everything runs fine on my computer.
The problem is that when I start the program from an other computer all the icons that I've included are not displayed, whereas everything looks fine on my computer.
Where can this come from?
Edit: The icons are loaded in a qrc file...
Most of Qt's support for file formats relies on plugins. To ensure that your application works as expected when deploying it on non-development machines, you will have to make sure that you have also deployed the relevant plugins. If you haven't, the loading of files (ICO icons in this case) will simply fail silently.
The plugin of importance in this case is qico4.dll (if you're on Windows).
The official Qt documentation contains all the relevant information on Qt deployment for both Windows and Mac. Scroll down to the relevant information on Qt plugins.
As a quick solution you could create a directory named imageformats as a subdirectory of the folder containing your executable, into which you copy the qico4.dll.
(Note: user #smerlin says this has to be plugins/imageformats relative to your executable directory. I seem to recall that my applications did not require the extra plugins directory, but I'll update my answer should I find that this is indeed the case).

Qt not working correctly

I have just installed Qt_SDK_Win_offline_v1_1_4_en.exe and run QT Creator.
I am working on Win7 64 bit.
I wanted to make simply app with form and button on it to test Qt. I choose New->Project QT Widget->Aplikacja Gui QT ---> then Desktop application.
When I run Play Button - that should build and run the application I get a message: that I should check path and privileges. I can't also run the exe files as administrator manually because windows give me message that I don't have privileges. I gave full privileges in file Properties but then after run I am getting error that I don't have mingwm10.dll.
I gave full privileges in file Properties but then after run I am getting error that I don't have mingwm10.dll.
This means the library required can't be found in any of the locations Windows searches to find libraries. The usual method to get around this is by making sure the folder containing the copy of mingwm10.dll which the Qt SDK installs is in your PATH environment variable. Here is one of the many Google-able guides to settings those variables.
Ok, I found a partial solution, I could finally run the exe file.
First, something must have changed in my Windows7 because every new created folder (and files in it)had restrictions and noone could make all operations.
So, after changing properties of folder, I got message about missing dlls files, so I started to copy them from QT folder. There are at least a few different versions of each dll, and only one is correct, so I copy those form mingw folder bacause I used mingw compiler, and finally after copying 4-5 dll I run the exe file.
But this is not what I am expecting from app that install pack has almost 2GB...
thanks
m.

how to make ipa while you are using cocos2d?

I want to know that how can I create ipa file, while I am using cocos2d, because it is first time I am making an ipa for cocos2d game, I saw three files instread of two in Build's folder,
Try this...
Buid-->Build & Archive.
Then Select Device in release mode...
Window-->Organizer-->Select your app in sidebar...Then Click Share..Change the identity to iPhone Developer.
That's all.
Before you start, make sure you have Xcode installed on your system; it can be acquired for free on the App Store.
In your cocos2d-x project folder, there should be a "proj.ios_mac" folder which will contain .xcodeproj folder. From the command line, do "open .xcodeproj" or open the .xcodeproj with Xcode.
Xcode itself should then start. Following the instructions provided by Anish, you should then be able to create a .ipa archive and distribute it to the App Store or via Ad Hoc to your test devices.

c++ qt dll not in good folder

I made an project in visual studio with QT, its something for in the taskbar with a tray icon.
but on other pc's i didnt saw the icon because they dont have de qicon.dll file.
the qicon.dll is in the folder: C:\Qt\4.6.3\plugins\imageformats but when i delete it there and i paste it at the exe location it dont work. how can i fix this?
so i need the dll but i want it in the same folder as the exe.
Please take a look at this section of the Qt documentation: http://doc.trolltech.com/4.6/deployment-windows.html
The relevant parts:
"Plugins work differently to normal DLLs, so we can't just copy them into the same directory as our application's executable as we did with the Qt DLLs. When looking for plugins, the application searches in a plugins subdirectory inside the directory of the application executable."
And:
"An alternative to putting the plugins in the plugins subdirectory is to add a custom search path when you start your application using QApplication::addLibraryPath() or QApplication::setLibraryPaths()."
I guess that answers your question.