I'm trying to set os name and os arch with my app (C++);
in java I've previously worked with System.setProperty(), what I exactly need to do is:
System.setProperty("os.name", "Windows 7");
System.setProperty("os.arch", "x86");
PS: I am trying to run an external exe file with Windows 7 compatibility mode; because I am using an exe which is only compatible with Windows 7, so I want to make it compatible with newer Windows versions (8, 10)
Related
I am trying to port a Qt project that I have developed on Linux first. It is the first time that I'm experiencing building on Windows, and the fact that I could not solved the problem might come from a very obvious missing thing.
The Windows configurations I tried until now are the next one:
Windows 10 with Qt 5.8 MSVC 2015, Windows Kit 10, Qt Creator 4.5
Windows 7 SP1 with Qt 5.8 MSVC 2015, Windows Kit 10, Qt Creator 4.6
With both configs, I obtain an executable file that can be successfully run on the host machine, but when I deploy the application on freshly installed Windows 10, the application starts for few seconds and then stops(/crashes?). However, neither error messages, nor recoveries dialog, nor event log are showing up anything.
On freshly installed Windows 7 SP1, I get an error message saying that the entry point for CreateFile2 couldn't be find. I know that this function has been added since Windows 8, but I cannot understand why the application is built with such a entry point although I define the _WIN32_WINNT as follow in my .pro file:
DEFINES += "_WIN32_WINNT=0x0601"
I tried to the WINVER definition as well, without success:
DEFINES += "WINVER=0x0601"
I assumed no DLL were missing using a dependency software available at this git. I also tried the "more than depreciated" Dependency Walker, which didn't show missing libs.
By advance, thank you to the Windowsians who will save me!
Okay, I figured out that one of the static libraries my project is using, and that I compiled through VS 2017 was containing the CreateFile2 reference (using dumpbin.exe). I recompiled it using the right _WIN32_WINNT value, and also fresh-recompiled the Qt project. However, the CreateFile2 reference is still present.
Eventually, I found the problem!
The problem was coming from this external library I was building aside, and then linking to my final app in static mode. After rebuilding the external lib with the correct _WIN32_WINNT, it worked!
Hope this topic will help winnoob like me :)
I'm using Netbeans 8.2 on a Win 10 Machine for remote developing on a RaspPi with Raspbian Jessi.
I set up the remote building system and it works very well.
There one think I do not like. Netbeans is using this path to copy the data
pi#raspberrypi:~/.netbeans/remote/192.168.1.46/workstation-Windows-x86_64/C/Users/user/Documents/NetBeansProjects/.....
How can I change this path e.g. to
pi#raspberrypi:~/NetBeansProjects/
i am new in using Infragistics, i have an application deployed on client server and it s working fine while browsing it from windows xp 32bits. But currently he want to navigate the application using windows 7 64bits. So how can i fix the problem without changing the dll version. i m currently using version 7 infragistics.
With Windows 7 32-bit I was able to output text to Gallio.Echo runner using Gallio.Runtime.ConsoleSupport.NativeConsole.Instance.WriteLine(""). But I'm failed with it in Windows 7 64-bit. Is there any way to accomplish it? I'm using Gallio bundle 3.4.14.
Thanks!
You may try:
Gallio.Framework.DiagnosticLog.WriteLine("message");
I have not tested in Windows 7, just in Vista.
You might find the following answer useful as well: https://stackoverflow.com/a/9775222/13441
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Why simple console app runs but dialog based does not run in WIN CE 6.0?
My device is iPA280. It has:
Main Processor: Marvell PXA-300 (XScale ARM) # 624 MHz
Operating System: WinCE 6 pro
I am developing an application in embedded Visual C++ 4 with service pack 4 for this device. Which configuration (ARMV4, ARMV4I, MIPSII and...) should I use for building correct .EXE file for this device?
I have tested most of configurations but my application only works in emulator correctly and .exe files in other configurations do not work on device. some of .exe files has invalid EXE message and some do not run without any message or error or warning.
Thanks,
ARM v5 is backwards compatible with the ARMv4 instruction set, so I don't think the problem lies here. The program may fail to start on actual device for a variety of other reasons.
You may be linking to lib that is non-existent on device, for example aygshell.dll or ccrtrtti.lib
You may be exporting function ordinal not present in core.dll of this windows build (try ExecutabilityCheck.exe for this; this free little program will tell which functions are missing http://www.hpcfactor.com/downloads/details.asp?r=40A26F4C-E4AC-41C9-81A1-1D81B4C41A0E)
Check linker command line, for one old project that I was involved in, and it worked ok on windows mobile 4 up to 6.5 I've had this "/subsystem:windowsce,4.02 /machine:ARM"
ARM v4 will generate code that will run, but you may hit problems with the SDK you use, and further problems when you come to debug. I'd recommend moving to Visual Studio 2008. (Not VS2010 because it doesn't include native Windows mobile development).