HDTenEightyP/NetNews huggingface dataset:
From: bsm@utrcv1.res.utc.com (Brian S. McCarthy)
Subject: Big Global Arrays in DLL's? (Borland C)
Summary: I need to do a big array in a DLL.  How?
Keywords: DLL, global, array
Organization: United Technologies Research Center
Date: Wed, 6 Jan 1993 15:33:17 GMT

I need to have a big (very big, maybe 300K) global array in a DLL.

It seems to be telling me I can't have more than 32K in my global array.

Is there any way I can do what I'm trying to?  I'm using Borland C.

Thanks for any information!
---------------------------------------
Any opinions expressed here are mine alone,
and are not those of my employer or anyone else.

Brian McCarthy
United Technologies Research Center
East Hartford, Connecticut
(203)727-7638
bsm@utrc.utc.com
---------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: how narrow can I make a window?
Organization: Energy, Mines, and Resources, Ottawa
Date: Sun, 10 Jan 1993 06:40:47 GMT

I want to create a child window showing a colourscale for a map:
	+---+
	|zzz|			aaa,...zzz are different colours
	+---+- 100		10,20,100 are the data values
	|yyy|
	+---+-  90
	|xxx|
	+---+-  80
	...
	+---+-  10
	|aaa|
	+---+
Ok, I created it with WS_CHILD | WS_THICKFRAME | WS_SYSMENU | WS_VISIBLE
and I also specify the initial size (but allow it to be resized with
WS_THICKFRAME).  All is ok, and I can move it around etc.  However, like
all Windows windows (i.e. Write,Paintbrush,Notepad,etc), although the
vertical size can be reduced to almost nothing, there is a minimum
width of the window - just enough to show the system menu, part of the
caption and min/max boxes (if any).

I would like to be able to allow the user to make this window as narrow
or as wide as required, i.e. narrow enough to exclude the colour labels
or wide enough to see the labels in case the data file being viewed
has data levels like 1234567.  In other words - adjust width to suit
your taste.

Anyway, Windows won't let me make it narrows than some minimum width.
Is there another combination of WS_ styles/window types that will let me
make this window more narrow than the minimum?  Is it stated anywhere
in the docs what exactly this minimum is and why it exists?  I can see
that it shouldn't be smaller than the width of the system menu+
min box+max box (if present), but since I don't have a caption, minimize
box or maximize box, it should allow me to make it as narrow as the
system menu box.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: elliss@unixg.ubc.ca (Stefan Ellis)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Using TPW, how do I load dialog box resources from DLLs?
Date: 9 Jan 1993 08:25:15 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
Distribution: world
NNTP-Posting-Host: unixg.ubc.ca
Keywords: dialogs, DLLs, language support

Using TPW, how do I extract dialog box resources from DLLs?  I want to
store the English-language instructions for my application in a file named
"ENGLISH.DLL", the French-language instructions in "FRENCH.DLL", and so
on.  I can't find any clues in the source code and documentation
distributed with TPW.  Thanks in advance for your help!

Stefan Ellis | graduate student, University of British Columbia,
Vancouver, British Columbia, Canada | E-mail: ELLISS@UNIXG.UBC.CA
From: antonr@ohstpy.mps.ohio-state.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Manipulating .WMF files?
Date: 11 Jan 93 17:25:57 EST
Organization: The Ohio State University, Department of Physics

I would like to know how to manipulate individual objects within .WMF
file. Since .WMF is a vector format its advantage is not only that it can be
scaled without loss of quality but also that it is made up of points, lines,
circles etc. Are there any procedures inside Win API which allow 
to manipulate with vector files like .WMF?
From: scott@opl.com (Scott Evernden)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: PASCAL
Date: 11 Jan 93 22:06:51 GMT
Organization: OPL., Inc.

In article <93008.102758TMVANDER@MTUS5.BITNET> TMVANDER@MTUS5.BITNET writes:
>I'm new to this programming in windows, and I'm curious as to why WinMain
>is alwasy declared as a PASCAL calling sequence.  Please e-mail me.
>      - Todd Vander Woude
>--
>tmvander@major.cs.mtu.edu

I believe it's because the Pascal calling convention is slightly more
efficient than the C convention.  With C routines, the caller must cleanup
(pop) arguments passed to a function.  With the PASCAL convention, the
called routine cleans up the stack.  A variation of the INTEL RET opcode
can include a count which will automagically do this stack cleanup as part
of the return operation, saving the caller the trouble and the cycles.

Of course, this might not be the reason also...

-scott
----
Technical Consultant      GrayMatter Software      Holliston MA
spe@world.std.com    scott@opl.com    73116.3451@compuserve.com
User interface and application development technology and tools
Newsgroups: comp.os.ms-windows.programmer.misc
From: yvon@ramsey.cs.laurentian.ca (Yvon Lavoie)
Subject: Trouble with Metafiles
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Wed, 6 Jan 1993 01:59:35 GMT


        I wrote a program that uses metafiles to display graphics in a Windows
application.  My problem is this.  If I run the program off my hard drive, no
problem but as soon as I try running it off a floppy I get an out of memory
error prompting me to close one or more applications.  After closing my other
applications the program still gives me the same error.  My program is about
720K and uses 6 metafiles of about 65K each that are binded as resources using
the Borland resource workshop.           


This poses a real headache for me since I wish to distribute the program and be
able to run it off the floppy. When I included only 1 metafile in the program I
had no problem but as soon as I added the other 5 it bombs.  I could have the
program access the metafiles directly off the disk but this slows down the 
program considerably.

Any suggestions would be greatly appreciated.
          


Yvon Lavoie

Newsgroups: comp.os.ms-windows.programmer.misc
From: Sanjay.Vanvari@launchpad.unc.edu (Sanjay Vanvari)
Subject: Re: Graphics cut/copy/paste
Organization: University of North Carolina Extended Bulletin Board Service
Date: Fri, 8 Jan 1993 20:43:22 GMT

In article <1993Jan07.200849.9892@eng.umd.edu> equine@eng.umd.edu (Melinda L. Gierisch) writes:
>
>I am looking for sample code that allows the user to grab a portion of
>the screen (not window) and copy it to the clipboard or possibly
>another application.  I know that there are commercial software
>packages that contain this functionality, but we would then need to 
>worry about licensing agreements, etc. when distributing our application. 
>
>If anyone knows the proper commands/functions to use, has written such
>a function, or knows of a reference book that contains this
>information, please let me know.
>
>Thanks in advance,
>Melinda


what you can do is make a bitmap from the selected portion of the screen
and put the bitmap in the clipboard. For refrence you can read the showdib 
example included with SDK.

Sanjay Vanvari
--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  laUNChpad.unc.edu or 152.2.22.80
Organization: Ryerson Polytechnical Institute
Distribution: na
Date: Saturday, 9 Jan 1993 12:13:51 EST
From: Marc Zimmermann <ACPS0974@RyeVm.Ryerson.Ca>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject:    Tabbing between controls in a *window*

I've got a number of EDIT controls in an MDI child window (some multiline,
some not).  The problem is that when the user hits TAB, I get a beep if I'm in
a single-line EDIT and a physical tab inserted if in a multiline EDIT.  What
I want is to be able to move to the next EDIT control when the user hits tab
(or even RETURN).

Using WS_TABSTOP and WS_GROUP has no effect because these controls aren't
in a dialog box.

Any ideas?

Joseph Janakovic
STARCO International, Inc.
Newsgroups: comp.os.ms-windows.programmer.misc
From: JUERGEN@hugo.rz.fh-ulm.de (Juergen Mueller)
Subject: Win31, BC++3.1 and Btrieve
Summary: How to call Btrieve from Win31-Apps?
Keywords: btrieve, bc++, requester
Organization: Transferzentrum ESD
Date: Tue, 12 Jan 1993 16:54:57 GMT


Is there anybody using Borland C++ 3.1, Windows 3.1 and Novell's Btrieve?

I have the problem that I can't call Btrieve-Functions from Windows 
applications even if I've loaded the requester before Windows?

Thanks in advance for your fast answers,

Juergen

/**************************************************************************/
Juergen Mueller                             email: juergen@hugo.rz.fh-ulm.de
Transferzentrum Europ. Software Design       fido: 2:241/7910
c/o Fachhochschule Ulm                      voice: +49-(0)731-502-8265 or
D-7900 Ulm/Donau                                   +49-(0)731-7224-26
/**************************************************************************/
From: pugsley@h32.nswc.navy.mil (Don Pugsley)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DebugOutput: Unresolved External error...
Date: 11 Jan 1993 15:09:35 -0600
Organization: UTexas Mail-to-News Gateway
NNTP-Posting-Host: cs.utexas.edu


My linker cannot find DebugOutput (L2029: Unresolved External)... a search
of all files in the \WINDEV tree finds NO occurences except DBAPI.TXT and
WINDOWS.H!  I am running the 3.1 debug version, have #included toolhelp.h
and windows.h, and have tried linking with OLDNAMES.LIB as suggested by the
Error Reference section on L2029.  Where is the code for this function
supposed to be? I am sure this is a simple problem but I am very
frustrated!  Thanks...

Don Pugsley
pugsley@h32.nswc.navy.mil

Newsgroups: comp.os.ms-windows.programmer.misc
From: viel@msdrl.com (Jonathan Vielhaber)
Subject: Re: EXCEL or SYLK file-formats
Organization: Merck Research Laboratories
Date: Tue, 5 Jan 93 16:58:20 GMT

The Microsoft Excel Software Development Kit (book w/disk) contains a
detailed description of all the ways to save files from Excel.  It is
mainly geared towards version 4.0, but I think some of it could be
backwards compatable.  The list price is $49.95 (USA) and you should
be able to find it at your local book store.

				Jon Vielhaber
				jpv4904@cs.rit.edu
				viel@msdrl.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: steve@monu6.cc.monash.edu.au (Steve Balogh)
Subject: Re: RTF specs?
Organization: Monash University, Melbourne, AUSTRALIA
Date: Tue, 5 Jan 1993 12:49:08 GMT

From article <1993Jan2.182827.22290@wariat.org>, by sjsobol@wariat.org (Steven J. Sobol):
> 
> Does anyone know how to get ahold of the specs for RTF?
> 

Many (if not all) of the RTF codes are available in the online help file that
comes with the SDK 3.1 and MSC 7.0. Start up WinHelp, load the SDK help file, 
and then search for RTF. Many examples are included, however, I did not see
an example of how many of these RTF tokens can be used together to create a
file suitable for the help compiler..


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: jcl@bdrc.bd.com (John C. Lusth)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: moving the input focus
Date: 7 Jan 93 20:25:25 GMT

Hi there!

I just finished rewriting Petzold's COLORS2 program in Programming Windows
3.1 in the style of his HEXCALC example in the same book.  Basically,
my main window is a dialog box with three scrollbar controls and a
static area upon which I paint the current color as defined by the
scrollbar positions.  Now in his book, Petzold states that by including
the WS_TABSTOP windows style for your dialog controls, Windows automatically
will handle switching the input focus upon receiving a tab or shift-tab
from the keyboard.  Well, it doesn't work.  Tab and shift-tab are ignored
in my program.  If I take out the WS_TABSTOP style, then the keyboard
interface for the scrollbars disappears (e.g. PgUp and PgDown don't work),
so the WS_TABSTOP is doing something.

How do I fix this problem?  In HEXCALC, Petzold takes about keeping the
buttons from getting the input focus. My scrollbars can get the focus
when clicked upon, they just can't give it up without a mouse click on
another scrollbar.

Here is my resource file...

#include <windows.h>

#define SBS_VERT_TAB (SBS_VERT | WS_TABSTOP)

ColorMaker DIALOG 8, 16, 256, 128
    STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX 
    CLASS "ColorMaker"
    CAPTION "Color Maker"
    {
    CONTROL "&Red",   -1, "static",   SS_CENTER,      10,   4,  24,   8
    CONTROL "",       10, "scrollbar" SBS_VERT_TAB,   14,  16,  16,  92 
    CONTROL "0",      13, "static",   SS_CENTER,      10, 112,  24,   8
    CONTROL "&Green", -1, "static",   SS_CENTER,      50,   4,  24,   8
    CONTROL "",       11, "scrollbar" SBS_VERT_TAB,   54,  16,  16,  92 
    CONTROL "0",      14, "static",   SS_CENTER,      50, 112,  24,   8
    CONTROL "&Blue",  -1, "static",   SS_CENTER,      90,   4,  24,   8
    CONTROL "",       12, "scrollbar" SBS_VERT_TAB,   94,  16,  16,  92 
    CONTROL "0",      15, "static",   SS_CENTER,      90, 112,  24,   8
    CONTROL "",       20, "static",   WS_BORDER | SS_CENTER,    
        138,   4, 114, 120
    }


Any help would be appreciated.

john
-- 
John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA  jcl@bdrc.bd.com
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc
From: atropos@netlab.cis.brown.edu (David O'Donnell)
Subject: WHPE Help Project Editor?
Summary: Seeking... cannot find?
Keywords: Windows Help
Organization: Enhanced Cybernetic Logic Operating Systems Group
Date: Sun, 10 Jan 1993 08:00:09 GMT

Someone mentioned "WHPE", the Windows Help Project Editor, apparently un-
supported ware from Microsoft to help people develop Help files for Windows
apps. I tried searching for it on the Internet with archie and by looking
through the torturously-built microsoft directory on ftp.uu.net -- to no
avail. Maybe I'm just missing something? If the ware is available, I would
appreciate any help (ha ha) anyone can offer to find it. (nb: I do NOT
have a CompuServe account, so I can't look there)

Please send replies (if any) to my e-mail address only.

--Dave O'Donnell
  atropos@netlab.cis.brown.edu
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: walter@lkn.e-technik.tu-muenchen.de (Walter Loepsinger)
Subject: Re: Creating custom messages in Windows 3.1
Organization: Lehrstuhl fuer Kommunikationsnetze, TU Muenchen (Germany)
Distribution: na world
Date: Thu, 7 Jan 1993 08:23:40 GMT

Even as i could not really find out what's the purpose of this
'loop' thing, i would suggest to look at 
WM_USER
and
RegisterWindowMessage()
in your programmers reference manual.
These are two possibilities that shoul exactly fit into your need.

Hopeithelps,
Walter.

Newsgroups: comp.os.ms-windows.programmer.misc
From: troy@cbme.unsw.EDU.AU (Troy Rollo)
Subject: Re: Automatic data segment exceeds 64K
Organization: University of New South Wales
Date: Sun, 10 Jan 1993 01:06:34 GMT

From article <2935516401.1.p00090@mail.psi.net>, by "Jeffrey P. Overcash" <p00090@mail.psi.net>:
> seems to be affecting this problem.  The manual says to use the map file 
> to determine the sizes of the componant segments to see which modules 
> contribute what to the DGROUP.  I've done this but nowhere can I find 
> out how to move a module into another segment.  Any and all help will be 
> greatly appriciated.

To do this, you will need to find the global and static data in the modules
contributing most to the DGROUP segment, and move that data into separate
modules. This data should then be compiled in the *HUGE* memory model.
This data can then be declared external in the code modules. Using this
technique of compiling code in the large model, and static data in the huge
model, you effectively get to use the BC++ huge model for Windows programs.
Note that string literals are also static data, and in extreme cases these
may also need to be taken out and put into huge model modules.
--
_______________________________________________________________________________
troy@cbme.unsw.EDU.AU	      Overworked, overcommited and always multitasking.
Opinions expressed are not those of the CBME or UNSW, but are my opinions only.
You are free to adopt them.   I suggest you adopt them.    You will adopt them!
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: difference between STUFF *stuff & STUFF stuff[]??? 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 6 Jan 1993 20:26:02 +0000

In article <1993Jan6.084522.25921@emr1.emr.ca> jagrant@emr1.emr.ca writes:

>At the risk of appearing stupid again, I have another (perhaps
>obvious, but not right now at 3:30 AM) question...
> [ Lots of stuff deleted]
>
>So, can someone tell me the difference between the following 2
>statements:
>        extern STUFF *stufftable;
>        extern STUFF stufftable[];
>with respect to the code generated when I reference stufftable, i.e.:
>        stufftable[i].xxx=...
>and explain why it is so dangerous here, but it's perfectly ok
>to use a pointer or a [] in a function declaration.
>-- 
>John A. Grant                                           jagrant@emr1.emr.ca
>Airborne Geophysics
>Geological Survey of Canada, Ottawa
>

The difference is very simple:

    extern STUFF *stufftable

tells the complier that you have a global variable which is a POINTER to
a "stufftable".  ie, the global quantity is a 2 or 4-byte pointer.

    extern STUFF stufftable[]

tells the compiler that you have a global ARRAY of STUFFs.

The two things are totally different.  The reason that it doesn't matter
in a function declaration is that passing the name of an array to a function
is the same as passing a pointer to the start of the array.

Hope this helps,
-- 
--------------------------------------------------------------------------
| 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: tracyb@bnr.ca (Tracy Blomquist)
Subject: ? Device Interface w/o DDK ?
Organization: Bell Northern Research
X-Newsreader: TIN [version 1.1 PL6]
Distribution: na
Date: Mon, 11 Jan 1993 14:45:22 GMT

I have a PC card that requires the use of h/w int 2-5 (one of)
and reading/writing to several ports.  I want to port the DOS
app that uses it to Windows.  I don't have the DDK. 

I read an article in MSJ a while back about "embedded device
drivers" in windows apps.  But these drivers can only access
devices generating ints >= 30h. I'm thinking about the following
approach to get it to work...

        ----------------------------
Windows|   Windows App int. to DOS  |
        ----^-----------------------
           r/w      | int > 30h  ^
            |       V            | int > 30h
        ----V------------------------
DOS    | Data Buf | Dos device driver|
        ----^------------------------
            |       ^
         port i/o   | int 
            |       | 2-5
        ----V-----------------------
Device |          PC Card           |
        ----------------------------

Basically the card interrupts a DOS device driver or TSR (loaded at DOS
startup) which will call a s/w int that windows will grab.  Windows
will then read the appropriate data from the DOS data buffer area.

Is this workable?  If so, does anyone know of a skeleton that I can
use for this to save myself starting from scratch?   How can I get 
windows to find the location of the DOS data buffer area to read/write
to/from it?

Is there a better solution?

--
Thanks,
,----------------------,------------------------.---------------------,
| Karl Tracy Blomquist | E-MAIL: tracyb@bnr.ca  | Fax: 1-613-765-4018 |
| Consultant           |                        | Ph:  1-613-765-4886 |
`----------------------'------------------------'---------------------'
| Bell-Northern Research, P.O.Box 3511, Stn C, Ottawa, Ont., K1Y-4H7  |
`---------------------------------------------------------------------'
Newsgroups: comp.os.ms-windows.programmer.misc
From: mavmav@mksol.dseg.ti.com (michael a vincze)
Subject: TPW screen blanker
Organization: Texas Instruments
Date: Tue, 5 Jan 1993 19:18:47 GMT

Does anyone know where I can obatin example Turbo Pascal for Windows code
for the following:

	1.	Screen blankers (to generate *.SCR files.)  I know that these
		are really *.EXE files renamed, but how what are the tricks
		in implementing them?
	2.	Programs that can be tied to the File Manager so I can execute
		commands from the File Manager menu.

All help is greatly appreciated.

Best regards,
Michael Vincze
mav@asd470.dseg.ti.com
From: myhre@plains.NoDak.edu (Robert Myhre)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Need Help with DLLs
Date: 6 Jan 93 04:49:47 GMT
Article-I.D.: ns1.C0F1Ez.DJo
Organization: North Dakota Higher Education Computing Network


  Hi all.  I would like to know if it is possible to use DLL with an
executable program AFTER the executable has been compiled?

  What I am looking for is some way to add functions to a program 
without having to completely re-compile the entire program.  I realize
there must be some limitations, but if anyone can point me to a good
book or doc file I would appreciate it.

  Thanks

Robert Myhre
Computer Engineer in Training... and Training... and Training
North Dakota State University
myhre@plains.nodak.edu   (Internet)     
myhre@plains             (Bitnet)      
uunet!plains!myhre       (UUCP)         
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: pmohseni@iastate.edu (Piroz Mohseni)
Subject: windows font files
Summary: font file formats
Keywords: fonts
Organization: Iowa State University, Ames IA
Date: Tue, 12 Jan 1993 16:43:16 GMT

Can someone please tell me where I can find specs of windows font files (.fnt)?
I need to create my own fonts and I can't find enough information in books
that I got.

Thank you.

Piroz Mohseni           
Iowa State University     
                        
<pmohseni@iastate.edu>  

Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: difference between STUFF *stuff & STUFF stuff[]???
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 6 Jan 1993 22:08:41 GMT

In article <1993Jan6.151741.29382@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>In <1993Jan6.084522.25921@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
>
>>			static STUFF stufftable[MAXSTUFF];
>>   and in another module that referenced it:
>>			extern STUFF stufftable[];
>>Ok, that was fine and everything worked ok.
>
>I'm not sure that it should. Since stufftable is explicitly
>static to a module (file) you shouldn't have gotten at it
>from anywhere else. If you did, that's a bug.

	Sorry, that was my mistake.  I don't have 'static' in my code.
	It was just a typo when posting this question.  The original
	question still stands, though.

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