⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpw_w32_misc_95.html

📁 VC programing
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML>

<HR><A NAME=WIN32_WIN95_WINNT>Return to <a href="wpw_w32_index.html#TOC">NO_SUB</a><br>
<H4>Subject: Is Win32 identical for Win95 and WinNT</H4><PRE>
In article <3r9k45$es_002@bangate.compaq.com>,
Karl L. Barrus <klbarrus@bangate.compaq.com> wrote:
>>Okay, simple question.  I'm a seasoned 16-bit Windows developer and we're 
>>looking at moving to Windows95 or WindowsNT.  I'd like to know if the Win32 
>>API is identical for both, or if one of them has a lesser implmentation?
>
>Nope, Windows 95 supports a subset of Win32.

Strictly speaking, this is true and false.

Windows 95 has all of the Win32 functions.

For some, however, they return FAIL instead of trying.

>Get "Advanced Windows" by Richter - it details the advanced features of the 
>API and what changes for Windows 95.

A more current source of information is the MSDN subscription program.

-- 
Mike Lipsie                                (work) mlipsie@ca.merl.com
Mitsubishi Electric Research Laboratory    (home) mikel@dosbears.UUCP
<HR>
In article <D9y6vI.AJ5@thomsoft.com>,
Robert L. Holder @ignite <holder@alsys.com> wrote:
>In <3ra40u$p0r@News1.mcs.com> hammond@ctt.com (Kevin W. Hammond) writes:
>
>Win32 is the api of both Win95 and NT. However there are several
>differences in certain calls that are not implemented in Win95 and
>will return error codes. This is what has concerned me the most about
>Win32. I am used to dealing with UNIX where there are several
>implementations and api differences as a result. However I had
>expected to see Win32 to be EXACTLY the same when the OS's come from
>the same company. Therefore code such as :
>
>#ifdef NT
>#else
>#ifdef WIN95
>#else
>#ifdef WIN32S
>#endif
>#endif
>#endif
>
>will not be uncommon.

Probably not but hackers have been known to do some very stupid things
from time to time.

Since "real" Windows 95 programs must run on NT, a "better" method would
be

    if (win32_function_that_I_want() == FAILURE) {
        // Must be Windows 95 or WIN32s or system is under too heavy a load 
        // Curses, do it the hard way
        if (Hard_way() == FAILURE) {
            //Tough luck - report error and give up
        }
    } else {
        // Success - great!
    }

>Not much different than under UNIX:
>
>#ifdef SVR3
>#else
>#ifdef SVR4
>#else
>#ifdef BSD
>#endif
>#endif
>#endif

You are missing about thirty flavors of Unix :-)

For grins, I did a grep for "ifdef" in the GNU gcc directory.  This is the result
from one of the .h files

gvarargs.h:#ifdef __sparc__
gvarargs.h:#ifdef __spur__
gvarargs.h:#ifdef __mips__
gvarargs.h:#ifdef __i860__
gvarargs.h:#ifdef __pyr__
gvarargs.h:#ifdef __clipper__
gvarargs.h:#ifdef __m88k__
gvarargs.h:#ifdef __i960__
gvarargs.h:#ifdef __alpha__
gvarargs.h:#ifdef __NeXT__
gvarargs.h:#ifdef _ANSI_STDARG_H_
gvarargs.h:#ifdef _HIDDEN_VA_LIST  /* On OSF1, this means varargs.h is "half-loaded".  */
gvarargs.h:#ifdef __svr4__
gvarargs.h:#ifdef __i860__
gvarargs.h:#ifdef _BSD_VA_LIST


-- 
Mike Lipsie                                (work) mlipsie@ca.merl.com
Mitsubishi Electric Research Laboratory    (home) mikel@dosbears.UUCP
<HR>
In article <3rmvki$30l@slip-1.slip.net>, rjesse@slip.net (Rick Jesse) writes:
|> In article <3rbn0s$hd9@aztec.co.za>, peralex@aztec.co.za (Tom Davies) wrote:
|> >cclark@ivory.trentu.ca (J. Chris Clark) wrote:
|> >
|> >>... I'd like to know if the Win32 
|> >>API is identical for both, or if one of them has a lesser implmentation?
|> 
|> The differences are mainly in the area of Security (only in NT) and advanced 
|> GDI functions (such as calls for Bezier curves - NT only).


        One thing that I found out is that ConnectNamedPipe isn't implemented
on Win95. It will return a bad return code and GetLastError indicates that the
function isn't implemented.
-- 
Glenn Horton            SAS Institute Inc.
sasdgh@unx.sas.com      SAS Campus Dr.
919-677-8000 x6640      Cary, N.C. 27513

"Golf is easy. You just swing the club and say Oh No....No!"       
 - Billy explaining golf to Jeffy, The Family Circus     
</PRE>

<HR><A NAME=WIN32_RUN_WIN32S>
Return to <a href="wpw_w32_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Run Win32 app under Win32s</H4><PRE>
In article <3rrgcd$giv@foxbat.pix.za> sarel@pix.za "Sarel Lugtenburg" writes:

>I am currently using win95 with VC++ 2.0 but still want to be able to run my 
>apps on Windows 3.1 (with Win32s). Is this possible ?

Yes.

>Would a program compiled as Win32 run under Win32s or is it more complicated 
>than this ? (I know things like multithreading is not supported) 

Avoid APIs which aren't implemented in Win32s (such as thread APIs) and
there's nothing to do extra.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott, Warrington, UK      | Author of SkyMap v2 shareware    |
| chris@chrism.demon.co.uk            | astronomy program for Windows.   |
|      For more info, see http://www.winternet.com/~jasc/skymap.html     |
|      Author member of Association of Shareware Professionals (ASP)     |
--------------------------------------------------------------------------
 
</PRE>


<HR><A NAME=WIN32_WINNT_W95>
Return to <a href="wpw_w32_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Comments on W95 vs WinNT as development platform.</H4><PRE>
GameWriter (gamewriter@aol.com) wrote:

: I want to use VC++ 2.0.  I am told that I can use VC++2.0 with both Win95
: and WinNT.  Is that correct?  

Yes. I do it all the time.

: So, anyway, I guess what I'd like to know is a) is there any way to speed
: up NT HPFS, b) Does Win95 have anything to help with compression or an
: alternative to 32k clusters, and c) what's the best environment to develop
: 32-bit AND 16-bit software?

I'll vouch for (c).  Windows NT is bulletproof.  You can develop
whatever, buggy, brain-damaged, infinite-looping, memory-trashing crap
you want, and it rolls off NT like water off a duck's back.  Although
Win95 offers separate address spaces, too, it's not as robust, and
does occasionally get in trouble, esp. when DOS gets involved.  I
develop software every day, and I literally cannot remember the last
time I booted this machine - it was well over a month ago.

Bernard S. Greenberg
bsg@basistech.com
<HR>
gamewriter@aol.com (GameWriter) writes:

>Okeedokee.  I'm certain by now that many of you gurus have had ample
>opportunity to test Windows NT and Win '95.  I have had (some) experience
>with both, and have reservations and problems with BOTH systems.  Perhaps
>someone else has had the same problems.... anyway...

>I want to use VC++ 2.0.  I am told that I can use VC++2.0 with both Win95
>and WinNT.  Is that correct?  
right.

>Also, I have become accustomed to not having to deal with the FAT cluster

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -