HDTenEightyP/NetNews huggingface dataset:
From: steve@monu6.cc.monash.edu.au (Steve Balogh)
Subject: Re: Is there tool to write for Windows on C quickly?
Organization: Monash University, Melbourne, AUSTRALIA
Date: Tue, 22 Dec 1992 05:24:05 GMT

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

----_--_-_-_--_-__-_------_-__---_-___-_----_-____-_-_--__-_--_--___-_-_-_--__-_
Steve Balogh  VK3YMY   (Maths G.14)   | steve@monu6.cc.monash.edu.au
Monash University, Clayton Campus     |      37 54'38.8"S  145 07'47.1"E ...ICBM
Wellington Road, Clayton.  	      |      +61 3 565 4747 Voice (Office)
Melbourne, AUSTRALIA. 3168	      |      +61 3 565 4746 Fax
From: tdani@uoft02.utoledo.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: TC++:TFileWindow as A CHILD Window
Date: 26 Dec 92 19:01:19 EST
Organization: University of Toledo, Computer Services

Hi There!
	I am using a class derived from TEditWindow and am having trouble
opening a child window derived from TFileWindow when I select a Menu Option in
the TEditWindow.
	There is no error reported when the menu option is selected . I put a
MessageBox in the code after the point where the TFileWindow is supposed to
appear just to make sure if there was some other error. however the Messagebox
appears just fine ,yet the window is nowhere to be seen.
	Can anyone help me out on this.
Thanx.
Tushar Dani
Univ. Of Toledo, OH

Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.pascal
From: sjsobol@wariat.org (Steven J. Sobol)
Subject: toolbar and mdi window, turbo pascal/win.
Organization: APK Public Access Unix * Cleveland, OH
X-Newsreader: TIN [version 1.1 PL7]
Date: Sat, 2 Jan 1993 18:33:37 GMT

I have a package I picked up off wuarchive.wustl.edu called TOOLPA.ZIP.
It is a demo from a commercial prototyping program, and it lets you create
a toolbar in Turbo Pascal. It works fine in non-MDI windows. In MDI windows,
I turn off the wb_MDIChild flag so I don't get the caption and system menu
enclosing the toolbar. However, I can't get it to respond to any mouse clicks
if I don't have wb_MDIChild set. How can I get a non-MDI child window in an
MDI frame window to respond to mouse clicks? 

Oh yeah... the toolbar does not respond to paint events, either.

Thanks,
  Steve
-- 
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: ylee@syl.dl.nec.com (Ying-Da Lee)
Subject: VB can't print programs
Organization: NEC Systems Lab., C&C Software Technology Center (Dallas, TX)
Date: Tue, 22 Dec 1992 22:39:16 GMT

Just got VB ver. 1.0 and am running into problems trying to
ask it to print out programs.  This is with Win3.1.

During the installation, it complained about 'SETUP not being
able to create a program item for VB.'  Whatever that means
it doesn't seem to impede the normal running of VB.  I can
construct, compile, and run VB programs and all is fine except
for printing out the programs.  Every time I ask VB to print
a program, it initiates the Print Manager and then halts with

	Application Error  
	VB Caused a General Protection Fault in Module
	UNIDRV.DLL at 0009:1713

I have tried two different versions of UNIDRV.DLL (92/03/10, and
93/03/26) but that didn't seem to make any difference.

The problem only occur on a 486DX 50MHz system.  A 386SX 25Mhz
system with vitually the same setup has no such problem.  I don't
think it has anything to do with the printer itself.  Just in
case it does, I use an Epson Action Laser II.

Any insight?  Help?  Thanks.

	Ying-Da Lee
	ylee@syl.dl.nec.com
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Setup Utility for Windows Applications
From: stefan@olson.acme.gen.nz (Stefan Olson)
Date: Wed, 23 Dec 92 20:30:36 +1200
 <Bz07t0.10H@dcs.ed.ac.uk> <1992Dec16.130714.4548@wega.rz.uni-ulm.de>

In <1992Dec16.130714.4548@wega.rz.uni-ulm.de> RUESS_M@rzmain.rz.uni-ulm.de (Ruess Michael) writes:
>In <Lj0KrAXCBh107h@olson.acme.gen.nz> stefan@olson.acme.gen.nz writes:

>> Well I have written a fairly nice installation program that does the 
>> above things and I have released it and it is FREE!!
>
>Let me know where it is availiable. I use the Setup program which microsoft
>has released on cica I think a year ago, but it is buggy, and it was a lot
>time to find these bugs.

I have had so many people asking where they can get it from that I will
post the answer!!  It should now be avaliable on ftp.cica.indiana.edu
in the pub/pc/win3/uploads directory as QINST10.ZIP (that is, of course,
if it hasn't been moved...

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: "chris little" <chris.little@canrem.com>
Subject: how to distinguish betwee
Reply-To: "chris little" <chris.little@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 22 Dec 92 17:22:01 EST

In article <722@lax.lax.pe-nelson.com> (Tom W. Brown) writes:

> Just thinking about trying to make this work properly for all cases and
> users makes me feel slightly nauseated though.  A double click should
> only perform an action that is an extension of whatever a single click
> does, anything else would be confusing and cause endless annoyance.  I'm
> not a Mac user, but I'll bet that even there it is a very rare case
> where a double click does something completely unrelated to a single
> click.

> I think the suggestion that modifier keys (CTRL, ALT, SHIFT) be used to
> distinguish between different actions on a click is the best way to go
> unless you want to introduce "mouse modes" in your application where the
> current mode determines the action of a click.

As a Mac programmer I will comfirm that double-clicks are always an
extension of a single-click.  To track single vs double clicks you have to
record the time of a mouse down event and compare it against the
double-click time and the current tick count during the next mouse down
event.

My question is how to determine if the modifier keys are down during a
WM_LBUTTONDOWN message.

Chris Little
Logicus Incorporated.

---
 This copy of Freddie 1.2 is being evaluated.
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
From: Flint.Waters@uwyo.edu (Flint Waters)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB and DropAccepting Forms
Summary: VB not accepty the droppy
Keywords: Help I've fallen and can't get up
Date: 29 Dec 92 22:19:12 GMT
Distribution: comp.os.ms-windows.programmer.misc,world
Organization: University of Wyoming

Where:    Visual Basic for Windows 2.0

The app:  A simple program that monitors a directory which holds
	  newly arrived mail.  When new mail arrives the icon
          changes to a mailbox with the falg up and optionally
	  sounds the WAV file of my choice.

The problem:  I would like to extend the application to accept files dropped 
	  from File Manager.  These files would then be used in a form 
          that I have written which delivers outbound mail.  The outbound
          mailer seems to work fine but I can't get the minimized VB
	  app to accept files.  I've tried all variations of the DRAGDROP
          capabilities in VB but to no avail.  

The plan: Does anyone know of a VBK or external DLL that will allow me
	  to trigger the DragAcceptFile doohicky so that I can
	  DragQueryFile and do my mail thing?

Many Thanks
From: steck@ccs.northeastern.edu (Paul Steckler)
Subject: Re: How to load bitmaps from file
Organization: College of CS, Northeastern U
Date: Tue, 29 Dec 1992 02:36:17 GMT

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!

Yes, I'm looking for the same thing.  The documentation describing
the bitmap file formats in the Win 3.1 API is OK, but there
are lots of details to consider (compression, e.g.).
I could probably get it to work, given sufficient time, but this
is such a standard task that I'd prefer to use published/debugged
code.

BTW, I'm looking for code to load ICONs from disk, too.

-- Paul
-- 
 -----------------------------------------------------------------------
| Paul Steckler                       |  Desperately seeking clever     |
| steck@dworkin.ccs.northeastern.edu  |    new .signature slogan        |
 -----------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
Subject: Problems with BWCC.DLL?
Organization: Oakland University, Rochester MI.
Date: Thu, 31 Dec 1992 02:19:08 GMT

Being posted for a friend; followup to center03@cps201.cps.cmich.edu
-----------------------------------------------------------------------

In the project I'm currently working on, I get a barrage of messages
(warnings) from the debug kernel (in GDI) about forgetting to free
DCs, brushes and bitmaps.  Considering I don't do any GDI work at all
(it's all dialogs), I assume this means bad news for BWCC.DLL.

Anybody have any clues?  I'm out of options.  Please mail me at center03@
cps201.cps.cmich.edu [141.209.20.201] if you know.  What follows is the
output from the dbeug kernel:

Thanks!
Brad Wilson

wn TASKMSTR GDI: DC not deleted: 0D56
wn TASKMSTR GDI: Brush not deleted: 0D6A
wn TASKMSTR GDI: Brush not deleted: 0D62
wn TASKMSTR GDI: Brush not deleted: 0D4E
wn TASKMSTR GDI: Brush not deleted: 0D5A
wn TASKMSTR GDI: Bitmap not deleted: 0DAE
wn TASKMSTR GDI: Bitmap not deleted: 0DA6
wn TASKMSTR GDI: Bitmap not deleted: 0DA2
wn TASKMSTR GDI: Bitmap not deleted: 0D9E
wn TASKMSTR GDI: Bitmap not deleted: 0D9A
wn TASKMSTR GDI: Bitmap not deleted: 0DAA
wn TASKMSTR GDI: Bitmap not deleted: 0D96
wn TASKMSTR GDI: Bitmap not deleted: 0D92
wn TASKMSTR GDI: Bitmap not deleted: 0D86
wn TASKMSTR GDI: Bitmap not deleted: 0D82
wn TASKMSTR GDI: Bitmap not deleted: 0D7E
wn TASKMSTR GDI: Bitmap not deleted: 0D7A
wn TASKMSTR GDI: Bitmap not deleted: 0D76
wn TASKMSTR GDI: Bitmap not deleted: 0D72
wn TASKMSTR GDI: Bitmap not deleted: 0D6E
wn TASKMSTR GDI: Bitmap not deleted: 0D66
wn TASKMSTR GDI: Bitmap not deleted: 0CD6
wn TASKMSTR GDI: Bitmap not deleted: 0D4A
wn TASKMSTR GDI: Bitmap not deleted: 0DB2
wn TASKMSTR GDI: Bitmap not deleted: 0DB6
wn TASKMSTR GDI: Bitmap not deleted: 0D22
wn TASKMSTR GDI: Bitmap not deleted: 0DE2
wn TASKMSTR GDI: Bitmap not deleted: 0DDE
wn TASKMSTR GDI: Bitmap not deleted: 0DDA
wn TASKMSTR GDI: Bitmap not deleted: 0DD6
wn TASKMSTR GDI: Bitmap not deleted: 0DD2
wn TASKMSTR GDI: Bitmap not deleted: 0DCE
wn TASKMSTR GDI: Bitmap not deleted: 0DCA
wn TASKMSTR GDI: Bitmap not deleted: 0DC6
wn TASKMSTR GDI: Bitmap not deleted: 0DC2
wn TASKMSTR GDI: Bitmap not deleted: 0DBE
wn TASKMSTR GDI: Bitmap not deleted: 0DBA

-- 

---
bcmatusz@vela.acs.oakland.edu
"Use DEVICE=EXXON to screw up your environment."
From: f254@cs.utexas.edu (Fall Class Account)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Aarrgghh.  ProtoGen!  Anybody?
Date: 31 Dec 1992 21:54:00 -0600
Organization: U Texas Dept of Computer Sciences, Austin TX
Distribution: world
NNTP-Posting-Host: nada.cs.utexas.edu

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.

Newsgroups: comp.os.ms-windows.programmer.misc
From: jon@iti.gov.sg (Jonathan Priddey (SE))
Subject: VB UAE in VBRUN200.DLL
Reply-To: jon@iti.gov.sg
Organization: Information Technology Institute, National Computer Board, S'pore
Date: Mon, 4 Jan 1993 01:24:31 GMT

I'm producing a small Visual Basic demo that uses DDE, a few arrays
of user defined types and a few controls, thats all. It runs fine from
the Visual Basic environment, but generates a UAE when compiled to an exe.

I get funny behaviour, on one machine, the exe will work while the
environment is still active, but UAEs at the same place if I close the
environment. On another it UAEs without fail...

If I add a MsgBox call in the function I am exercising the UAE vanishes.

The function I am exercising is in a separate .BAS file, it just initialises
a user defined type with a string from a text control.

Has anyone seen anything like this, or has anyone suggestions for what to try
next - I will probably be slowly commenting stuff out till it works otherwise.

VB is a great environment, it is sad to see it flawed,

Thanks for any help,

Regards jon (jon@iti.gov.sg)
From: robk@wswiop08.win.tue.nl (Rob Knubben)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: TDW driver for Trident 8900
Summary: Where can I find a driver for Trident T8900 for TDW ?
Keywords: TDW Driver T8900 Trident
Date: 21 Dec 92 13:53:37 GMT
Reply-To: robk@win.tue.nl

Hello,  
 does anybody know where I can get a driver for my Trident T8900
 card to use with Turbo Debugger for Windows? By the way: my VESA
 driver crashes Windows, so a Vesa-driver won't work.

 Please e-mail any suggestions to robkn@blade.stack.urc.tue.nl

(I've got a vision ... Television      [Bono, U2])
From: sbchanin@ai.mit.edu (Steve Chanin)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
Subject: Windows Printing
Date: 1 Jan 93 20:14:28
Organization: MIT Artificial Intelligence Laboratory
Distribution: world
Reply-To: sbchanin@ai.mit.edu
NNTP-Posting-Host: raisin-nut.ai.mit.edu


I'm interested in buying/building a utility which can print text,
tables, and graphs.  The idea is to take information that
the user sees on screen and turn it into word processor quality output
(i.e. headers, footers, various fonts, and embedded graphs and tables
preferrably at the resolution of the printer [300dpi]).  The hope is
to be able to be able to use this utility with VB apps and with SDK apps.

I'm currently trying to figure out if their is an easy way to do this
is.  Any ideas?

One fairly complicated idea is to get the printer object display
context (hDC) and manually work through all the text, tables, and
graphs rastering each into the hDC.  In the case of text, this would
involve line breaking, checking font heights, positioning the cursor,
writing letters into the hDC, and moving the cursor down a line.  We
have a graph library which can write itself into an hDC.  Tables would
be a special case of the Text display functions.  Additionally, the
code would have to detect end of page, maybe output a page number, etc.

The questions I'm interested in are:
1) Are there easier ways to do this?
2) Are there commercially available libraries of code which do this?
   If not, are there libraries which get us part of the way there?
3) If we have to go with the idea described above should it be written
   in Visual Basic, as a static library, or as a DLL?
3) If we have to go with the idea described above, how long will it
   take to code?

Thanks,
Steve


--
===============================================================================
DOMAIN: sbchanin@ai.mit.edu                                       Steven Chanin
Newsgroups: comp.os.ms-windows.programmer.misc
From: "chris snell" <chris.snell@canrem.com>
Subject: change dialog icon
Reply-To: "chris snell" <chris.snell@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 30 Dec 92 05:58:47 EST

Can anyone tell me how to change the icon displayed by an ss_Icon static 
control in a dialog box? I would like to somehow pass a hIcon to the 
ss_Icon control, then presumably repaint the control.

Failing this can anyone suggest a good referrence to ss_UserItem 
controls and user drawn controls and their messages?

Please send email to chris.snell@canrem.com.

Thanks in advance.
                                        Chris

---
WMR #1 2 + 2 = 5 for sufficiently large values of 2.
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.ms-windows.programmer.misc
From: phshl@wombat.newcastle.edu.au (S.H. LEE (61) 49 21 5566)
Subject: Re: Highlight text/graphic
Organization: University of Newcastle, AUSTRALIA
Date: Sat, 26 Dec 1992 13:59:31 GMT

In article <MUFFY.92Dec23103845@remarque.berkeley.edu>, muffy@remarque.berkeley.edu (Muffy Barkocy) writes:
> In article <1992Dec21.095714.1@wombat.newcastle.edu.au> phshl@wombat.newcastle.edu.au (S.H. LEE (61) 49 21 5566) writes:
>> would someone please outline the way to implement "highlighting"
>> (I am trying to implement cut/paste function)
> 
> SendMessage(hwnd, EM_SETSEL, NULL, MAKELONG(start, end)):
> 
> hwnd should be an edit control.
> 
> Muffy
> --

HI Muffy,
  Can if be used in a graphics application?

Lee
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Mon, 21 Dec 1992 22:03:59 GMT
Subject: Re: i'm stupid and can't create an RTF file!
Organization: Hewlett-Packard, Greeley, CO
Newsgroups: comp.os.ms-windows.programmer.misc

In comp.os.ms-windows.programmer.misc, jagrant@emr1.emr.ca (John Grant) writes:

>I'm trying to understand how to create help files for my application
>and I am getting overwhelmed by the complexity.  As far as I am
>concerned, the use of RTF files is the most awkward format to 
>read/write/maintain that they could have possibly used.

>I have looked at WFWHLP, XANTIPPE and various other things including
>suggestions to use Perl, awk, etc etc etc.  Someone sent me a sample
{... stuff deleted ...}
>Thanks in advance.

>-- 
>John A. Grant						jagrant@emr1.emr.ca
>Airborne Geophysics
>Geological Survey of Canada, Ottawa

Yup, RTF files are quite awkward...  You mentioned you had xantippe.  Why
not create a "simple" 1 page form similar to what you want and see how
xantippe formats the RTF file?  White-space is possible, though you are
trying to defeat one of the "features" of Windows help (which tries to
adjust the width of the displayed text to whatever the current width of
the Help window is).  Occassionally though, one still needs white-space.
With xantippe all you need to do to create white space is to CR/LF a 
couple times...

If someone would create a truly SIMPLE help file editor&compiler for us
mere mortals I think the person would have an income rivalling that of
of Bill Gates (well, almost) :-)  At the very least hell might freeze
over :-)  I guess the fact that one still doesn't exist is testimony to
how difficult RTF is...
- Galen -
Newsgroups: comp.os.ms-windows.programmer.misc
From: ThomasEppel@mgmt.purdue.edu (Thomas Eppel)
Subject: help-compiler and rtf-formatting
Date: Thu, 31 Dec 1992 15:47:05 GMT
Organization: Krannert School of Management
Keywords: rtf,winhelp,hc

I try to create help-files from MS-Word documents that contain fairly 
straightforward formatting (bold,superscript, etc.), tables and embedded 
equations.  I guess all this gets taken care of when I save the document as 
an rtf-file, since the document looks alright when I read it back into 
Word.  However, tables, equations and even sub- and superscripts are not 
properly translated into the help file after compiling (I use the help 
compilers the came with the professional editions of VB1.0 and VB2.0).  Any 
ideas of how to preserve the formatting would be appreciated.

Thomas Eppel
eppelt@purccvm
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: How get font information on a dialog box control?
Keywords: QuickC, Dialog Box Control, Font
Organization: Energy, Mines, and Resources, Ottawa
Date: Mon, 21 Dec 1992 20:06:58 GMT

In article <dagwag.724793817@meryl> dagwag@meryl.csd.uu.se writes:
>
> I have created a (modeless) dialog box, defined at compile-time using
>"Dialog Editor", included in the MS QuickC/Win package.  The dialog box
>contains a text field control (LTEXT) for displaying text.
>
> At run-time I need to know the width and height of the characters to
>display in this text field but I can't get hold of the right
>information. GetTextMetrics() returns the _same_ data regardless of the
>font (specified w "Dialog Editor") I use. Why?
> GetDialogBaseUnits() does not return any useful information either, I
>have received the same size (20x10) on all the fonts (System,
>Courier,..)  I have tried. I calculated the different fonts to be 16x10,
>20x8, etc on a certain device.
>
> Wrong functions? Any ideas?
>
> I use QC/Win 1.0, Win 3.1. 
	
	If you can get the HFONT for the window, you can use
	GetObject() to get the LOGFONT contents for the font.

	I'm not sure how you get the HFONT, though.

-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Mon, 21 Dec 1992 20:38:12 GMT
Subject: Re: Urgent Help Needed in VB
Organization: Hewlett-Packard, Greeley, CO
Newsgroups: comp.os.ms-windows.programmer.misc

In comp.os.ms-windows.programmer.misc, rkenning@cc.curtin.edu.au writes:

>I have another problem in VB. I want to make the background of Text, Graphic,
>Radio Buttons and Check Boxes transparent is there any way of dong this ?

>Myles.
>rkenning@cc.curtin.edu.au

>P.S. Please if anyone has a answer post it now, the mainframe that runs NEWS is
>being turned off tomorrow morning and I will not be able to view the reply's.

You can do this by using the Windows API call "BitBlt" for picture controls...
It should be possible to do this with some of the other controls, but I
haven't tried.
- Galen -
Newsgroups: comp.os.ms-windows.programmer.misc