HDTenEightyP/NetNews huggingface dataset:
From: kimmel@staff.tc.umn.edu (Eric Kimmel)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Good programming books
Date: 15 Dec 92 01:08:25 GMT
Distribution: usa
Organization: University of Minnesota

In article <1992Dec7.160914.10851@cbnewsm.cb.att.com> wao@antares.att.com (BL0528540-Bill Oswald  ALC2817) writes:
>This might be an FAQ but here goes. I am an intermediate C programmer
>trying to write windows code (novice windows programmer). The
>only book I have (besides borland c++ manuals) is Nortons "Windows
>3.0 Power Programmering Techniques). This book does not offer much
>help and it is a bit outdated. MANY commands are not covered and
>there are not enough examples. Does any one have any suggestions on
>good books for Borland C++ 3.1 programming. Sorry if its an FAQ. Thanks
>in advance.

Charles Petzold's book..  Buy it no matter what.

If you have ObjectWindows get Lorne Heiny's "Windows Graphics Progamming
with Borland C++" and read the ObjectWindows manual.  Together they will
get you started.  Petzold will help later.

If you're really a hacker you can try "Undocumented Windows"...

>Bill Oswald
>wao@aluxs.att.com

-Rick
From: denisl@col.hp.com (Denis Lambert)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Complied VB .EXE crashes computer???
Date: 15 Dec 1992 17:02:24 GMT
Organization: HP Colorado Springs Division
NNTP-Posting-Host: la.col.hp.com

I have developed a VB 2.0 application that uses several DLL's including
Btrieve for Windows, Crystal Reports and a couple that I wrote using
Turbo Pascal for Windows.  It runs just fine in interpreted mode, but
when I compile it and try to run the .EXE I get a General Protection
Fault and I lose my mouse.  This only happens on machines at work that
are running MS LanManager 2.1 (it does not happen on my non-networked
system at home).  The funny thing is that I can run the .EXE just fine
if VB is also running, but it crashes my system if I try to run it 
without having VB loaded.  The VB 2.0 application is fairly simple
(i.e. no graphics, just data entry forms at this point), but it does
use MDI.

Any suggestions on what might be causing this problem or how to 
track down the cause?

My system configuration is: 80386, 8MB, Windows 3.1, DOS 5.0, and
LanManager 2.1.

Thanks
Denis Lambert
denisl@col.hp.com
From: rhoda@sybase.com (Rhoda Neimand)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Problem with large DGROUP segment, MS C7
Date: 18 Dec 92 19:37:26 GMT
Organization: Sybase, Inc.

In article <8051@skye.ed.ac.uk> jacs@aiai.uucp (Julian Smart) writes:
>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.

This means that your static data has exceeded 64K (actually static data
+ heap if DLL : static data + heap + stack if regular program).

You can use the /Gt compile switch to set a threshold for static data,
e.g. /Gt32 tells the compiler to create a new segment for each piece
of static data that is greater than 32 bytes.  You can play with the
/Gt switch to see what threshold amount works well for you.  Knowing
where and what your static data is will help you in this endeavor.

Then, you can use the /PACKDATA linker switch to tell the linker to
pack your segments back together.  It packs as many as it can into
64K.

As for the MAP file.  You can't get a MAP file until the whole thing
links.

--
Rhoda Neimand			                [I speak for myself]
{sun,lll-tis,pyramid,pacbell}!sybase!rhoda -or- rhoda@sybase.com
"I didn't want to, Jim"		Mr. Spock in _This Side Of Paradise_
Newsgroups: comp.os.ms-windows.programmer.misc
From: tfj@apusapus.demon.co.uk (Trevor Jenkins)
Subject: .OBJ file format 
Distribution: world
Organization: Job hunters use Parachute
Date: Fri, 11 Dec 1992 20:24:38 +0000


In article <1992Dec11.101344.2664@neptune.inf.ethz.ch> bronstei@inf.ethz.ch writes:

> 
> Is there anywhere a complete description of the .OBJ file format for
> progs supposed to link correctly with MS C 7.0 files? 

I found a very useful file with this information in by calling up the
Microsoft BBS on +1-503-645-6275. The file name was something line
"SS036.EXE". The major omission is any real discussion of CodeView specific
records.

> This is for
> writing an Oberon compiler and the resulting .OBJ files should be linkable
> with modules written in C. The executables are supposed to run under
> Windows 3.1.

The document(s) from the above file don't cover the instruction sequences
that you ought to be generating for W3.1 compliant calls. I found some of
the required info in "The Windows Programmer's Guide to DLL and Memory
Management" by Mike Klien published by Sams (ISBN 0-672-30236-5).

> Any help?

Hope that's useful.

Regards, Trevor.

---------------------------------------------------------------------------
Trevor Jenkins                                                Re: "deemed!"
134 Frankland Rd, Croxley Green, Rickmansworth, WD3 3AU, England
email: tfj@apusapus.demon.co.uk                               radio: G6AJG  
phone: +44 (0)923 776436
From: raider@maloe.toppoint.de (Martin Seeger)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: PeekMessage() - What does this mean?
Date: Wed, 16 Dec 92 03:20:30 GMT
Distribution: na
Organization: private UUCP site, Kiel, Germany

Hi,

>I want to run a long computational loop (for hours!) so I want to use
>PeekMessage() to give the rest of the system a shot at the processor.
>My thought was to use PeekMessage(PM_NOREMOVE) down in the loop and if I
>detected a message to go back to the GetMessage() up at the top.  The
>following quote has me worried though.  What does this really mean?

Looks a little bit complicated to me. I woul do it the following way:

  if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) 
  {
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }

If you use Accelerators you have to insert the appropiated stuff. If you
want to be gently to other applications you replace the "if" withe a
"while". This code works quite well in a application which has to do
a busys waiting for a nasty piece of hardware :-).

Greetings 

   Martin

-- 
Martin Seeger, Hansastrasse 75, 2300 Kiel, Germany, +49 431 81100
>>>>    Unter den Blinden ist der Einaeugige Aussenseiter    <<<<
Newsgroups: comp.os.ms-windows.programmer.misc
From: jeff@tct.com (Jeff Witzer)
Subject: Dynamic Drawing to Button Faces
Date: Fri, 18 Dec 1992 16:19:17 GMT
Organization: TC Telemanagement, Clearwater, FL

[Sorry if this is a repost, I think the first attempt failed...]

Here's one I haven't seen on the net, yet:

I would like to be able to draw a pie chart and/or a bar chart (user picks
which one to do so I have to know both)...on the face of a button.  I'm
using Borland style buttons, BC 3.0, and Win 3.1.  I've been using the
BBS_SETBITS message to change button appearance on the fly (for the three
button states: norm, push, focus) with 3 item bitmap arrays, but have only
done this with static bitmaps drawn in Resource Workshop.  How can I use
drawing commands from within the code to create these bitmaps (or just 
display straight on the button face) so that I can still have all 3 states?

thanks,

jeff@tct.com

Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Moving Lines
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 16 Dec 1992 04:42:26 GMT

In article <18565@mindlink.bc.ca> Steve_Goyette@mindlink.bc.ca (Steve Goyette) writes:
>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???
	Draw it using R2_XORPEN or R2_NOT mode (function SetROP2).
	You will need to draw it twice for each movement:
		draw initial line at (x,y) in XOR mode
	when you drag it to a new (xnew,ynew) point:
		draw at (x,y) again in XOR mode to erase
		x=xnew;y=ynew;
		draw at (x,y) in XOR mode
	Repeat this cycle as you move it.
-- 
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: Window's co-ordinates ?
Organization: Energy, Mines, and Resources, Ottawa
Date: Mon, 14 Dec 1992 00:32:36 GMT

In article <13DEC199204274690@vms1.iscs.nus.sg> nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps) writes:
>	Hi Gurus,
>
>	I have this app in which some text is positioned and printed
>	in a window using the TextOut function.  Mapping mode is the
>	default MM_TEXT. In normal VGA mode, it
>	works flawlessly. BUT, when I switch to SuperVGA with LARGE fonts,
>	the text are wrongly positioned ! However, SuperVGA with SMALL fonts
>	presents no such problem. 
>
>	I'm really puzzled at this. Does the way Windows handles coordinates
>	differ with different font sizes ? I've always thought that TextOut
>	uses the logical coordinates, and therefore, Windows should be able
>	to take care of any differences. Apparently I was mistaken.
>
>	Any advice/tips/help would be greatly appreciated.
>	Thanx. 
>
>	BTW, I've tried this out on a Paradise SuperVGA and a Taiwanese
>	Tseng Labs SuperVGA card, installed the 800x600 large font drivers,
>	and both had the same problem. 

	In MM_TEXT mode, 1 logical unit = 1 physical unit (pixel).
	If you have more pixels in a higher res card, then you
	also have more logical units.  You should use a different
	mapping mode like MM_ISOTROPIC where you can set specific
	logical co-ordinate limits which map to the physical limits.
	Use GetClientRect to get the size of the window and then map
	perhaps x=[0,1000] y=[0,1000] logical units to the physical
	no. of pixels.  I forget how to do this, but Petzold's
	"Programming Windows 3.1" shows how. I think it uses things
	like SetWindowExt, SetViewportExt,SetWindowOrg etc.  Then
	you can use logical co-ordinates [0,1000] and it will always
	come out right.
	 
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: "chris snell" <chris.snell@canrem.com>
Subject: drag & drop server
Reply-To: "chris snell" <chris.snell@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 13 Dec 92 12:35:54 EST

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.

---
WMR #1 I was on a roll, until I slipped on the butter.
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
From: anik@crhc.uiuc.edu (Sadun Anik)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: SDK 3.1 Cost? Source?
Date: 12 Dec 92 21:18:34 GMT
	<1992Dec11.211554.1579@microsoft.com>
Distribution: usa
Organization: Center for Reliable and High-Performance Computing
NNTP-Posting-Host: lyra.crhc.uiuc.edu
In-reply-to: dwightm@microsoft.com's message of 11 Dec 92 21:15:54 GMT

In article <1992Dec11.211554.1579@microsoft.com> dwightm@microsoft.com (Dwight Matheny) writes:

   The 3.1 SDK has a SRP of  $349, or is also included w/ MS C/C++ 7.0
   for a SRP of $499. Both are available retail. The SDK is harder to
   find at dealers and can be ordered direct from MS by calling MS
   Developer Services at 800-227-4679 x 11771.


  Once again,
  There is a limited time educational discount offer (until Dec 15) on
MS C/C++ 7.0 & SDK package with printed docs direct from MS. The price
is/was about $150 including tax and P&H. There is a similar offer on
most (maybe all) MS compiler products. I don't have the price list
with me but the the package above was one of the most expensive items.
I remeber seeing FORTRAN and even COBOL compilers on the list :)

--
Sadun Anik, U of Illinois at Urbana-Champaign
Center for Reliable and High-performance Computing
e-mail: anik@crhc.uiuc.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: rkenning@cc.curtin.edu.au
Subject: Urgent Help Needed in VB
Organization: Curtin University of Technology
Date: Fri, 18 Dec 1992 08:10:22 GMT

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.
Newsgroups: comp.os.ms-windows.programmer.misc
From: dwightm@microsoft.com (Dwight Matheny)
Subject: Re: SDK 3.1 Cost? Source?
Date: 14 Dec 92 20:52:18 GMT
Organization: Microsoft Corp.

Note that the $139 C upgrades do not include full set of 13 SDK manuals. 
Also, I beilieve the competitive upgrade has expired, that's why I didn't
mention it in my previous mail.

-Dwight (MS)
Newsgroups: comp.os.ms-windows.programmer.misc
From: markd@silogic.uucp (Mark C. DiVecchio (K3FWT))
Subject: Re: two quick owl questions
Organization: Silogic Systems, San Diego, CA
Date: Wed, 16 Dec 1992 16:53:58 GMT

In article <1992Dec15.161603.1213@twisto.eng.hou.compaq.com> mccreary@sword.eng.hou.compaq.com (Ed McCreary) writes:
>
>two, probably trivial owl questions that I can't seem to figure out.
>
>Using WM_SYSCOMMAND.  How do I process this so the other functions
>still work?  I want to append a menu item to the system menu, but

Check my BBS for the program WINDEBT (in the windows area). The
answer is obvious once you know it but digging it out of the
documentation is another story ......

619-549-9841


-- 
Mark DiVecchio, Silogic Systems, 619-549-9841                       K3FWT
-----   9888 Carroll Center Road, Suite 113, San Diego, CA 92126    -----
markd@silogic.uucp                             BBS 619-549-3927
...!ucsd!sdcrsi!silogic!markd     sdcrsi!silogic!markd@ucsd.edu
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: MFC and Borland IDE
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Fri, 18 Dec 1992 17:35:36 GMT

In <1992Dec18.050925.5363@panix.com> rryan@panix.com (Rob Ryan) writes:

>>MFC is not an application framework worth the name, it's
>>just a collection of loosely related classes and you need

>I've heard this claim before, but having only used MFC I can't speak
>authoritatively on OWL.  I know that developing non-trivial MFC apps
>is not hard, but if OWL makes it a lot easier, I'd like to know.  Can

Maybe I should have been more clear.

Is there anything resembling, say, MacApp for the Macintosh
for Windows? Or do I have to wait for Bedrock to get a decent
application framework? Or write one on my own? (Not likely :-)

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
 Engineering: "How will this work?" Science: "Why will this work?" Management:
 "When will this work?"  Liberal Arts: "Do you want fries with that?"
                     -- Jesse N. Schell
Newsgroups: comp.os.ms-windows.programmer.misc
From: rbarclay@trentu.ca (ROSS BARCLAY)
Subject: OWL: How to access lpCmdLine
News-Software: VAX/VMS VNEWS 1.41    
Organization: Trent Computing and Telecommunications Department
Date: Thu, 17 Dec 1992 04:14:00 GMT


I'm having trouble accessing the data in lpCmdLine from my OWL
program. When I click a button, I want the lpCmdLine string to be put
into an edit box.

All I could figure out was that its a data element of TModule. Other
than that, I don't know how to get at it. My guess is that I need to
pass it from WinMain to the function I need. Is this correct?

Can anybody point me in the right direction?

Thanks.

________________________________________________________________________________

"Here, finish your strudel! <Crash>"           Ross Barclay - RBarclay@TrentU.CA
________________________________________________________________________________
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: FONT in TEDITWINDOW
Organization: Compaq Computer Corp.
Date: Mon, 14 Dec 1992 14:34:15 GMT

In article <1992Dec13.192501.466@uoft02.utoledo.edu> tdani@uoft02.utoledo.edu writes:
>	I am using Turbo C++ for Windows to write an app.
>	It involves using a class derived from TEditWindow class. However i
>am not able to find a way to change the default Font of the text in the Edit
>Window.
>	Any ideas? Suggestions as to how to solve this problem.

Look at WM_SETFONT.  I've used with derivatives of TEditWindow so I know
it works.

--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
Newsgroups: comp.os.ms-windows.programmer.misc
From: jeff@tct.com (Jeff Witzer)
Subject: Menu Updating
Date: Tue, 15 Dec 1992 21:07:41 GMT
Organization: TC Telemanagement, Clearwater, FL

You know, it seemed like a simple thing to do in theory...

(Famous last words, I know)  All I wanted to do was to display the time in
the rightmost section of the menu bar.  I already had a 1 second timer to
keep time for other reasons (with an occasional check of the system clock 
to keep it reasonably in line) so I thought I'd use ctime to format the
current time and ModifyMenu () to display it.

The menu item was defined:

.
.
.
    MENUITEM "Mon Jan 11 12:00:00", IDM_DATE_TIME, HELP
.
.
.

and the ModifyMenu call went like this:

    char szDateTime [30];
    					  
    sprintf (szDateTime, "%.19s", ctime (&lCurrentTime));
    ModifyMenu (hMainMenu, IDM_DATE_TIME, MF_BYCOMMAND | MF_STRING, 
               IDM_DATE_TIME, szDateTime);
    
The result?  The initial, dummy date/time (jan 11 12:00:00) is displayed 
on the very right and stays there.  If I click on it, nothing happens.  If
I click just to the right of the last real main menu item, the current date/
time is displayed and doesn't change.  If I keep clicking, I get a "working"
clock.

    1 - Why doesn't the ModifyMenu () place the date/time all the way to the
        right like the initial, dummy date/time?
	
    2 - What do I have to do to actually force display the date/time after
        each ModifyMenu ()?
	
    3 - Is there a better way?
    
Thanks,

jeff
From: dontcare@matt.ksu.ksu.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: window's prefined edit class
Date: 17 Dec 1992 14:38:30 -0600
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu
Summary: Question about subclassing the edit class

I'm trying to create a little hypertext like program where when the user
double clicks on a word, the program will show the user some additional 
information associated with that word.  I have decided to try to use the 
predefined edit class since when the user double clicks on a word in 
an edit class window, it automatically selects that word for me.  But now
I'm stuck.  I need to not only be able have that client window select that
word, but I need for the parent window to somehow receive a doubleclick 
message so that I can go and do some further action (besides haveing 
the child window highligth the text).  I was thinking that I should be able
to do this be somehow setting the CS_DBLCLKS bit of the style part the 
the edit class structure to on, or by subclassing edit, and then turning on 
the desired bits in that class structure.  I am not exactly sure if this the
best or even the right way to do this, but I am more than open to suggestions.

Please e-mainl any replies to dontcare&matt.ksu.ksu.edu.

Thanks!

-Hoa Nguyen
Newsgroups: comp.os.ms-windows.programmer.misc
From: runehh@dhhalden.no (RUNE HALFDAN HOLST HUSEBY)
Subject: Re: How would you program this ?
Organization: Ostfold College
Date: Sat, 19 Dec 1992 08:36:02 GMT

In article <1992Dec19.023047.26119@news.ysu.edu> doug@cc.ysu.edu (Doug Sewell) writes:
>From: doug@cc.ysu.edu (Doug Sewell)
>Subject: How would you program this ?
>Date: Sat, 19 Dec 1992 02:30:47 GMT
>I have to retrieve three related numbers from a user (they're the count
>of two-dimensional tables, and the dimensions of the tables).
>
>The number of tables ranges from two to four.
>The columns range from two to four, for each of the tables.
>The rows in each table range from five to ten.
>
>For alternatives to retrieve the values, I see three options (I'm using
>VB, incidentally). 
>
>Three text boxes, with editing on each field (this is what I'm leaning
>towards).

I would have used three text-boxes, with a scroll-bar with each. The scroll-
bars must of course be the same height as det edit-box. When the user push 
up or down on the scroll-bar, the values adjust up and down, or the user can 
type the values directly.

>
>Radio buttons.
>
>Some sort of selection list like the "select a font" menu.
>
>This will be my first "serious" windows app.
>--
>Doug Sewell, Tech Support, Computer Center, Youngstown State University
>doug@cc.ysu.edu	   doug@ysub.bitnet	<internet>!cc.ysu.edu!doug
>
>cat core | uuencode bunny.dropping | mail jp@tygra.michigan.com

/-----------------------------+--------------------------------------------\
|  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.                            |
\--------------------------------------------------------------------------/
From: rocker@desire.wright.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: 'model' window?
Date: 17 Dec 92 08:46:56 EST
Organization:  Wright State University 

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?