HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Setup Utility for Windows Applications
From: stefan@olson.acme.gen.nz (Stefan Olson)
Date: Sun, 13 Dec 92 09:29:31 +1200

In <1992Dec10.225430.27909@delfin.com> dan@delfin.com (Dan Stickel) writes:
>jch@dcs.ed.ac.uk (Jen Cheng) writes:
>: Could you anybody recommend a utility that installs a Windows
>: application? 
>: 
>: All I require is
>: 
>:   (1) copying files from floppy to a user specified directory and
>:       maybe to some system directories,
>:   (2) create a program group, and
>:   (3) create a few program items.

>I have written a fairly nice installation program that does the above
>things, complete with Windows user interface and basic nag-ware and
>honesty screens for licensing protection.  It works for Win3.0 and 3.1.
>If more people express an interest, I will spend a day or two cleaning it 
>up and make it available as inexpensive shareware.

Well I have written a fairly nice installation program that does the 
above things and I have released it and it is FREE!!

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: spcsup@solomon.technet.sg (Wong Fay Yu)
Subject: Re: Novell interrupt in Win Standard Mode
Organization: TECHNET, Singapore
X-Newsreader: TIN [version 1.1 PL8]
Date: Fri, 18 Dec 1992 09:37:03 GMT

Lim Chieng Fai (lchiengf@trantor.dso.gov.sg) wrote:
: I am using Novell 3.11 and is writing a Windows application that
: generates novell interrupts. In particular, I am using interrupts
: E3h 15h and then E3h 16h to get the current login name. My program
: runs fine on Win3.1 in 386-enhanced mode. However, when I run Win3.1
: in Standard Mode, the same program hangs.

: Any advice ?

: Thanx-in-advance.

You need TBMI2.EXE to make your Winapp to work with Windows in 
Standard mode. It should be available with Novell's C interface
for Windows.  If you don't have the SDK, try the Novell forums.

:-}

Newsgroups: comp.os.ms-windows.programmer.misc
From: Steve_Goyette@mindlink.bc.ca (Steve Goyette)
Subject: Moving Lines
Organization: MIND LINK! - British Columbia, Canada
Date: Tue, 15 Dec 1992 23:31:48 GMT

HI all,

        I would like to be able to plot a line between two points with
handles on each end.  And then be able to re-position the line by draging the
handles. I can do this by capturing the mouse moves and re-painting, but I
don't want to have to re-paint a large area (Which is used by a drawing)  Any
ideas???



--
------------------------------------------------------------------------------

Steve Goyette                    |       Email : Steve_Goyette@MindLink.BC.CA
Software Engineer                |       Cserve: 71763,1435
Abstract Automation Limited      |       Phone : (604) 421-8864
                                 |       Fax   : (604) 421-7722 (Call first)
-------------------------------------
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Thu, 17 Dec 1992 21:48:21 GMT
Subject: Re: Soundblaster & VB
Organization: Hewlett-Packard, Greeley, CO
Newsgroups: comp.os.ms-windows.programmer.misc

In comp.os.ms-windows.programmer.misc, avlb@aplcomm.jhuapl.edu (A V Louis Biggie) writes:

>Is there a toolkit for playing voice and midi files using a Soundblaster Pro?

>Thank you.

>(I am using VB 1.0, but have 2.0 pro on order)

>Louis

No toolkit required...  Since you have VB 2.0 pro on order you will get
a multimedia tool that will probably do everything you need (except record).

With VB 1.0 you could either order a toolkit from several vendors or you
could write your own by using the Windows 3.1 MCI api.

- Galen -
Newsgroups: comp.os.ms-windows.programmer.misc
From: rryan@panix.com (Rob Ryan)
Subject: Re: F****d Borland forgot to define the message in BC 3.1's windows.h !!!!!
Date: Tue, 15 Dec 1992 21:17:23 GMT
Organization: Panix, NYC

In <1992Dec9.045940@avsht.sph.spb.su> avsht@sph.spb.su (Alex V. Shturm) writes:

>Trying to recompile my Windows project under BC 3.1, I was wondering
>very much when compiler suddenly reported me that he doesn't know
>the message WM_PAINTICON. I looked into windows.h and didn't find it!!!
>Although nearest win30.h file (former windows.h from BC 3.0)
>defines it.
>
>1. Is it Borland mistake or mine?
>2. What is the best way to avoid it:
>   - to feed bcc the option -DWM_PAINTICON=0x0026
>   - to change windows.h by adding #define WM_PAINTICON 0x0026
>   - another way

According to the Fall issue of Microsoft Develop Network News, Microsoft
deliberately removed WM_PAINTICON because "[t]his unnecessary message was
extremely confusing to developers and caused some version compatibility
problems for Windows."

They suggest that you (if you don't want to just register the icon under
RegisterClass()) use the WM_PAINT message, and check IsIconic(hWnd) to
see if it's an icon or not.  Their sample code suggests that you'd have
something like:

    case WM_PAINT: {
        PAINTSTRUCT ps;
        if (IsIconic(hWnd)) {
            BeginPaint(hWnd, &ps);
            DefWindowProc(hWnd, WM_ICONERASEBKGND, (WORD) ps.hdc, 0L);
            DrawIcon(ps.hdc, 0, 0, hIcon);
            EndPaint(hWnd, &ps);
            return 0;  /* microsoft's sample didn't have this "return", */
                       /* but we want it, don't we?                     */
        } else {
            return DefWindowProc(hWnd, message, wParam, lParam);
        }
     }

     case WM_ERASEBKGND:
        if (IsIconic(hWnd))
            return TRUE;
        else
            return DefWindowProc(hWnd, message, wParam, lParam);

     case WM_QUERYDRAGICON:
        return (LONG) (WORD)hIcon;


They also point out that (a) you should register a NULL icon with
RegisterClass if you're doing it yourself; and (b) "You might also
want to use the new Windows v3.1 DDE capabilities of the Program
Manager to get the icon the user has associated with you application.
Doing this will give you changeable icons, just as MS-DOS applications
do."

Hope this helps.  In answer to your question of how to get your code
to use WM_PAINTICON, the answer is, unfortunately, change you code so
you don't use WM_PAINTICON.  Given that it's no longer supported, you
aren't guaranteed that later version of Windows will even have this
message.  It looks like v3.1 still does (though undocumented), but
you shouldn't rely on it.

-- 
 Rob Ryan
    rryan@panix.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: scott@unixland.natick.ma.us (Scott Evernden)
Subject: Re: F****d Borland forgot to define the message in BC 3.1's windows.h !!!!!
Organization: Unixland Public Access Unix & Think_Tank BBS
Date: Mon, 14 Dec 1992 02:18:10 GMT

In article <1992Dec9.045940@avsht.sph.spb.su> avsht@sph.spb.su writes:
>Hi, people!
>
>Trying to recompile my Windows project under BC 3.1, I was wondering
>very much when compiler suddenly reported me that he doesn't know
>the message WM_PAINTICON. I looked into windows.h and didn't find it!!!
>Although nearest win30.h file (former windows.h from BC 3.0)
>defines it.
>
>1. Is it Borland mistake or mine?
>2. What is the best way to avoid it:
>   - to feed bcc the option -DWM_PAINTICON=0x0026
>   - to change windows.h by adding #define WM_PAINTICON 0x0026
>   - another way

1.  Your mistake, sort of.  WM_PAINTICON doesn't appear in either
Borland's or Microsoft's windows.h   However, according to my handy
copy of "Undocumented Windows", WM_PAINTICON is documented/defined
only in the 3.1 DDK and WIN32 API.

2.  Either approach is best...

-scott
----
GrayMatter Software Co.              Holliston, MA   508 429-7867
spe@world.std.com                                   scott@opl.com    
user interface and application development technologies and tools
From: rla@media03.UUCP (Raymond van der Laan)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DLL-question
Keywords: Alloc, Peekmessage
Date: 15 Dec 92 14:47:18 GMT
Organization: Mediasystemen, Netherlands

Is this possible in a DLL:

    ... x;
    ... y;

    f1 ()
    {
        y = GlobalAlloc(...);
        x = GlobalLock(y);
        PeekMessage()
        if ours then memcpy(x,...,...);
        else Translate & DispatchMessage
        ...
    }

    f2 (a)
    {
        memcpy(a, x, ...);
        GlobalFree(y);
    }

The caller calls f1, then f2.
-- 
Raymond van der Laan           Email: sun4nl!media01!rla
Mediasystemen BV               Tel. : +31 23-319075            
Haarlem                        Fax  : +31 23-315210
The Netherlands                                   
                                    'There is no masterplan.
                                     This is what we do now.'
                                            - Stuart Adamson
Newsgroups: comp.os.ms-windows.programmer.misc
From: srao@quads.uchicago.edu (Shanta Rao)
Subject: Displaying Text in Edit Window(s)
Keywords: EDIT TEXT 
Reply-To: srao@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Thu, 17 Dec 1992 22:44:46 GMT

 In an Edit Window, is there any way to display text in
 a formatted form, other then just dumping the text by using
 SetWindowText(?).
 From my experience, SetWindowText does not seem to recognize "newline (\n)" 
 but it accepts tab characters(\t) --- is this right?

 Any suggestions? please send me an e-mail

 Thanks 

bs/- 
-- 
-----------------------------------------------------------------------
srao@quads.uchicago.edu                                 _ . /|
                                                        \'o.O'
Newsgroups: comp.os.ms-windows.programmer.misc
From: martens@prl.philips.nl (martens p)
Subject: Re: quick C and FAQ
Organization: Philips Research Laboratories, Eindhoven, The Netherlands
Date: Mon, 14 Dec 1992 11:54:54 GMT

In article <Bz2I76.337@cs.columbia.edu> smadja@cs.columbia.edu (Frank Smadja) writes:
>1. What are the limitations of Quick C?  Can you link any library or DLL
>with it?  Can you use all the SDK ? Can we build a DLL w/ it? etc.   I did
>not find any reference to that in the newsgroup and in the FAQ, which leads
>me to my second question:
>

Resp. yes, yes, yes. But QuickC/Win does not come with SDK 3.1 and cannot 
compile C++.



Peter Martens
Newsgroups: comp.os.ms-windows.programmer.misc
From: kress@kentrox.uucp (Bill Kress)
Subject: DCB.TxDelay, is it really not implemented?
Organization: ADC Kentrox, Portland OR
Date: Mon, 14 Dec 1992 19:46:52 GMT

I wrote a program that communicates with some hardware devices.  These
devices are just a tad timeing sensitive, I think.  If I dump more than
a few chars to them in a 9600 baud batch it doesn't recognize certian ones.
In looking through the manual, the TxDelay looks perfect for what I would
like to do, but right under the manual entry for this on page 269 it says
'not currently used'  is this true?  will it ever be supported???

Is there a windows wish list???

Thanks.                   
		Bill Kress
From: jacs@aiai.uucp (Julian Smart)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problem with large DGROUP segment, MS C7
Summary: How can I overcome error L1074?
Date: 12 Dec 92 18:02:04 GMT
Reply-To: jacs@aiai.uucp (Julian Smart)
Organization: AIAI, University of Edinburgh, Scotland

Hi,

I'm compiling a largish Windows program with MS C7, large model, and linking
gives me an L1074 error - DGROUP segment larger than 64K.
How can I get round this, or can I?  For some reason,
generating a MAP file doesn't work (the file is empty) although
I've given the /MAP:FULL and /LI options to the linker.

Heeeelp....!

Thank you for any tips.

Julian Smart
jacs@aiai.ed.ac.uk
From: bu254@cleveland.Freenet.Edu (Stephen Groundwater)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: drag & drop server
Date: 17 Dec 1992 01:06:38 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: bu254@cleveland.Freenet.Edu (Stephen Groundwater)
NNTP-Posting-Host: hela.ins.cwru.edu


In a previous article, chris.snell@canrem.com ("chris snell") says:

>Can anyone tell me how to implement a drag & drop SERVER for Win3.1?
>
>What I have so far:
>1/ capture mouse
>2/ get point where user released button
>3/ get parent window with WindowFromPoint(drop_point)
>4/ test ws_ex_AccetpFiles style for dest window, if set then proceed
>5/ ??? get a handle to the ??? dropped filenames structure ???
>6/ post the wm_DropFiles message to the destination window
>
>My problem is step 5. How do I get a handle to the drop point & drop file 
>list that is passed in the wm_DropFiles message? Both the DragQueryPoint 
>and DragQueryFiles functions use this handle. If it is just a handle to a 
>shareable memory block then what is the record structure of that block?
>
>I program in Turbo Pascal For Windows, but I can likely understand 
>examples in C if you must (been a coupla years since I wrote C, but I 
>can still puzzle it out).
>
>My email address I believe is chris.snell@canrem.com. I will compile and 
>post a result back to this conference.
>
>Thanks in advance. Chris.
>
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.
 
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.
 
Example hDrop.
 
08 00 14 00 13 00 00 00 43 3a 5c 44 4f 53 00 43 	........C:\DOS.C
3a 5c 57 49 4e 44 4f 57 53 00 43 3a 5c 41 55 54 	:\WINDOWS.C:\AUT
4f 45 58 45 43 2e 42 41 54 00 00			OEXEC.BAT..
 
I don't know how many trailing NULLs to put on as GlobalSize return's
a value that is always mod 32, so I put on 2, in file manager, the rest
of the block is filled with NULLs up to its mod 32 size.
 
This is a drop at 20,19 of the directories C:\DOS and C:\WINDOWS, and the
file AUTOEXEC.BAT .
 
You should GlobalAlloc a block big enough for the header, and following
file names, and use the flag GMEM_DDESHARE when allocating.


Xref: sparky comp.os.ms-windows.programmer.misc:4194 comp.os.ms-windows.programmer.tools:1693
From: mizo@sevax1.cse.canon.co.jp (Hideo Mizoguchi)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Subject: Re: VB and databases.
Date: 14 Dec 92 00:56:58 GMT
	<1992Dec9.160604.4529@titan.ksc.nasa.gov>
Distribution: world
Organization: Canon Inc., Kawasaki , JAPAN
In-reply-to: prevo@blot.ksc.nasa.gov's message of 9 Dec 92 21:06:03 GMT


 >>>>You might want to look at Microsoft Access. Its a brand new relational
 >>>>database product from Microsoft. It supports data, sound, images, etc in
 >>>>the database. I'd heard good things about it. I saw a demo of the product
 >>>>and I'm sold. The "script" language is amazingly "VisualBasic" like
 >>>>(imagine that :-).

I have not seen the product here in Japan yet, but does it allow you
to write a DLL and use it from inside Access just like VB does?

Hideo Mizoguchi
Canon Inc., Japan
Newsgroups: comp.os.ms-windows.programmer.misc
From: misra@fsg.com (Mark Israel - Fusion Boston)
Subject: How to make a Long from ints in VB
Organization: Fusion Systems Group, Inc.
Date: Thu, 17 Dec 1992 13:48:54 GMT

This must be an easy question but I can't figure it out.  How do you 
make a long in VB from two integers.  This is necessary to send a WM_LBUTTONDOWNevent to a control or for many other windows calls.  In C you would use
the MAKELONG(hi,lo) macro.

Thanks in advance.

Mark.
-- 
---------------------------------------------------------------------------
Mark A. Israel
Fusion Sytems Group
misra@fsg.com        Voice: (617) 542-6130      FAX: (617) 542-6248
Newsgroups: comp.os.ms-windows.programmer.misc
From: avlb@aplcomm.jhuapl.edu (A V Louis Biggie)
Subject: Print Screen - Please Help
Reply-To: avlb@aplcomm.jhuapl.edu (A V Louis Biggie)
Organization: JHU/Applied Physics Laboratory
Date: Fri, 18 Dec 1992 14:11:20 GMT

I am writing the documentation to a program and want to dump several screens 
to the printer. The screens are VB (VB 1.0 and Dazzle VB) screens with  256 
color pictures.  I would be grateful for tips on how to get the best looking 
results.  I have the following tools:

Windows 3.1
Calcomp ColorMaster Plus (300 dpi, postscript color printer)
Macintosh (also connected to the Calcomp)
Photoshop for the MAC
MacDraw Pro
Colorlab (for windows)

Grateful for ideas.

Louis

My first attempt was to get a printscreen, save it as a TIFF file, pull it 
into Photoshop, and print to the Calcomp.  The results were appalling.
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Novice programmer question
Date: 14 Dec 92 19:20:47 GMT
Distribution: usa
Organization: PE-Nelson

In article <1992Dec13.204238.8073@ucsu.Colorado.EDU>, tylerd@rintintin.Colorado.EDU (TYLER DAVID CHARLES) writes:
|> I'll make this brief:
|> Why doesn't the following work?
|> 
|>   if (!hPrevInstance)
|>   {
|>     [normal stuff]
|>   }
|>   else
|>   //
|>   // If an instance is already running, just display it.
|>   //
|>   {
|>     if (IsIconic (hPrevInstance))
|>     {
|>       OpenIcon (hPrevInstance);
|>     }
|>     BringWindowToTop (hPrevInstance);
|>     return TRUE;                      // Or should this be FALSE?
|>   }

The routines IsIconic(), OpenIcon(), and BringWindowToTop() need window
handles, not instance handles.

Use FindWindow() (as one possibility) to obtain the window handle for the
first instance.  Assuming that you have the class name (used to register
the window class) in a variable, szClassName, you can do the following:

   .
   .
   .
   else
      {
      HWND hwnd = FindWindow(szClassName, NULL);
      if (hwnd)
         {
         if (IsIconic(hwnd))
            OpenIcon(hwnd);

         BringWindowToTop(hwnd);
         }
      else
         {
         MessageBeep(MB_OK | MB_ICONEXCLAMATION);
         MessageBox(GetFocus(), "Unable to find window of first instance",
                    NULL, MB_OK | MB_ICONEXCLAMATION);
         }

      return 0;
      }
   .
   .
   .

The return value doesn't particularly matter -- it *can* be interpreted
as an error code by the environment that spawned your application, but
Windows itself doesn't care.


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: skimmel@iiic.ethz.ch (Stefan Martin Kimmel)
Subject: Status Line in MDI Application
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Tue, 15 Dec 1992 08:22:36 GMT

I am currently programming an application using MDI. I want to use
a status line at the bottom of the application to display status 
information (like e.g. WfW).

Do I have to create an own "status line" MDI Child or is there an
easier possibility? 

Is there some sample code around (ftp)?

I am using MS C7. Thanks for your help

	Stefan

Stefan Kimmel				skimmel@inf.ethz.ch

Newsgroups: comp.os.ms-windows.programmer.misc
From: avlb@aplcomm.jhuapl.edu (A V Louis Biggie)
Subject: Soundblaster & VB
Reply-To: avlb@aplcomm.jhuapl.edu (A V Louis Biggie)
Organization: JHU/Applied Physics Laboratory
Date: Wed, 16 Dec 1992 19:39:56 GMT

Is there a toolkit for playing voice and midi files using a Soundblaster Pro?

Thank you.

(I am using VB 1.0, but have 2.0 pro on order)

Louis
From: davei@comp.lancs.ac.uk (Mr D Ingles)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: quick C and FAQ
Date: 18 Dec 92 10:53:14 GMT
Organization: Department of Computing at Lancaster University, UK.

In article <1992Dec14.115454.12708@prl.philips.nl> martens@prl.philips.nl (martens p) writes:
>In article <Bz2I76.337@cs.columbia.edu> smadja@cs.columbia.edu (Frank Smadja) writes:
>>1. What are the limitations of Quick C?  Can you link any library or DLL

Can someone tell me how one goes about upgrading QuickC for Windows for use 
with Windows 3.1 ? I heard somewhere that you had to use the libraries from
Microsoft C7  to do it. If this is the case, which files do I need, and how 
do I use them with QuicKC for Windows.

Davei
From: cuawj@dcatla.uucp (Andy Jacobs)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Accurate Timing In Visual Basic
Date: 16 Dec 92 13:37:43 GMT
Organization: Digital Communications Associates, Alpharetta, GA

How accurate do you need it?  The easiest way is to add a timer that increments
a global variable.  Simply initilize the variable when the form is loaded and
refer to it when you want to know elapsed time, or have the timer event itself
do something when the variable attains a certain value.

A more accurate, but harder-to-implement way would be to make a windows call
to get the time (if there is one).  I would have to look this up for details.
-----
 - Andy Jacobs
                        This Signature file under construction...   
From: smythee@etcetc.fidonet.org (Ean Smythe)
Sender: uucp@etcetc.fidonet.org
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Export errors.
Date: Fri, 11 Dec 1992 11:15:00 -0600

    I'm compiling a Windows application (Microsoft v7) in C.  I ran across
a "symbol defined more than once", which turned out to be ok, I just didn't
have the /NOI (NOIGNORECASE) switch on for LINK...

    So I add the /NOI switch to my makefile, and all of a sudden, I get
the following group of errors :

LINK : error L2022: MainWndProc (alias MainWndProc) : export undefined
LINK : error L2022: Sale (alias Sale) : export undefined
LINK : error L2022: NewInv (alias NewInv) : export undefined

    and so on, for every single one of my exported functions.  They *are*
listed in the .DEF file like always.

    I took the /NOI switch out, and it compiled without errors.

    What's happening?

E=-Ean=-
Internet:  smythee@etcetc.fidonet.org
FidoNet :  1:170/106.0

Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)