Hi all,
I have a project originaly created in VC++ 6.0 then migrated to VC++ 2003.
Unfortunatelly after compiling in the 2003 version it does not work in
Windows 98.
I am using only MFC, so .NET Framework shoudn't be necessary.
I added in stdafx.h lines:
#define WINVER 0x400
#define _WIN32_WINNT 0x400
but still it crashes on Win98
How to successfuly set target system ???
Without WINVER it is defaulting to XP, but how to set it to Win98 ?
Regards
PawelS 7 1634
>I have a project originaly created in VC++ 6.0 then migrated to VC++ 2003.
>Unfortunatelly after compiling in the 2003 version it does not work in Windows 98. I am using only MFC, so .NET Framework shoudn't be necessary.
I added in stdafx.h lines: #define WINVER 0x400 #define _WIN32_WINNT 0x400
but still it crashes on Win98
So why is it crashing?
Have you tried debugged it to find where the problem is?
Dave
PawelSokolowski wrote:
Hi all,
I have a project originaly created in VC++ 6.0 then migrated to VC++ 2003.
Unfortunatelly after compiling in the 2003 version it does not work in
Windows 98.
I am using only MFC, so .NET Framework shoudn't be necessary.
I added in stdafx.h lines:
#define WINVER 0x400
#define _WIN32_WINNT 0x400
PawelS:
If you want to run on Windows 9x/Me you should not define _WIN32_WINNT
at all.
Also, it is 0x0400, not 0x400.
Also, Windows 98 is Ox0410
But if your code ran when compiled with VC6 and you have not added
anything, then these flags are unlikely to be the problem. They just
prevent you from including code that will not run on all the platforms
you wish to target.
David Wilkinson
>>but still it crashes on Win98
>
So why is it crashing?
Have you tried debugged it to find where the problem is?
Application was working perfectly on Win98 compiled with VC6.0 and it's
working on XP when compiled with 2003.
I don't think it's debugging case, most probable is that API calls are not
compatible with old Windows.
Question is how to setup compiler for correct target system.
Regards
PawelS
"PawelSokolowski" wrote:
>but still it crashes on Win98
So why is it crashing?
Have you tried debugged it to find where the problem is?
Application was working perfectly on Win98 compiled with VC6.0 and it's
working on XP when compiled with 2003.
I don't think it's debugging case, most probable is that API calls are not
compatible with old Windows.
Not just API. The runtime libraries have been changed too
(memory allocation and so on)
Question is how to setup compiler for correct target system.
Since win98 is obsolete and unsupported... maybe it is better to stay with
VC6 ?
--PA
>>>but still it crashes on Win98
>> So why is it crashing?
Have you tried debugged it to find where the problem is?
Application was working perfectly on Win98 compiled with VC6.0 and it's working on XP when compiled with 2003. I don't think it's debugging case, most probable is that API calls are not compatible with old Windows.
You won't know for sure unless you debug it and find out.
Dave
"David Wilkinson" <no******@effisols.comwrote in message
news:uh**************@TK2MSFTNGP02.phx.gbl...
PawelSokolowski wrote:
>Hi all,
I have a project originaly created in VC++ 6.0 then migrated to VC++ 2003. Unfortunatelly after compiling in the 2003 version it does not work in Windows 98. I am using only MFC, so .NET Framework shoudn't be necessary.
I added in stdafx.h lines: #define WINVER 0x400 #define _WIN32_WINNT 0x400
PawelS:
If you want to run on Windows 9x/Me you should not define _WIN32_WINNT at
all.
Also, it is 0x0400, not 0x400.
Same thing.
>
Also, Windows 98 is Ox0410
Capital letter O should cause a compile error.
>
But if your code ran when compiled with VC6 and you have not added
anything, then these flags are unlikely to be the problem. They just
prevent you from including code that will not run on all the platforms you
wish to target.
That I agree with.... partially. But they will make your Win32 API
structures longer, then when you initialize the cbSize member using
"sizeof", the older OS won't know the new layout and will fail.
>
David Wilkinson
Ben Voigt wrote:
>>PawelS:
If you want to run on Windows 9x/Me you should not define _WIN32_WINNT at all.
Also, it is 0x0400, not 0x400.
Same thing.
>>Also, Windows 98 is Ox0410
Capital letter O should cause a compile error.
>>But if your code ran when compiled with VC6 and you have not added anything, then these flags are unlikely to be the problem. They just prevent you from including code that will not run on all the platforms you wish to target.
That I agree with.... partially. But they will make your Win32 API
structures longer, then when you initialize the cbSize member using
"sizeof", the older OS won't know the new layout and will fail.
Ben:
Points taken.
I would suggest to the OP that he recompile with only WINVER set (to
0x0410, aka 0x410).
David Wilkinson This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Edward Diener |
last post by:
If you run this simple console program after building it on VC++ .NET 2003,
you will see the error message, "Error getting initial stream position",
from the attempt to use the...
|
by: msnews.microsoft.com |
last post by:
Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add
Reference". This will add a .NET DLL reference to the current project. After
I...
|
by: Matt S |
last post by:
Does the liscense for the VC++.Net 2003 allow the user to purchase a downgrade to VC++.NET 2002? DO I need to buy a standard version of VC++.NET to downgrade?
I need to get VC++ 2002, but I can't...
|
by: Alex |
last post by:
Hi there
I'm switching from VC++ 6.0 to VC++ .NET 2003. Since there is no stand-alone
version of VC++ .NET 2003 Pro, I went and purchased the Standard version,
which does not have an...
|
by: Qiao Yun |
last post by:
I used vc++.net (visual studio .net ) to open a project which can work well
in vc++6.0. I succeeded in compiling the project in vc++.net in release
mode .
But when I tried to compile the project...
|
by: Ganapathy |
last post by:
I have COM dll code written in VC 6.0. When i tried
compiling this code in VC 7, The MIDL cmpiler gets called
twice. i.e. it initially compiles fully & immediately a
line - 64 bit processing'...
|
by: Michael |
last post by:
i experience slower compile times with VC++ 2003 compared to VC+6.0.
Anyone experiencing the same?
Should that be expected?
This ineed matters, when total compilation time is > 1h and you have to...
|
by: Dr. Zharkov |
last post by:
We want to export myArrayVB (2000, 2) of VB .NET 2003 in myArrayVó
of VC++ .NET 2003 on scheme "component - client". But there is an error.
For development of a component in VB .NET 2003 we...
|
by: pmbcan |
last post by:
I have a project written in VC++ 2003.NET which uses MFC classes.
I have ONLY VC++Express2005. I can open the VCProject file sucessfully. The
conversion takes place without any error. BUT the...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |