HDTenEightyP/NetNews huggingface dataset:
Subject: Re: 'model' window? 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Thu, 17 Dec 1992 18:29:34 +0000

In article <1992Dec17.084656.6252@desire.wright.edu> rocker@desire.wright.edu writes:

>In article <4748@execu.execu.com>, kevin@execu.execu.com (Kevin English)
> writes:
>> In article <1992Dec15.172737.6229@desire.wright.edu> 
>> rocker@desire.wright.edu writes:
>>>
>>>      I have a window, actually as descendant  of a fairly complex window,
>>>act like a dialog, ie. lock out all other windows and menuu, aka 'model', but
>>>not system model.
>>>
>>>      I'm using TPW 1.0 (damm purchasing dept.) and OWL and any ideas are
>>>welcomed.
>>>
>> 
>> Dave Edson wrote an excelent article in the Oct. Microsoft Systems
>> Journal : "Dave's Top Ten List of Tricks Hints, and Techniques for
>> Programming in Windows" - One of his tricks covered just this. In
>> summarry if you process the messages destined for this window with
>> IsDialogMessage() just as if the window were a modeless dialog, presto,
>> your window will have dialog like behavior.
>
>        Am I missing somethine?  How would IsDialogMesssage() lock out other
>windos?
>

IsDialogMessage() does NOT lock out other windows - what it does is to
give you the standard keyboard interface that a dialog box gets "for free" -
eg, TAB moving between controls, etc.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: runehh@dhhalden.no (RUNE HALFDAN HOLST HUSEBY)
Subject: How to load bitmaps from file
Organization: Ostfold College
Date: Mon, 21 Dec 1992 01:23:58 GMT

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.                            |
\--------------------------------------------------------------------------/
Newsgroups: comp.os.ms-windows.programmer.misc
From: rryan@panix.com (Rob Ryan)
Subject: Re: Including .LIB files in Borland C++ for Windows
Date: Fri, 18 Dec 1992 14:29:29 GMT
Organization: Panix, NYC

In <1grq0dINNr2@usenet.INS.CWRU.Edu> ae302@cleveland.Freenet.Edu (Peter Haller) writes:

>In a previous article, rmccown@world.std.com (Bob McCown) says:
>
>>This seems like something I should be able to find in the manual or in a
>>help file somewhere but I cant.  I'm building a windows application in
>>Borland C++ 3.1 for Windows, and need to link in a .LIB file that contains
>>routines for accessing an SQL, but I cant seem to figure out exactly how
>>to specify a specific .LIB file.  I have SQL.DLL (the .LIB name) in the
>>\borlandc\lib directory, but nowhere can I find how to make the linker
>>look for it, and consequently I end up with a basketfull of unresolved
>>errors.  Any help out there?
> 
>Just need to include the .lib file in the project files list.

You indicate that "SQL.DLL" is "the .LIB name".  Have you run that through
implib.exe?  Implib will create a .LIB file given a .DLL.  That's what you
put in the project, not the .DLL.

-- 
 Rob Ryan
    rryan@panix.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: david@ramsey.cs.laurentian.ca (David A. Templeton)
Subject: Device Drivers
Keywords: device drivers windows timers heaps dll
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Sun, 13 Dec 1992 20:37:49 GMT

To anyone whom this touches...                         Dec 13th, 1992

 I am a Windows 3.1 programmer with a problem and I hope someone out there
 can provide some assistance.  I deal with sampling systems that require 
 very accurate timing for data collection.  Currently, a DOS TSR is being 
 used to track the internal timer, this is done because Windows' own timer
 routine is not very accurate in enhanced mode ( off by as much as 
 1 - 2 secs! ).  Well the problem arises that we want to port this to NT or
 add in other features and TSR communication is not worth the hassle.  So
 my question is can a device driver to hook the timer be a better alternative?
 If so how would I go about setting this up and does any one have source to 
 do this?  I already have a DDK, also which books would help in this area?

 On this same package I am wondering is there any way to check the system
 heap to see if I have any of my DLL's already loaded?  Is it a function
 call or one of those undocumented Windows funcs?

   Many thanks in advance
       David A. Templeton

    e-mail: david@ramsey.cs.laurentian.ca
 
 p.s: Please respond directly to email, thanks
 
+----------------------------------------------------------------------------+
|                                                                            |
|   When everything around looks bad just remember there is someone who is   |
|    worse off!                                                              |
|                                                                            |
+----------------------------------------------------------------------------+


Newsgroups: comp.os.ms-windows.programmer.misc
From: tylerd@rintintin.Colorado.EDU (TYLER DAVID CHARLES)
Subject: Novice programmer question
Organization: University of Colorado, Boulder
Distribution: usa
Date: Sun, 13 Dec 1992 20:42:38 GMT

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?
  }

All I'm trying to do is keep only one instance running at a time.
If the user tries to open a new instance, bring the already-
running program to the top, as a window (Like File Manager does).
Using the above code, nothing happens.  No new instance, but
also no effect on the previous iconized (or windowed) instance.

These functions ARE in windows.h, aren't they?
I am using Turbo C++ for Windows, if that makes a difference.

Thanks in advance for any help.  I realize there must be a simple
explanation, but I sure don't know what it is!

Please e-mail replies, since I don't normally read this newsgroup.

Dave

tylerd@rintintin.Colorado.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
From: vince_m@wacss.anixter.com (Vince Mammoliti)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problem: System Error !
Date: Wed, 16 Dec 92 13:06:25 EST
Organization: Anixter Canada Inc.

I am currently getting a 

System Error

Divide By Zero or Overflow Error

When I run a custom application in our company.
It works fine on other machines, but not one mine.

Any suggestions would be greatly appreciated.

Vince

*****************************************************************************
       Anixter Canada Inc.           User: Vince Mammoliti  
      Mississauga, Ontario	    Voice: (416) 897-5665 Fax: (416) 897-6236
   Service Is Our Technology     Internet: vince_m@wacss.anixter.com
****************************************************************************


Newsgroups: comp.os.ms-windows.programmer.misc
From: Frank.van.der.Hulst@comp.vuw.ac.nz (Frank van der Hulst)
Subject: Re: i'm stupid and can't create an RTF file!
Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
Date: Sun, 20 Dec 1992 10:52:01 GMT

jagrant@emr1.emr.ca (John Grant) asked for help regarding how to create
a .HLP file.

What's needed is a simple utility called QDHELP (I got it in an archive
called QDHELP.ZIP). This is Quick & Dirty Help, and converts a simple text
file created by an editor (e.g. Windows Notepad) containing some meta-
commands, into a RTF file which can be fed into HC.EXE.

It works fine, and is shareware, I think.

Frank.


Newsgroups: comp.os.ms-windows.programmer.misc
From: bernt@cc.uow.edu.au (Bernt Ribbum)
Subject: Re: Borland Custom Controls
Keywords: BCC Keywords:
Organization: University Of Wollongong
Date: Tue, 15 Dec 92 03:14:36 GMT

gdsmith@nl.oracle.com (Geoff Smith) writes:

[questions about Borland Custom Controls and BWCC.DLL]

I experienced much of the same trouble when I tried the controls -
here is what I have learned:

To use the Borland Custom Controls in a Dialogue Box, you indeed
have to load BWCC.DLL. You can do this in either of tho ways,

  - call BWCCGetVersion() in your program
or
  - execute loadbwcc.exe from Windows

You ask "where in the manuals is the use of BWCC.DLL mentioned" -
apparently it is NOT. I have Borland C++ 3.1, and the manuals do not
mention it. HOWEVER, look up the files

BWCCAPI.RW, BWCCSTYL.RW, CUSTCNTL.RW and MANUAL.RW

in your borlandc\doc directory. You'll be surprised!

>Also, am I allowed to distribute BWCC.DLL with any applicatoins I write?

Yes you are. A phonecall to Borland International (Australia) assured me
I could do this.

Hope this helps,
Bernt
-- 
Bernt Ribbum
University of Wollongong, Australia
b.ribbum@uow.edu.au
Newsgroups: comp.os.ms-windows.programmer.misc
From: phshl@wombat.newcastle.edu.au (S.H. LEE (61) 49 21 5566)
Subject: Highlight text/graphic
Organization: University of Newcastle, AUSTRALIA
Date: Sun, 20 Dec 1992 22:57:14 GMT

Hi
  would someone please outline the way to implement "highlighting"
? (I am trying to implement cut/paste function)

thanks
lEe
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.os.msdos.apps,comp.os.ms-windows.setup
From: cosham@yoyo.cc.monash.edu.au (Mark Cosham)
Subject: Re: Stacker and Borland C++?
Organization: Monash University, Melb., Australia.
Date: Tue, 15 Dec 1992 01:39:10 GMT

In <Bz08BE.255@mentor.cc.purdue.edu> rjm@mentor.cc.purdue.edu (Ryan Mitchell) writes:

>Can anyone tell me if they have been successful/unsuccessful
>when installing Stacker alongside C/C++ compilers, especially
>Borland C++?  I'm considering the purchase of BC++, and since
>I have only a 40 meg. HD, I would get Stacker also in order to
>have enough room to install and use the program.

>Thanks,
>Ryan

Hi.  I've run both MSC/C++ 7.0 and BC++ 3.1 with stacker version 2 with
absolutely no problems at all.  BTW - I've also seen BC++ running on a
386sx laptop with stacker version 1 and BC++ with no problems.

Mark Cosham
-- 
 Practice random kindness and senseless acts of beauty.
-----------> <-------> <-------> <-------> <-------> <-------> <-----------
 Mark Cosham   Monash University, Melbourne, Victoria, Australia
    cosham@yoyo.cc.monash.edu.au
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Create buttons dynamically, how? 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Tue, 15 Dec 1992 14:24:38 +0000

In article <PS.92Dec14233706@kielo.uta.fi> ps@uta.fi writes:

>How can you create buttons dynamically? That is, how the application
>can decide during run-time the number and the positions of the buttons
>it wants to create? All the demonstration programs (BC++/AF/OWL) seem
>to have a fixed number of buttons. Some other button-like control
>could serve as well, as long I can create and destroy them
>dynamically.
>--
>Pertti Suomela
>
>Internet: ps@uta.fi
>X.400:    G=Pertti S=Suomela O=uta ADMD=fumail C=fi
>

Just use the "CreateWindow" function, exactly as you would for any
other window, using the pre-defined "BUTTON" window class.  All the
standard Windows controls can be dynamically created in this way -
look in the documentation of the "CreateWindow" function to find
the names of the pre-defined classes.
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: davidr@halcyon.com (David Rogers)
Subject: Dos Box Icons
Organization: The 23:00 News and Mail Service
Date: Thu, 17 Dec 1992 19:44:35 GMT

A number of launchers (including progman.exe) are able to change the
icon for a full screen dos box to something other than the default.
Does anyone know how they do it!


Regards,
David

-------------------------------------+-----------------------------------
                                     |
e-mail      davidr@halcyon.com       |          --)========- 
Snail Mail  David A. Rogers          |          Frodo Lives!
            411 First Ave. South     |          -========(--
            Seattle, WA 98027        |
-------------------------------------+-----------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: phshl@wombat.newcastle.edu.au (S.H. LEE (61) 49 21 5566)
Subject: modifying GetopenFilename
Organization: University of Newcastle, AUSTRALIA
Date: Thu, 17 Dec 1992 03:44:41 GMT

Hi guys,
  I am writing a method to open a disk file using the Commdlg unit in 
windows3.1. I would like to support a non-standard floopy disk format
which requires low level sector reads before the directory can be displayed.
(i.e. clicked on disk A:, sector reads, show directory). How would
I "modify" the GetOPenFileName  function to achieve this?

thanks
Lee
From: Kevin McIsaac <playboy@earwax.pd.uwa.edu.au>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: TIFF reader src code?
Date: 15 Dec 1992 11:16:18 GMT
Organization: SysAdm
Distribution: world
NNTP-Posting-Host: u5.dialup.uwa.edu.au
X-UserAgent: Nuntius v1.1a2
From: das11@jaguar.uofs.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: HP's Dashboard
Date: 20 Dec 92 07:07:54 GMT
Organization: University of Scranton


i have installed DASHBOARD by HP on my gateway 2000 (80486 @ 33 MHz).  i
have decided to use dashboard as my shell instead of program manager.  however,
i have found that dashboard is extremely buggy.  

(1) i get an average of two GPFs everyday.  the cause is alway dashboard 
    and the kernel conflicting.  also,

(2) the clock does not work if it is in analog mode.  it only works in digital.

(3) the fuel gage does not work.  there is no line drawing as memory is being
    consumed.  (i have 8 MB plus a 4 MB permanent swap).

(4) in the pulldown menus for groups, it fails to recognize the applications
    if they are not on the path.

(5) occassionaly, it will screw up my soundblaster when i play one of the
    package sounds.  it continues to play the sound through my speakers until
    i hit the reset button.

WEIRDNESS : i know of a person who uses an HP VECTRA and dashboard an he thinks
            i am crazy because he does not see these problems.  that is, it
            was probably created on an HP VECTRA and not really tested with
            a host of hardware configurations.

does anyone know of a patch or an update to dashboard.  i think this would
be a fab. product if they can get the bugs out.

thank you.
david sobeski
das11@jaguar.ucs.uofs.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: scstech@solomon.technet.sg (Kenneth Soh)
Subject: Memory Models Help
Organization: Singapore Computer Systems Ltd
Date: Thu, 17 Dec 1992 17:29:16 GMT

Hi all...

Thanks for all who helped me with the memory management stuff in Windows,
especially Brad of NASA - who promptly answered my SOS message even at
1:30 in the morning.

I've now "migrated" to large memory model as my Windows application needs
large memory for data. My application is to be run on a dedicated PC
and hence I don't have to worry about not being able to run multiple
instances of it under the large model.

Microsoft C/C++ and its MFC library actually comes with .lib's for the
different memory models. We can actually use mixed models by simply
utilising the "_f*" set of functions like _fmemcpy(), _fstrcpy() etc for
far access from within a small or medium model. Correct me if I am
wrong.

My only doubt is that I have those ?LIBCE.LIB library files. Why my
linker keeps saying that the ?LIBCA.LIB file not found ? I suspect
that this is due to the comm library which I linked with. If I just ignore
that message and force it to link with the ?LIBCE.LIB it works fine
thus far. Just dunno whats wrong. Anyone can tell me why ?

Merry Xmas !

Kenneth Soh
Singapore
Newsgroups: comp.os.ms-windows.programmer.misc
From: lchiengf@trantor.dso.gov.sg (Lim Chieng Fai)
Subject: Novell interrupt in Win Standard Mode
Organization: DSO
X-Newsreader: TIN [version 1.1 PL6]
Date: Wed, 16 Dec 1992 05:47:46 GMT

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.

- Lim Chieng Fai
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Bringing Application Windows to the top
Date: 17 Dec 92 17:13:10 GMT
Organization: PE-Nelson

In article <1992Dec17.122321.20939@cs.nott.ac.uk>, mak@vulcan.xtel.co.uk (Martijn Koster) writes:
|> 
|> Hi,
|> I`ve got fairly simple question:
|> 
|> 	Given a HWND, how can I bring an Application window to the top?

Try SetActiveWindow(hwnd) to bring the window specified by 'hwnd' to the
top and making it the active window.


|> To do this I check for a previous instance on startup, and if there
|> is one I use EnumWindows to step through the windows looking for
|> the one belonging to the previous instance.

As you mention, this works -- however since you are looking for a window
that this application (albeit another instance) has created you could save
a little effort by using FindWindow() with the registered name for the
window class.



----------------------------------------------------------------------------
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: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Need KLUDGE to make DOS .exe work *my way* from VB app
Organization: Energy, Mines, and Resources, Ottawa
Date: Mon, 14 Dec 1992 00:23:37 GMT

In article <1992Dec12.043729.18412@u.washington.edu> tvp@gibdo.engr.washington.edu () writes:
>I'm fairly new to Windows programming. I picked up Windows SDK, VB and
>Borland C++ 3.1 with the purchase of my home PC last spring.
>Basically, all I've been using is BC++, and then only for compiling
>straight C.  Realizing this is a waste, I've taken on some small
>projects to initiate me in different aspects of Windows programming.
>
[stuff deleted...]

>For conversion, I thought I'd try Visual Basic. (Turns out I kind of
>like it, but that's another story.) The way I did it was to put in a
>Drive box, Directory box, and File list box (using the standard
>idioms) for selecting the input text file; two check boxes repre-

[stuff deleted...]

Tad, I can't answer your question, however since the object of the
exercise is to learn Windows programming, I do have one suggestion.
Windows 3.1 comes with COMMDLG.DLL (Common Dialog Functions).  They
are:
	GetOpenFilename() - get pathname of input file
	GetSaveFilename() - get pathname of output file
	ChooseColor()	  - choose an RGB colour
	ChooseFont()	  - choose a font
	PrintDlg()	  - print setup
	FindText()	  - find text (i.e. in an editor)
	ReplaceText()	  - find & replace text

The functions are very easy to use and save you a lot of work coding
your application.  They also give apps which use them a common look
and feel.  MicroSoft allows you to distribute COMMDLG.DLL with your
app so it will run on Windows 3.0.

In your case, assuming Visual Basic supports these functions, you
can make a single function call to GetOpenFilename instead of
managing 3 listboxes as you are doing now.  If you want to see some
of these functions in action, just use the Windows 3.1 utilities like
Notepad, Write, PaintBrush, desktop/colour (i.e. windows colour setup).

Also, as you have probably found out by now, you don't need the SDK
if you have BC++ 3.1 - it includes (almost) everything you need.

Good luck.  It's a lot of work and a steep learning curve, but it's
also very satisfying (as you've undoubtedly discovered).
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Novice programmer question
Organization: Energy, Mines, and Resources, Ottawa
Distribution: usa
Date: Tue, 15 Dec 1992 01:13:18 GMT

In article <710@lax.lax.pe-nelson.com> twbrown@PE-Nelson.COM (Tom W. Brown) writes:
>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.
	[...stuff deleted...]

	Note: this is the classic case of a handle mismatch.  If you
	use #define STRICT when compiling, the compiler will catch
	things like this.  All of these things are just UINT without
	STRICT, but with STRICT, they become pointers to various
	structs.

		#define STRICT		//USE IT!!!!!
		#include <windows.h>

-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc