HDTenEightyP/NetNews huggingface dataset:
From: stevesi@microsoft.com (Steven Sinofsky)
Subject: Re: problems with CTL3D.DLL
Date: 31 Dec 92 21:58:14 GMT
Organization: Microsoft Corporation

In article <1huff6INNag0@cs.tut.fi> pk64380@kaarne.cs.tut.fi writes:
>From article <1992Dec31.021603.21231@emr1.emr.ca>, by jagrant@emr1.emr.ca (John Grant):
>> CTL3D.DLL is provided by MS on CI$ and at ftp.cica.indiana.edu
>> (in vendors... - sorry I forget the exact location or filenames,
>> but it was posted here recently).  It provides 3d effects for
>> listboxes, comboboxes, etc (finishing up what they started with
>> 3d buttons).
>    /vendor/microsoft/developer-network/techsamp/3-31.zip
>     
>> Problems with CTL3D.DLL
>> -----------------------  
>>   1. before *anything* in your app runs (i.e. even before you check for
>>      'first instance', something in CTL3D.LIB (linked in) tries to find
>>      CTL3D.DLL.  It appears to look in at least 3 directories:
>> 	- ...\windows
>> 	- ...\windows\system
>> 	- the application's home directory (GetModuleFileName)
>>      (I tried placing it in each of the 3 directories to see
>>       what it was looking for and where).
>> 
>>      If it can't find CTL3D.DLL, it chokes and displays:
>> 	+----------------------+
>> 	|     File Error       |
>> 	| Can't find CTL3D.DLL |
>> 	+----------------------+
>>      and then terminates the application before it even gets a
>>      chance to run.
>
>   Yes, but that's Windows itself. Before executing a single line of the 
>   application it will try and load all the DLL's needed (specified
>   when linking).
>   If you don't want this, you might try LoadLibrary and GetProcAddress
>   (or whatever, never tried myself - so don't ask how to do this. SDK
>    reference should be able to help)
>
>-zi

If you do not wish to implicitly load the DLL as above, you can
use a LoadLibrary call on the DLL, and then to call functions
you use a GetProcAddress and cast to the correct type for the
prototype.  This involves some bookkeeping and annoying casts
but enables your application to run without the DLL present (if
that is possible).  When you do this you do not link with the 
import library (the CTL3D.LIB file).

If you wish to override the Windows system modal dialog and
put up your own failure dialog and handle things yourself
then you can use the SetErrorMode API to turn off that dialog
(but be sure to handle the error yourself).  This will only
work when you use LoadLibrary explicitly, since Windows will
load the DLL implicitly before your WinMain is started (and
before you can SetErrorMode).


-- 
Steven Sinofsky
stevesi@microsoft.com
Disclaimer: I don't speak for Microsoft, BillG does that.
Newsgroups: comp.os.ms-windows.programmer.misc
From: kevr@is.morgan.com (Kevin Reilly)
Subject: DDE in VisualBasic
Organization: Morgan Stanley & Company
Distribution: usa
Date: Wed, 30 Dec 1992 14:44:14 GMT


I have just recently installed the Professional Version of VisualBasic
and tried using there sample DDE code from the help file and also the
DDE code in samples\dde. I have not been able to get either one
working. The help file code tells me DDE agent not responding.

I figure I must be doing something wrong but have as yet not
discovered the most obvious. Can anyone out there enlighten me.

Thanks in advance!!

Kevin M. Reilly
Newsgroups: comp.os.ms-windows.programmer.misc
From: sjsobol@wariat.org (Steven J. Sobol)
Subject: RTF specs?
Organization: APK Public Access Unix * Cleveland, OH
X-Newsreader: TIN [version 1.1 PL7]
Date: Sat, 2 Jan 1993 18:28:27 GMT


Does anyone know how to get ahold of the specs for RTF?

-- 
Steve Sobol   Head Cheerleader, APK Public Access *nix/Internet
(216) 481-9436 <2400 baud>     (216) 481-9425 <v.32bis, TurboPEP>
Telnet: wariat.org   To register: send e-mail to info@wariat.org, or
log in to BBS and download file 'user.new' from file area 2.

Also President of The Tiny Software Co.   E-Mail Address: sjsobol@tiny.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: yvon@ramsey.cs.laurentian.ca (Yvon Lavoie)
Subject: Re: Windows programming. What product to use?
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Tue, 29 Dec 1992 04:58:53 GMT

In <BzzL3o.J2J@sci.kun.nl> leonp@cs.kun.nl (Leon Pillich) writes:


> Hello everybody,

> I'm considering programming for intel-based pc's in the
> near future.
> I do not know yet whether I will program for os2/2.0
> or for windows 3.1.
> I will be doing this programming to gain experience on
> such systems, since up to know I have mainly programmed
> unix systems, e.g. Sun sparc-stations with X-Windows/
> Open Look Interface Toolkit and RS6000 with 
> X-Windows/OSF-Motif. Since I am currently unemployed I do 
> have some time to gain experience.
> 
> Which programming language/environment do you recommend?
> (I prefer C/C++, Pascal or Modula2/3.)
> What's the difference between Turbo C++ and Borland C++.
> I see them both being advertised for very different prices!
> Are they both for windows?

> Thnx, for any info

>Leon Pillich
>University of Nijmegen, Holland
>email: leonp@cs.kun.nl
>-------------------------------------------------------------
> Life is what's happening when you're making other plans ...
>                                      John Lennon



I strongly recommend using Borland C++ 3.1 with Applications Frameworks.  It is
an excellent environment to program in.  The main difference between Turbo C++
and Borland C++ is that Turbo C++ for Windows is an entry level Windows 
compiler while Borland C++ is a professional DOS and Windows compiler.  The
programming environment in Windows is nearly identical in both versions but
the Borland compiler is faster and more efficient.

The main advantage of using a Borland compiler is that you get the Object
Windows class libraries.  These libraries save you a lot of overhead when doing
Windows programming.  (Note: The Object Windows class libraries is not included w
with Borland C++, only with Borland C++ and Application Frameworks.  Make sure
you get the right version. The Object Windows is also included with Turbo C++)


Yvon Lavoie
From: bonobo@Ingres.COM (David Victor)
Subject: Opinions on Microsoft QuickC for Windows?
Reply-To: bonobo@Ingres.COM (David Victor)
Organization: Ask Computer Systems Inc., Ingres Division, Alameda CA 94501
Distribution: na
Date: 30 Dec 92 19:16:10 GMT

Has anyone out there had much experience with QuickC for Windows?  I was
just wondering if I could get an opinion as to its usefulness.  Are there
other CASE tools which blow away QuickCase:W?

Thanks!

-David Victor
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: whedon@netcom.com (Bill Whedon)
Subject: Re: MFC and Borland IDE
Keywords: Opinions are just that, even mine, but here it is
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Wed, 23 Dec 1992 04:52:38 GMT

I am a heavy user of MSC/C++ 7.0 with patches, and have been since it came 
out.  I'm programming a very large system (100+ source files, executable in
excess of 250K, 3 large DLLs, graphics/computationally-intensive, and a BIG
user of memory and DASD), and have mysteriously failed to hit One Single Snag
in the compiler, linker, or memory management!  Damn!  My product works!  I
must be doing something All Wrong, huh, since, by golly, I'm using the dread
Incredibly Buggy and slow (2.5 minutes compile and link my ENTIRE app) MSC7,
and have had absolutely No problems with it which could not be ultimately
traced to my own error!  WHAT AM I DOING WRONG, MICROSOFT???  Can someone out
there please help me?  At this rate, if my product comes in late, I may even
have to take the blame MYSELF!

On the semi-serious side, I, also, think the PWB bites, and use an outboard
editor and command-line compile (in a window, though... not quite _that_
gluttonous for punishment!).  I've used BC++ 3.0, and just got (haven't yet
installed) 3.1 with OWL and Application Frameworks, and find Borland's
products to be quite good, too.  But.  MSC has historically given me more
stable .EXEs, better optimized, especially for larger projects.  We shall
see whether that still pertains, as I intend to do my new product under BCC
as a testcase.

It's apparently just as easy to get opinionated to the point of bigotry in
the compiler arena as it is in languages.  I would simply offer the advice
of a few years in the business, that you look first to your design and code
for problems before trying to blame the compiler.  Calls to mind an old saw
heard in reference to housebuilding:  "It's a poor workman who blames his
tools."... 

Happy holidays to all,
Bill Whedon   whedon@netcom.com



-- 
-- If I ain't programmin' I ain't awake! --




Newsgroups: comp.os.ms-windows.programmer.misc
From: "chris snell" <chris.snell@canrem.com>
Subject: all about icons
Reply-To: "chris snell" <chris.snell@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 3 Jan 93 10:39:01 EST

Hello, world.

I'm having a number of problems with icons, but I'll just ask you two 
questions (for now):

1/ How do I create a monochrome cursor from an Icon? 
   I have an MDI window in which every child window will draw its own
   icon, picked from a common pool of hIcons. Each window is of a common
   class, and the class icon is set to null, so each child window receives
   wm_Paint messages, and draws the appropriate icon. So far, so good. The
   problem arises when an iconized child is moved, the default drag cursor
   is used instead of a cursor shaped like the appropriate icon. I must
   respond to the wm_QueryDragIcon message, but to do so I must create a
   monochrome cursor shaped like the appropriate icon. How?

2/ How can I get the Width, Height, Planes, BitsPixel, ANDBits and XORbits 
   of an icon given its handle?
   This would also help me with problem number 1, but I need it for a
   different purpose. I have an application that displays millions upon
   billions of icons (well, ok, maybe a couple hundred). Seldom are more
   than 20 displayed at a time. I would like to free the resource space of
   icons not being displayed by creating an icon pool in global memory,
   copying the icon Width, Height, Planes, etc. information to the memory
   pool, then destroying the icon handle. If it becomes neccessary to
   display the icon, I could then use the CreateIcon API function to
   recreate the icon. But for this to work I need to get the Width,
   Height, Planes etc information from the original hIcon. Again, how?

3/ Is there a good 'All about Icons & Bitmaps' book anyone can recommend?

Ok, ok, ok, so I can't count.
Thanks to all who respond,
                                        chris.snell@canrem.com

---
WMR #1 Of the things I've lost, I miss my mind most
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.ms-windows.programmer.misc
From: loureiro@fiu.edu
Subject: Re: How to load bitmaps from file
Organization: Florida International University.
Date: Mon, 21 Dec 1992 15:01:54 GMT
Originator: loureiro@serss0

In article <runehh.121.724901038@dhhalden.no> runehh@dhhalden.no (RUNE HALFDAN HOLST HUSEBY) writes:
>Anyone have any good source-code for loading bitmaps from file?
>
>I have tried the example 'bscrlapp' that comes with Borland C++ 3.0, 
>but it will only show the bitmaps in 16 color. So, if anyone have anything 
>that can help me, with source-code, pointers to books/ftp-sites witch can 
>help me, or anything else, pleeeaaseeee let me know.
>
>Thanks in advance!
>
>
>/-----------------------------+--------------------------------------------\
>|  Rune Halfdan Holst Huseby  |  Ostfold Regional College, Halden, NORWAY  |
>|-----------------------------+--------------------------------------------|
>| Real programmers never work 9 to 5. If any real programmers are around   |
>| at 9 am, it's because they were up all night.                            |
>\--------------------------------------------------------------------------/


Sorry Rune,

I don't have the answer(s) to your question, but the same doubts.

I've read the on line help, the examples, some books, and I gess I'm real
dumb, because I still can't load my bitmaps.

So, if you get the answer(s), please, send me a copy ...

                  from loureiro@fiu.edu (Leonardo)

And by the way, it's 10 am now, and I've been up all night working
on this very problem ... (so pleeeease help me!)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: dave@harlqn.co.uk (Dave Emmerson)
Subject: Re: very large list boxes
Organization: Harlequin Limited, Cambridge, England
Date: Tue, 22 Dec 1992 13:37:36 GMT

Sometimes you just *have* to have all 4000 items available in the
list- I have a commercial application for the motor industry, do you
have _any idea_ how many different parts those guys need to keep tabs
on? And how many different ways they might try to name the same part?
So, this app gives them ALL the part names sorted numero- alphabetically 
in a single list, so that they can browse it when necessary - there's
also a button to allow them to search for a string fragment if they're
sure it's in there somewhere, but not where they thought.
It takes a couple of seconds to fill the list box (reading from disk
with no cache hits), but they don't really notice this, they're
engineers, not typists, and have generally only got two or three
characters in the queue by the time the list is displayed, and are
still looking at the keyboard... :-)
Over the hols, I'll have to write my own handler, since I'll need to
be able to cater for at least 10K parts, so I guess that I'm a tad
disappointed with MS too, but I have to say that the speed of what
they _have_ supplied is quite impressive, and I'm not known for
praising Microsoft often.
If any of you are _really_ wary about writing your own handler, mail
me sometime in the New Year, and I'll send you my stuff BWO an
example.

	Dave.

-----
Disclaimer - I never claimed anything!
From: ee_d270@ceres.kingston.ac.uk (Richie Poo's)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Bitmaps on Buttons wish BC++
Date: 22 Dec 1992 13:53:05 -0000
Organization: Kingston University, Kingston-upon-Thames
Distribution: world
NNTP-Posting-Host: ceres.kingston.ac.uk


Hi.

I am trying to put pictures on buttons in dialog boxes will the
resource workshop supplied with BCC++.

Does anyone know how to do this as I cant get it to work.

Thanks a lot

ee_d270@king.ac.uk
From: tope@enea.se (Tommy Petersson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: AUX Problem in Windows 3.1
Date: 28 Dec 92 13:59:48 GMT
Organization: Enea Data AB
X-Newsreader: Tin 1.1 PL3

ttoupin@zephyr.cair.du.edu (Tory Toupin) writes:
: comp.os.ms-windows.programmer.misc         
: comp.os.ms-windows.misc                      
: 
: 
: HELP :
: 
: On occasion I get an "Unable to write to AUX" message in Windows 3.1.  I can't
: find any reference to such a message in the Windows Resource Reference(s)
: and related documentation.
: 
: I have AMI Bios (1990?), 386/33, 4Meg Ram,  serial ports, INTEL MathCo.
: 
: The problem started after I got the serial cards installed.  The original
: installation screwed up the INTs and used the wrong adrses (i.e. COM1=COM2=COM3).
: 
: Any help appreciated.
: 
: Thanks in advance,
: 
: Ed Toupin
: toupine@casi.cba.du.edu
: ttoupin@zephyr.cair.du.edu

This message usually pop's up when you're running the Windows Kernel in
debug mode. If I do that, and try to access the scanner connected to a
SCSI card, I get the same message.

-- 
=============================================================================
 Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
=============================================================================
Newsgroups: comp.os.ms-windows.programmer.misc
From: "chris snell" <chris.snell@canrem.com>
Subject: hi there!
Reply-To: "chris snell" <chris.snell@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 3 Jan 93 07:53:47 EST

to: chris.snell@canrem.com
d.

Hi! This is a message that you sent to yourself on Jan 3, 1993.

---
WMR #1 I'd give my right arm to be ambidextrous..
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.ms-windows.programmer.misc
From: mkohtala@lesti.hut.fi (Marko Kohtala)
Subject: Help me with Windows virtual DOS machines
Summary: How to manage EMS/XMS memory handles under Windows?
Keywords: SRDISK, EMS, XMS, DOS, Windows
Reply-To: Marko.Kohtala@hut.fi
Organization: Helsinki University of Technology, Finland
Date:  2 Jan 93 13:33:16 GMT

I have written a resizeable EMS and XMS RAM disk that is available in
Simtel20 ramdisk directory as SRDSK200.ZIP. 

Recently I noticed that it does not function under Windows 3.1
Enhanced mode and found out about two problems:

1. The EMS 4.0 supported by Windows VDM does not implement function 24
(Move Memory Region) correctly, but gives always an error (invalid
handle or too big expanded memory region or something).

2. Windows takes good care of freeing the memory allocated to a handle
when the VDM is finished. This causes the memory that the RAM disk
uses to be lost.

I give up on the first problem, but on the second I'd like to know if
there is any way to tell Windows not to free the handle allocated in
the VDM.

I use a DOS executable to allocate the memory for the RAM disk and the
executable modifies directly the structures in the device driver to
let the driver know which handle to use to access the memory.

I do not want to add any IOCTL code to the device driver, but am
interested if it would help to use IOCTL to make the driver allocate
the memory - if the Windows does not free the handle allocated "in
DOS" when the VDM is finished. 

If nothing more, an email address to someone in Microsoft and willing to
help would be good.

Thank you.
-- 
---
Marko Kohtala - INTERNET:Marko.Kohtala@hut.fi, mkohtala@otax.tky.hut.fi
Student at (not representative of) the Helsinki University of Technology
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Intercepting Windows Events
Organization: Vonnegut Tent Rentals, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 21 Dec 92 20:34:59 GMT

Thomas Kinsman (thomas@acadia.Kodak.COM) wrote:
> 
> 
>     There is  a  product  I've  seen  advertised  which  makes  noises  on
>     different  windows  events  (opening, maximizing, minimizing, etc...).
>     Is the ability to intercept Windows/3.1 events documented in the  SDK,
>     and if so where?
> 
>     Thanks in advance.
> 
>     - Thomas B. Kinsman, Rochester, NY
> --
> thomas@acadia.kodak.com    Voice: 716/477-2831(w)	     Fax: 716/722-0160
> Thomas B. Kinsman, Eastman Kodak Co., Flr 3, Bldg 65, RL, Roch., NY 14650-1816

Hi Thomas!

You must be referring to WHOOPS.  Its an interesting concept, but given that
the PC speaker driver suspends all other activities while it puts out the
sound, I would find it tiresome to tag every event this way.  Actually doing
the trick is probably a matter of putting in a message filter hook function.
Look at SetWindowsHook.  The SDK used to warn that this degraded the 
efficiency of the system to intercept all messages.  It might be different 
now.

On the subject of newsgroups, comp.ms.windows.programmer has fallen into 
disuse since the comp.os. groups came on line.  The comp.os.ms-windows group
had to be subdivided because high volumes of "Is Not! Is Too!" messages were
detracting from the usefulnesss of the group.  The protagonists were arguing
about whether MSW is an operating system or a shell.  They have been 
banished to a .advocacy subgroup.

--
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
Newsgroups: comp.os.ms-windows.programmer.misc
From: dbushong@wang.com (Dave Bushong)
Subject: Re: Is there tool to write for Windows on C quickly?
Organization: Wang Labs, Lowell MA, USA
Date: Thu, 24 Dec 1992 21:46:37 GMT

steve@monu6.cc.monash.edu.au (Steve Balogh) writes:

>In article <AAAxbBhue5@numond.msk.su> agpro@numond.msk.su writes:
>>
>>     ==== The program is so long, but the life is so short...====
>>
>>                                       Andrew M. Gershun.
>>
>>P.S.S. Am I naives boy in my "far away Russia"? Maybe you write you
>>  program with same tools as I dream? Or, maybe, there is other
>>  style than "like-Petzold" or "like-SDK" style? Plase answer me!

>I agree that writing a Windows program required a lot more effort than writing
>a "simple" C program.

>I think that the use of long names with some uppercase letters for API calls
>and predefined message names is very useful when trying to write code which
>is self-documenting. Predefining large slabs of code and only aloowing the
>user to specify I_WANT_A_WINMAIN() may be reasonably for most applications,
>but there are people who wish to modify certain parameters or some of the
>functionality of WINMAIN. A general purpose language should allow flexibility
>and not limit the programmer.

>If you find that programming for Windows is too verbose and you wish to remain
>with C and SDK (or similar), I suggest that you build up a library of skeleton
>code wich you can use over and over with any new project. All you need do is
>fill in the blanks to create a new program. This saves you much typing, but
>still allows for full flexibility and program documentation.

>Failing this, there are many "higher level" application generators which don't
>require as much work from the programmer.


>Regards,
>         Steve

Quick C for Windows includes QuickCase, which lets you paint a picture
of what you want the application to look like on the screen, and then
it pumps out all the mundane 'C' code to do it.  Then you edit that,
and add the meat of the program (the actual functionality) and if you
want, you can also edit the parameters that you (Steve) mentioned in
your reply.

It's a reasonable compromise.

Dave
-- 
Dave Bushong, Wang Laboratories, Inc.   Amateur Radio Callsign KZ1O
Project Leader, OCR products            kz1o@n0ary.#noca.ca.na
Internet: dbushong@wang.com
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: garylang@netcom.com (Gary Lang)
Subject: Re: MFC and Borland IDE
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 29 Dec 1992 16:42:46 GMT

"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
Xref: sparky comp.os.ms-windows.programmer.misc:4543 comp.os.ms-windows.programmer.tools:1845