Answer the question
In order to leave comments, you need to log in
How to make a program written in C ++\CLR so that it works like a normal application, without glitches?
I wrote a program in C++\CLR. The code works great, but I want it to work on all operating systems of the Windows family. But already in XP and 8 it is buggy and writes that the application is not win32, etc.
Answer the question
In order to leave comments, you need to log in
If the program is compiled as x64, then it will not run on x86. If the program is compiled as x32 or as AnyCPU, then logically it will run on both x64 and x32, with different performance compromises.
There are more nuances.
Do not use absolute paths to store program data. Use the help of .NET, which will give you a folder for temporary files, and a folder for storing application data, and the current folder, and the current user folder, and much more.
Do not use the registry to store program settings, if possible. In different systems and depending on the bitness of the system and application, the application may correspond to different branches in the registry. In order not to rake up this logic, store the program settings in configuration files stored in the application's data storage folder.
Do not use the folder where the program is installed in ProgramFiles to store data. For security reasons, access to this folder is limited by default starting from seven. If you have allowed it to be done at your site, this does not mean that it can be done at the user's.
And most importantly: test, test, test wherever you want your program to work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question