HDTenEightyP/NetNews huggingface dataset:
From:  avsht@sph.spb.su (Alexander Shturm)
Subject: WEP, WEP, WEP...
Keywords: WEP
Reply-To: avsht@sph.spb.su
Organization: Center SuperPhysica
Date: Mon, 28 Dec 1992 07:30:25 GMT

Hi netters!

This is piece of SDK 3.1's manual:

-> In some low-memory conditions, WEP can be called before the library
-> initialization function is called and before the library's DGROUP
-> data-segment group has been created. A WEP function that relies on the
-> library initialization function should verify that the initialization
-> function has been called.

1. What conditions do they mean?
2. What is "library initialization function" in this context?
   Is it LibMain?
3. Who may explain me WHEN & WHY WEP could be run BEFORE LibMain ???!!!

Thanks for any help.

Regards,
/Alex

-- 
Alexander Shturm  ||  St.-Petersburg  ||  Internet: avsht@sph.spb.su
================  ||   Russia (xSU)   ||  FidoNet:  2:5030/8.18, /43.18
Tel.: +7-(812)-233-9148 (home)   +7-(812)-310-4631 (office)


Newsgroups: comp.os.ms-windows.programmer.misc
From: manz@ee.ualberta.ca (Brett {Druid Queen} Manz)
Subject: Re: drag & drop server
Organization: University Of Alberta, Edmonton Canada
Date: Mon, 21 Dec 1992 21:53:00 GMT

In <1h0crpINNdvh@usenet.INS.CWRU.Edu> bu254@cleveland.Freenet.Edu (Stephen Groundwater) writes:


>In a previous article, bu254@cleveland.Freenet.Edu (Stephen Groundwater) says:
>[Stuff deleted]
>>This is the result of my dumping the hDrop memory that
>>comes on the WM_DROPFILES message, and my understanding of it.
>> 
>>The hDrop memory is a global memory object.
>>The drag-drop memory object consists of two parts, a header, and
>>a trailing bit.
>>The header is 8 bytes long in windows 3.1.
>>The trailer is however long it needs to be.
>> 
>>The header:
>> 
>>typedef struct tagDragHeader {
>>	UNIT wStructSize; /* Size of struct (8 bytes in this ver) */
>>	UINT x; /* x co-ord on window that is dropped on. (Client DC) */
>>	UINT y; /* y co-ord on window that is dropped on. (Client DC) */
>>	WORD wReserved; /* no known purpose, should be 0 */
>>	} DragHeader;
>> 
>>This is what I think the header structure is, the first three
>>fields I am more or less sure of, the fourth field is a mystery
>>to me, but in every drop I've seen it's been 0.
>> 

>Correction:
>I have now found out what the fourth field is, thanks to hints from
>blakeco@Microsoft.COM. The structure should be:

>typedef struct tagDRAGHEADER {
>  UINT wStructSize; // Same as before
>  UINT x; // Same as before
>  UINT y; // Same as before
>  BOOL fInClient; // True if drop is on client area,
>                  // false if anywhere else (title bar etc)
>  } DRAGHEADER;

>>The trailer:
>> 
>>The trailer is a series of null-terminated strings that contain
>>the strings that DragQueryFile() will return. The number of the
>>strings is not in any structure, so you don't need to worry about
>>that.

Actually, I believe the trailer is a null-terminated list of
null-terminated strings.  ie:

filename1\0filename2\0filename3\0\0

Without the last null DragQueryFile() won't know where the list ends
and will likely cause a protection error.


>>You should GlobalAlloc a block big enough for the header, and following
>>file names, and use the flag GMEM_DDESHARE when allocating.
-- 
---------------------------------+-------------------------------------
 My opinions are my own.         |  You can't be proud of who you are
 The truth belongs to everyone.  |  if you're ashamed of what you are.
   I can't even *think straight! |    Cruise Men, Not Missiles! - anon
From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: OLE 2.0 beta
Date: 21 Dec 92 03:59:13 GMT
Organization: The Horrible Sleeping Church.
X-Newsreader: TIN [version 1.1 PL8]


  I read in some magazine that the beta version of OLE 2.0 is available
and could be ordered "through the %s forum on the Internet" (I forget
the name). No such "forum" exists.

  Did the article mean CompuServe? Can OLE 2.0 be obtained without
Compu$erve access (in Australia it costs $36/hour :-( ) ?  Is the beta
on any ftp sites, or does one have to sign a non-disclosure agreement?

AdTHANKSvance;

Happy Christmas and a Merry New Year;
+---------------------------------------------------------------------------+
|  Andrew Bulhak		| Indeed! But do not reject these teachings |
|  sloth@yoyo.cc.monash.edu.au	| as false because I am crazy. The reason   |
|  Monash Uni, Clayton,         | that I am crazy is because they are true. |
|  Victoria, Australia          |                 - Malaclypse the Younger  |
+---------------------------------------------------------------------------+
From: ijd@hplb.hpl.hp.com (Ian J Dickinson)
Date: Fri, 18 Dec 1992 17:34:14 GMT
Subject: Re: How to make a Long from ints in VB
Organization: Hewlett-Packard Laboratories, Bristol, UK.
Newsgroups: comp.os.ms-windows.programmer.misc


> There may be a better way, but I just did something like
> new_long = hi_int * 65536 + lo_int.  
There is indeed.  Look up functions CLng and CInt in the language reference
manual.

How did I find this out?  By browsing the manual at random.  Is there a
reference to these functions in the programmer's guide? No, or at least not
that I could find.  Grrr. Let's hope the 2.0 documentation is better.

> --George Yefchak
Ian.


|Ian Dickinson    HP Labs Bristol (Knowledge Based Programming Dept)   England|
|Email: ijd@hplb.hpl.hp.com    | Enough if something from our hands have power|
|   These opinions are mine,   | To live and act and serve the future hour    |
|  and not (necessarily) HP's  |                                 - Wordsworth |

Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: furballs@sequent.com (Paul Penrod)
Subject: Re: MFC and Borland IDE
Organization: Sequent Computer Systems, Inc.
Date: Thu, 31 Dec 92 05:49:15 GMT

In article <1992Dec30.231117.19312@microsoft.com> stevesi@microsoft.com (Steven Sinofsky) writes:
>In article <1992Dec29.164246.22111@netcom.com> garylang@netcom.com (Gary Lang) writes:
>>"The end result was (quoting the stats from the magazine):
>>
>>                   OWL      MFC
>>Lines of Code     3398      934
>>EXE size(bytes) 56,848   46,536
>>
>>The OWL executable also requires 3 DLLs totalling 312,640 bytes.  MFC
>>is a stand-alone EXE.
>>-- 
>>Steven Sinofsky"
>>
>>
>>Yes, but the results would have been similar if it had ben OWL vs.
>>straight SDK calls Steve, and that's the point. The metric that
>>matters is: how object-oriented is the app. fw. and is it removed
>>enough from the toolbox of the platform to get me out of the business
>>of worrying about allocating DCs and so on. For MFC, the answer is no.
>>
>>If I want speed and size and that's it, I'll code in assembler.
>>
>>-g
>
>Also quoting from the article:
>
>"Most articles on Microsoft's MFC say it is a 'thin veneer' or
>a 'wrapper' around the Windows native API.  This myth is not substantiated
>by the facts.  Metrics such as line count, number of classes, and number
>of methods indicate otherwise"
>
>"Microsoft was able to implement our sample application using the
>fewest lines of code.  In addition, Microsoft's implementation had the
>smallest executable and required the least amount of runtime support
>from DLLs."
>
>Someone in this forum claimed that the MFC example used a dialog
>box and that the OWL example did not.  In fact the OWL example
>is also coded using this exact same technique.
>
>
>-- 

Nifty details.... But...

I have say that they are really fairly inconsequential in the big
picture. The only thing that would make sense in realtive terms is
the use or abuse or wrappers around the API. Frankly I prefer
wrappers, and I eschew C++ and it's classes. My preference runs to
white box techniques which the Microsoft Compiler's MFC provides
very readily, more so than the Borland OWL; however I like the way
Borland put everything together better than Microsoft. So it really
comes down to the way a person works, and their preference.

After evaluating both sides, that's what it comes down to. Features
vary in minor details; Microsoft better at some things, Borland at
others. Choose your poison. I'll take the bottle on the right. :)


-- 
--------------------------------------------------------------------
            Bureaucracy: noun, plural - Bureaucracies.
         The process of turning energy into solid waste.
---------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: tope@enea.se (Tommy Petersson)
Subject: Re: VB, Windows and printing
Organization: Enea Data AB
X-Newsreader: Tin 1.1 PL3
Date: Tue, 22 Dec 1992 17:11:45 GMT

tope@enea.se (Tommy Petersson) writes:
: We are doing a small application in Visual Basic 2.0 Pro, to run on
: Windows 3.1 clients in a Lan Manager Network.
: 
: Reports from our application need to be printed in landscape orientation
: on a Nec PostScript laser printer. This is easy by selecting landscape
: mode in Control Panel/Printer. However, everything else the users print
: should be portrait, and they of course don't want to manually change the
: preferences all the time.
: 
: There seem to be two choices here:
: 
: Let Visual Basic still use the "Printer" object, (which only works on
: the default printer). For every report in our application, set the printer
: to landscape, and reset it afterwards.
: 
: Forget about the Printer object, stuff the default printer, use Windows
: calls to get/change device context and don't mess with the default printer
: whatsoever.
: 
: Which is best? Or is there a better way of doing it?
: 
: In "your best solution" - how do you do it? (I have looked only briefly
: on the GetDeviceContext, ExtDeviceMode, Escape and other calls)
: 
: Pro's and con's?
: 
: -- 
: =============================================================================
:  Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
: =============================================================================

Microsoft Support recommended me to use the Escape call, and sent me an
example. This example initially states that you shouldn't use Escape but
DeviceCapabilities/ExtDeviceMode instead...:-)

ExtDeviceMode and many other functions are not listed in the "Win 3.1 API Help"
file. MS Support didn't know this, and couldn't give any explanation. They
however had the same guess, that it may be problematic to implement them.
Maybe it's because of a problem to pass a parameter that is an address to
a structure containing a C string?

If anyone's interested: I found out that ResetDC can change paper
orientation during printing of a document, not only between documents as
with Escape. It's however not listed in "Win 3.1 API Help" either.

-- 
=============================================================================
 Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
=============================================================================

Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: How to distinguish between Click and Double-Click? 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 23 Dec 1992 21:49:12 +0000

In article <1992Dec22.3151.2938@dosgate> chris.little@canrem.com writes:

>In article <722@lax.lax.pe-nelson.com> (Tom W. Brown) writes:
>
>My question is how to determine if the modifier keys are down during a
>WM_LBUTTONDOWN message.
>
>Chris Little
>Logicus Incorporated.
>

There are two things you can do.

1.   The wParam parameter of the message will tell you about the common
     modifiers - it'll be a "logical OR" of the state of the shift,
     control, etc, keys.

2.   You can call the "GetKeyState" message to find out the state of *any*
     key at the time of the event currently being processed (as opposed to
     "GetAsyncKeyState" which tells you the state of the key *now* ).

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: martin@patricia.verfahrenstechnik.uni-stuttgart.de (Martin Hepperle)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: REQUEST: ctl3d.dll: Microsoft's library for 3D controls
Date: 23 Dec 92 13:10:16 GMT
Reply-To: martin@mecha2.verfahrenstechnik.uni-stuttgart.de
Organization: Institute A for Mechanics, University of Stuttgart, Germany


Hi,

could someone upload this library from Compuserve's MSDNLIB to cica ?

Thanks,

Martin.
From: mlake@irscscm.UUCP (Marshall Lake)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Business Opportunity
Date: 28 Dec 92 13:38:26 GMT
Reply-To: mlake@irscscm.UUCP (Marshall Lake)
Distribution: usa
Organization: Internal Revenue Service, Washington, DC


We at TEAM Software are considering putting together a catalogue of
computer software for the end user.  This software could be any type
(entertainment, utility, educational, etc.) and run on any platform
(PC, Amiga, Macintosh, Atari, NeXT, UNIX, etc.).  The software would be
inexpensive to the end user (we envision $5 to $15).  It would be kept
inexpensive by not including any type of packaging and providing the
documentation as a disk file.  We would not necessarily exclude higher
priced software, however.

For this approach to work we feel we would need to offer a lot of
product in the catalogue.  We have access to extensive mailing lists for
various platforms.  The programmer would retain all rights to the
software and there would be a contract between the programmer and TEAM
Software.  We expect the programmer to make a royalty of 10% to 15% of
our gross.

Do you know anyone who might be interested in providing software for
something like this?


Marshall Lake
TEAM Software
POB 7332
Washington, DC  20044-7332
tel 703-533-2132
fax 703-538-4598
uucp ...!uunet!{media,mimsy!bogart}!irscscm!mlake
Internet mlake@irscscm.UUCP
CIS 73717,3174
GEnie MLAKE

-- 
Marshall Lake
...!uunet!{media,mimsy!bogart}!irscscm!mlake
mlake@irscscm.UUCP
From: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: REQUEST: ctl3d.dll: Microsoft's library for 3D controls                        
Date: 31 Dec 92 17:57:18 GMT
X-MSMail-Message-ID:  46C01EEB
X-MSMail-Conversation-ID:  46C01EEB
X-MSMail-WiseRemark:  YO
To: netnews

You can find the MSDNLIB stuff on ftp.uu.net 
\vendors\microsoft\developer-network.

In particluar look for 3-31.zip and 10-4.zip

Kyle
MS Developer Network.
Newsgroups: comp.os.ms-windows.programmer.misc
From: DRPORTER@SUVM.SYR.EDU (Brad Porter)
Subject: Screensaver wanted!
Organization: Syracuse University
Date: Sat, 2 Jan 93 22:45:59 EST

Help!!!  Freeware or shareware that needs to be written!  Here's what's needed:
            A Windows screensaver, accessible through the Control Panel/Desktop
            area, that allows you to specify a program to run.  In other words,
            when I click setup I want to be able to input a command line just
            like when I click Run in the program manager.  There are numerous
            DOS screensavers, and I can write full-screen animations in VB,
            but none of these can be run through the Windows Screensaver
            area.  This can't be all that difficult to program if you're
            familiar with writing Windows screensavers, which I'm sure someone
            here is, but it would be invaluable in my opinion.
If no one is willing to write this, could someone at least tell me what I need
to learn how to do it myself?  Please respond if you're going to do something
so I don't need to ask on every network I find.
                                  -Brad Porter
DRPORTER@SUVM.ACS.SYR.EDU
PS - I'm really just looking for this program so I can use it for myself and
maybe some friends.  It would probably be a highly sought after program, though
.
Newsgroups: comp.os.ms-windows.programmer.misc
From: phshl@wombat.newcastle.edu.au (S.H. LEE (61) 49 21 5566)
Subject: combo box problem
Organization: University of Newcastle, AUSTRALIA
Date: Sun, 3 Jan 1993 04:35:08 GMT

Hi ,
  


hi
  I am trying to read the content of the edit control in a combobox by
using the "transfer mecahnism"

type
  rec = record
    str : pstrcollection
    selected : array [0..10] of char;
  end;

and

  p^.transferbuffer := @RecVar;

where p is an instance of a dialog with the combobox.

Could someone tell me what's wrong with this code? The program
crashed with protection fault error.

Lee
From: parker@navier.math.uh.edu (Ronald L. Parker)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: bi_listimp add doesn't exist?  please help!
Date: 29 Dec 92 19:36:28
Organization: Society to disband societies. (Good thing I'm the only member!)
Distribution: world
NNTP-Posting-Host: navier.math.uh.edu

Can someone tell me why the linker would generate an error of the form
Linker error: Undefined symbol bi_listimp<MyType far *>::add(Mytype far *> ...
The exact same code works everywhere else, as near as I can tell.  I think
I've tried every conceivable configuration imaginable.  Unfortunately, I
can't post the code that's doing it, but surely someone has had this problem
before.  We're using the large memory model with lots and lots of modules, if
that's any help.  We're also using dynamic libraries (i.e. owl, etc.)

Newsgroups: comp.os.ms-windows.programmer.misc
From: tooraj@daneel.rdt.monash.edu.au (Tooraj Enayati)
Subject: Re: Aarrgghh. ProtoGen! Anybody?
Organization: Monash University, Melb., Australia.
Date: Fri, 1 Jan 1993 05:18:51 GMT

f254@cs.utexas.edu (Fall Class Account) writes:

>I have been having trouble "making" the c++ code generated by ProtoGen
>using Borland C++ 3.1.  (I get a lot of linker error for "undefined
>symbols") and do not know what I am doing wrong. The .prj file ProtoGen
>creates is loadable in BC++ for compiling/making... Am I right?  Or am I
>supposed to add some .lib in my .prj?  If anyone has any experience/ideas
>in this, please post them here!

>Thank you very much in advance.

What version of ProtoGen are you using? You need the latest (I think 3)
to use with Borland C++ 3.1. The latest version came out to support
Version 3.1 of BC++. Version 2.0 of ProtoGen won't work with BC++ 3.1 
but will work with BC++ 3.0.

As far as I know ProtoGen is not upgradeable. Borland over here thinks
since it is so cheap AU$80 it is not worth the upgrade "...just buy the new
version"  :-(

The only differnce I can see between the old and new versions are the
lable on the disk with Version 2.0 changed to Version 3.0. Even the
manuals are the same.

Hope it helps.

-- 
==============================================================================
Tooraj Enayati     Melbourne     Australia     tooraj@daneel.rdt.monash.edu.au
Monash University       Robotic and Digital Technology       (Graduate/Alumni)
==============================================================================
Newsgroups: comp.os.ms-windows.programmer.misc
From: yab@cs.brown.edu (Yashesh Bhatia)
Subject: Books for a novice programmer
Organization: Brown Computer Science Dept.
Date: Tue, 29 Dec 1992 22:50:45 GMT



Hi, 

I have just begun programming on the Windows platform. In order to get a better
understanding of the system, I need to buy a couple of good books that describe

1. DDE
2. DLL
3. OLE

and other features.

Any suggestions ???


I have heard that Programming Windows 3.1 - Charles Petzhold 
is a very comprehensive programmers manual (??).

 


-- 
- Yashesh Bhatia yab@cs.brown.edu
From: avsht@sph.spb.su (Alexander Shturm)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: WEP, WEP, WEP...
Date: 3 Jan 93 23:39:18 GMT
Reply-To: avsht@sph.spb.su
Organization: Center SuperPhysica

Hi netters!

This is piece of SDK 3.1's manual:

-> In some low-memory conditions, WEP can be called before the library
-> initialization function is called and before the library's DGROUP
-> data-segment group has been created. A WEP function that relies on the
-> library initialization function should verify that the initialization
-> function has been called.

1. What conditions do they mean?
2. What is "library initialization function" in this context?
   Is it LibMain?
3. Who may explain me WHEN & WHY WEP could be run BEFORE LibMain ???!!!

Thanks for any help.

Regards,
/Alex
-- 
Alexander Shturm  ||  St.-Petersburg  ||  Internet: avsht@sph.spb.su
================  ||   Russia (xSU)   ||  FidoNet:  2:5030/8.18, /43.18
Tel.: +7-(812)-233-9148 (home)   +7-(812)-310-4631 (office)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: MFC and Borland IDE
Organization: Energy, Mines, and Resources, Ottawa
Date: Mon, 21 Dec 1992 21:19:33 GMT

In article <1992Dec18.035645.3257@microsoft.com> stevesi@microsoft.com (Steven Sinofsky) writes:
>In article <1992Dec16.194955.19597@kth.se> d88-jwa@dront.nada.kth.se (Jon Waette) writes:
>>In <61589@aurs01.UUCP> lynch@aurs01.uucp (David Lynch) writes:
>>
[...stuff about OWL vs MFC deleted...]
>
>The October issue of Dr. Dobbs has a review of several application
>frameworks for Windows, most notable OWL and Microsoft's MFC.
>
>The task was for each vendor to write a program based on a third
>party specification.  In this case we were asked to write a hand-
>writing browser.  This was a non-trivial application (imho).
>
>The end result was (quoting the stats from the magazine):
>
>                   OWL      MFC
>Lines of Code     3398      934
>EXE size(bytes) 56,848   46,536
>
>The OWL executable also requires 3 DLLs totalling 312,640 bytes.  MFC
>is a stand-alone EXE.

	Did anyone write it using plain C and the Windows API?  It
	would be nice to have those numbers for comparison also.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)