|
I don't often use Windows 7 so I might be wrong on this, but as far as I know it comes with a built in 32 bit Windows XP virtual machine? MSVC 1.52 might work in that.
Personally I use Microsoft C 6.0 in DosBox[^] and MSVC 1.52 in a Windows 2000 guest OS with VirtualBox[^], both works.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
Thanks for the reply.
Win 7/64 Pro does come with XP virtual machine but unfortunately I only have the Home edition which does not. I thought about upgrading but its too much hassle re-installing everything.
I have a copy of Microsoft C 6.0 somewhere so I think I will give that a go in DosBox.
Can you advise how I install it in DosBox please.
Thanks for the tip.
|
|
|
|
|
You can download the VM from here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
softwaremonkey wrote: I thought about upgrading but its too much hassle re-installing everything.
Upgrading from Home 7 to Pro 7 does not require you to reinstall a thing. All it does, essentially, is replace what's in the Windows folder with the upgraded components, and leave the registry and all program files intact.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hi Richard,
Thanks for this info. This only applies if you buy the Windows 7 Anytime Upgrade. Even though I have a copy of Windows 7 professional, it will not perform the upgrade - unless anyone knows differently.
Thanks again
Tony
modified 23-Dec-11 11:51am.
|
|
|
|
|
Your Product key from your boxed Pro 7 will work as an Anytime Upgrade key. I did that myself on a new netbook I had purchased with Win 7 Starter.
I chose the Anytime Upgrade, and put in my boxed Win 7 product key, and everything went through.
So you're not out of luck.
Rich
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Try [Microsoft QuickC 16 Bit] IDE/Compiler for the C programming language. Its main competitor was Turbo C. (Quick C vs Turbo C , get it? ), Its from the year 1990.
[This] link mentions this:
Emulation
The easiest way to get Turbo C/C++ to run is using DOSBOX which emulates the environment of an old 16bit MsDOS computer. This works very well and will allow you to run most programs (even CGA/VGA/SVGA graphics).
If you wish to run Turbo C on Linux there is DOSEMU.
Virtualization
Another option is to run the programs on a Virtual Machine. Think of this as running a virtual computer on your computer. The VM emulates a PC and you can load an OS like an old copy of windows (if you have old disks laying about) or you can use FreeDOS as an OS.
|
|
|
|
|
Thanks for the reply.
As I said earlier, I have used Microsoft Virtual PC and loaded Windows XP 32 bit on it but it was very slow and routinely locked up and lost connection to the host HDD, loosing the contents of any source file I had made changes to
Since them I have installed Oracle VM Virtual Box which seems (so far) to be a much better product.
Thanks again
Tony
|
|
|
|
|
I create MFC application and run its exe on a system where .net is not installed.
What dll i need to copy on new system.
|
|
|
|
|
|
Hi All,
I want to capture screen of dialog and save it in JPEG format in MFC application.
Does anybody have sample code in VC++ for this?
Thanks in advance.
-Amit
|
|
|
|
|
Check if this link will help you <barry's screen="" capture<="" a="">[^]
Every new day is another chance to change your life.
|
|
|
|
|
Hi Chandrasekharan P,
I already have code to capture screen in BMP format.
I want to capture screen in JPEG format.
if you have VC++ code please share it to me.
Thanks in advance.
-Amit
|
|
|
|
|
Use GDI+.
The Image::Save[^] method allows you specify the jpeg file type.
Independent ACN Business Owner- Check out the possibilities for your future!
- Financial independance
- Full time or Part time
- In more than 20 countries through North America, Europe, Asia and the Pacific
- Featuring the ACN IRIS 5000 video phone. See the person you are talking to.
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks all for feedback.
I am new in VC++ MFC programming.
In my application, User presses show dialog button. Then dialog window gets opend. Here after opening dialog I want to save dialog screenshot in. JPEG format to any local folder. Does anybody have sample code? Please help me.
-Amit
|
|
|
|
|
Hi All,
I have got the solution.
Thanks all for help.
-Amit
|
|
|
|
|
Hello all. I'm trying to synthesize alt + space to bring up the output window's menu using SendInput(). For some reason it works on other windows that I click on after compiling, but CMD windows just take it as a space key press. Here's what I have:
Sleep(2500);
INPUT in1 = {INPUT_KEYBOARD};
INPUT in2 = {INPUT_KEYBOARD};
INPUT in3 = {INPUT_KEYBOARD};
INPUT in4 = {INPUT_KEYBOARD};
KEYBDINPUT k1 = {VK_MENU,0,0,0,0};
KEYBDINPUT k2 = {VK_SPACE,0,0,0,0};
KEYBDINPUT k3 = {VK_SPACE,0,KEYEVENTF_KEYUP,0,0};
KEYBDINPUT k4 = {VK_MENU,0,KEYEVENTF_KEYUP,0,0};
in1.ki = k1;
in2.ki = k2;
in3.ki = k3;
in4.ki = k4;
SendInput(1, &in1, sizeof(INPUT));
SendInput(1, &in2, sizeof(INPUT));
SendInput(1, &in3, sizeof(INPUT));
SendInput(1, &in4, sizeof(INPUT));
system("pause");
So this works in other windows and ignores the alt press in CMD windows. Snarl. The alt + space hot key works in CMD windows when I press the keys manually.
|
|
|
|
|
Just a guess but it could be that the key handler for those windows you want to target use GetKeyState[^] or GetAsynchKeyState[^] to check if the ALT key is down or not and SendInput does not change what these will return. I guess you could test for this by manually pressing the ALT key and sending the space with SendInput as you do.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
I try to compile my project with "Maximize speed /o2"
But when i compile i get:
Command line error D8016 : /o2 and /RTC1 command line options are incompatible
Any one know what can i do about it?
Thanks
|
|
|
|
|
you'll need to disable the "run time error checks" compiler option.
|
|
|
|
|
Either turn off 'Optimize for speed' or 'Run Time Error Checks[^]' as they are apparently not compatible.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
Hi all,
i have made a CStringArray, and inside that array i have put 5 items of CString type, but i want to add one more item which is int array inside that item.
How can i do this?
Thanks in advance
|
|
|
|
|
What do you really need to do? Do you have to store the integers or their string representation?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You need to rethink your design; don't mix different types in this way, it will likely lead to problems in the future.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
+5, don't store an int array in a CStringArray
|
|
|
|