HDTenEightyP/NetNews huggingface dataset:
From: mheller@genesis.nred.ma.us (Martin Heller)
Newsgroups: comp.windows.ms.programmer
Subject: Re: MetaWare 32-bit Windows Application
Date: 28 Jul 92 08:19:57 GMT
Organization: Genesis Public Access Minix  +1 508 664 0149

In article <1992Jul24.212525.26422@ultb.isc.rit.edu> sxl2259@ritvax.isc.rit.edu writes:
>
>Does anyone know about how to port the Windows programs to MetaWare compiler
>for 32-bit environment (of course, still running under Windows 16-bit
>environemnt). I have trouble to use the GlobalAlloc & GlobalLock. Because
>the MetaWare include a NEW windows.h that declare FAR as "". (nothing)
>
>How to change my program without pain? By the way, no matter what the Local
>or Globle memory API used, I always got a compiler waring like that:
>
>"far pointer address truncated to near pointer"
>
>Why? especially in GlobalLock and LocalLock!?
>
>
>Any suggestion will be very appreciated, 
>
>
>SHen-wei
>

The MetaWare ADK converts the results of GlobalLock and LocalLock to
32-bit Far pointers. What you really want to do is switch to malloc
if you're writing C or new if you're writing C++.

Note that near 32-bit pointers (as returned by malloc or new) give you
the full speed you wanted when you went to 32-bit integers to begin with.
Far 32-bit pointers are just as slow as far 16-bit pointers.

-- Martin Heller
Programming Columnist, WINDOWS Magazine
Newsgroups: comp.windows.ms.programmer
From: scott@asd.com (Scott Barman)
Subject: Command line arguments question
Organization: American Software Development Corp., W. Babylon, NY
Date: Wed, 29 Jul 1992 20:13:53 GMT

I am far from a Windows expert but I am trying to help a friend out with
a program written for Windows 3.0.  What we are trying to do is access
the command line in a section that is not part of the WinMain()
function.  Yes, we know about that the command line is passed to the
WinMain() function [please excuse me but I do not have the source code
in front of me to refer to and I'm trusting my increasingly failing
memory], but one has to parse this thing and I'm not really in the mood
to write this type of function or re-invent the wheel.  So I RTFM.

Now after RTFM (the MicroSoft books), I found that there are variables
__argc and __argv that seem to echo the "normal" argc and argv that
would be passed to main() if I wasn't dealing with a Windows program.
HOWEVER, in trying to determine the best way to do this, several
"experts" have said to use that "szCmdLine" (or whatever) variable from
the WinMain() call that there is no __argc or __argv.  Personally, I
would rather use the __argc and __argv if they behave like they are
supposed to rather than re-invent the wheel and parse the command line.

So the question is can I define:

	extern int	__argc;
	extern char	**__argv;

and access the command line using those variables?

Please respond via email since my net reading time is at a minimum these
days (just too much to do!).

THANKS!!!!
-- 
scott barman			| <This space intentionally left blank>
scott@asd.com			|
 (I can barely speak for myself, you expect me to speak for my employer??)
Newsgroups: comp.windows.ms.programmer
From: john@utafll.uta.edu (John Baima)
Subject: How to select multiple items in a combo box :(
Organization: University of Texas at Arlington
NntpPostingHost: utafll.uta.edu
Date: Tue, 21 Jul 1992 02:25:22 GMT
X-Bytes: 524

I would really like to have a combo box that allows multiple
selections. I like the combo box in this case because it does not take
up as much dialog real estate. However, I need multiple selections
like a list box. Is there any way to get multiple selections in a
combo box? Any other good suggestions about how to stack 12 list boxes
into one dialog box?

Thanks for any help or suggestions.
 
John Baima
Silver Mountain Software   1029 Tanglewood, Cedar Hill, TX 75104
john@ling.uta.edu          Voice/Fax (214) 2932920

Newsgroups: comp.windows.ms.programmer
From: sxl2259@ritvax.isc.rit.edu
Subject: MetaWare 32-bit Windows Application
Reply-To: sxl2259@ritvax.isc.rit.edu
Organization: Rochester Institute of Technology
Date: Fri, 24 Jul 1992 21:25:25 GMT


Does anyone know about how to port the Windows programs to MetaWare compiler
for 32-bit environment (of course, still running under Windows 16-bit
environemnt). I have trouble to use the GlobalAlloc & GlobalLock. Because
the MetaWare include a NEW windows.h that declare FAR as "". (nothing)

How to change my program without pain? By the way, no matter what the Local
or Globle memory API used, I always got a compiler waring like that:

"far pointer address truncated to near pointer"

Why? especially in GlobalLock and LocalLock!?


Any suggestion will be very appreciated, 


SHen-wei
From: axb@cse.nd.edu (A. B.)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Int 13h under Windows?
Date: 22 Jul 92 07:15:23 GMT
Organization: University of Notre Dame
To: t90adr9@mp.cs.niu.edu (Alan Reeve)




Several solutions exist -
 1. use DPMI 
 2. call a DOS based interrupt handler thru int 21h that does the int13h
for you. 

-axb 

( Arindam Banerji ) 
 axb@cse.nd.edu )
From: ekalenda@netcom.com (Edward J Kalenda)
Newsgroups: comp.windows.ms.programmer
Subject: Rotating a bitmap
Date: 29 Jul 92 05:46:22 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

I'm trying to rotate a bitmap by 90 degree increments and not getting
anywhere with the 90 and 270 rotation. Using StretchBlt() I was able
to do the 180 rotation by starting in the bottom-right corner and
using negative width and height. The problem with 90 and 270 is that
I need to exchange the X and Y axis of the bitmap, along with doing
a mirror.

Does anybody know how to do this? Or am I going to have to do it one
bit at a time?
-- 

Ed
ekalenda@netcom.COM
Newsgroups: comp.windows.ms.programmer
From: greg@ctpm.uq.oz.au (Greg Hall)
Subject: ObjectGraphics Question
Organization: Centre for Language Teaching and Research, Uni of Queensland, AUSTRALIA.
Date: Fri, 31 Jul 1992 02:36:22 GMT

Does anybody know how to get The Whitewater Group's ObjectGraphics
Library to work? I've tried compiling their example files under
BC++ 3.0 and 3.1 and I keep getting undefined symbol linker errors
for things like TScroller and TWindowsObject etc. At first I thought
it might just be BC++ 3.1 but I couldn't get it to compile under
3.0 either. 

Also, does anyone know how to produce a DLL of the ObjectGraphics
Library? This would help a lot.

Thanks in advance

Greg Hall
Centre for Tropical Pest Manangement
Brisbane, Australia
greg@ctpm.uq.oz.au

--
From: dh4h+@andrew.cmu.edu (David A Hanekamp)
Newsgroups: comp.windows.ms.programmer
Subject: Menu Disappearing
Date: 30 Jul 92 20:55:10 GMT
Organization: Freshman, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

I'm writing a program in Borland C++ 3.1 with the owl libraries.  When
I create a second window in my program, some of it's menu items are
just dashes.  Sometimes the menu title doesn't even appear.  It
appears that something is going wrong when reading in the menu
resource.  This menu is different from the main window of the program.
Has anyone ever seen this before?  Is it possible that I'm running out
of stack or heap space?
  Dave
-------------------------------------------------------------------------------
|                                                                             |
|   David A. Hanekamp, Jr.                    dh4h@andrew.cmu.edu             |
|   Carnegie Mellon University                                                |
|   Pittsburgh, PA      USA                                                   |
|                                                                             |
-------------------------------------------------------------------------------
Newsgroups: comp.windows.ms.programmer
From: GG.MPD@forsythe.stanford.edu (Michael Durket)
Subject: Font info without a device context?
Organization: Stanford University, California, USA
Distribution: na
Date: Thu, 30 Jul 1992 18:33:12 GMT

     I need to find the dimensions of a raster font in device
units, before I have a window created. Thus, I cannot use the
normal font information functions, because I do not have a
device context available to me.

     Is there some way I can get this information from Windows
in a legitimate fashion? The font(s) have been loaded via the
AddFontResource call and I've used the CreateFontIndirect calls
to create the handle(s) I need. Now, I want to find out how
wide and high (in pixels) the characters are (it's a fixed
pitch font) without having a device context available. Can
I somehow create an information context for the display device
and use that or are information contexts not to be used for
other than printers?

    Any help would be appreciated. Please reply via email as
I don't get this newsfeed that reliably.
From: gillispi@sawdust..westford.ccur.com (Tom Gillispie)
Newsgroups: comp.windows.ms.programmer
Subject: How do I resize a listbox?
Keywords: resize, listbox
Date: 29 Jul 92 16:44:03 GMT
Distribution: all
Organization: Concurrent Computer Corp.  Westford, MA

How can I change the size of a child listbox?  I've
tried sending it WM_SIZE messages, and given it the necessary
style bits (THICKFRAME, etc), but it does not seem to resize.

I can resize it ok using the mouse, so it must be able to do it
somehow.

Any pointers would be very much appreciated.  If it's not too
much trouble, could you also e-mail me any responses since I 
can't check this list too often.  Thanks in advance.

Tom Gillispie (gillispi@westford.ccur.com)
--
Tom Gillispie               Internet: gillispi@westford.ccur.com
Concurrent Computer Corp.   Phone: (508) 392-2719
1 Technology Way
Westford, MA  01886
From: prato@qut.edu.au
Newsgroups: comp.windows.ms.programmer
Subject: Print Bar Codes from Windows
Date: 27 Jul 92 16:05:02 EST
Organization: Queensland University of Technology


    Would anyone know the existence of a Windows font
    that allows you to print bar codes in a Superbase 4 
    Windows application ?

Xref: sparky comp.windows.ms.programmer:7351 comp.lang.c++:11496 comp.os.msdos.programmer:8060
From: pluto@cs.ucsd.edu (Mark Plutowksi)
Newsgroups: comp.windows.ms.programmer,comp.lang.c++,comp.os.msdos.programmer
Subject: Re: Borland 3.1 C++ Debugger and MS Windows 3.1
Keywords: Borland C++ 3.1 Turbo Debugger Orchid Fahernheit 1280 problems
Date: 24 Jul 92 21:09:10 GMT
Followup-To: comp.windows.ms.programmer

hartung@crl.ucsd.edu (Jeff Hartung) writes:

>In article <timann.711818019@narziss> timann.pad@sni.de (Martin Timann) writes:

>...[I had a problem with Orchid's F1280 card and BC++ 3.1] :
>>everything worked fine.  The only way I could use the 640*480 (256) was to
>(BTW, I haven't even tried debugging a Windows app yet, given the problems
>with DOS debugging.  I'd imagine the problems would arise there as well.  Any
>experiences out there?)

I have an application that I developed using BC for Dos, which was
running and debugged when I ported it to windows.  Once I got the
windows version running, (running without any error messages upon exit)
I tried to run the debugger to step thru the code.  It (TDW) left for Dos,
gave me the menu & source editor windows etc. all fine and dandy.  But 
when I asked it to display the output window (i.e., Windows)
it hung.  

I am using Windows 3.1, BC for Windows 3.1, a Fahrenheit 1280D card
(with the upgraded drivers for Windows 3.1) at 1028x768 with 8 Meg of RAM.
(I may have experienced the same difficulty at 800x600 but don't quote
me on that.. my memory is failing me) 

= Mark


P.S. Oh, BTW, Borland's usually helpful tech support offered great
insight into this problem (NOT!)  I think the exact quote was:
"Hmmm.  [Silence.]"
Newsgroups: comp.windows.ms.programmer
From: jaz@icd.ab.com (Jack A. Zucker)
Subject: Spreadsheet Libraries
Organization: Allen-Bradley Company, Inc.
Date: Fri, 31 Jul 1992 18:28:49 GMT

Are there any available for Windows ? We would like to provide
spreadsheet like capibility in one of our products.

-Jaz

-- 

          | Bmaj7  D7  | Gmaj7 Bb7 | Ebmaj7  | Am7  D7  |

| Jack A Zucker                              {uunet}!jaz@icd.ab.com |
| Allen-Bradley Company, Inc.                    or  ICCGCC::ZUCKER |
| 747 Alpha Drive                                                   |
| Highland Hts., OH 44143 Phone(216) 646-4668   FAX: (216) 646-4484 |
From: graco01@cai.com
Newsgroups: comp.windows.ms.programmer
Subject: HELP!! Loading bitmaps that are not part of a resource
Date: 27 Jul 92 12:29:52 GMT
Organization: Computer Associates International

I need to be able to load a bitmap (a *.bmp file) that is not part of a
resource.


-- 
Dean Grammas..............................................dxg@cai.com

   "All I ask is a chance to prove that money can't make me happy."
.....................................................................
Newsgroups: comp.windows.ms.programmer
From: tinyguy@cs.mcgill.ca (Yeo-Hoon BAE)
Subject: Help on programming MDI interface
Organization: SOCS - Mcgill University, Montreal, Canada
Distribution: na
Date: Fri, 31 Jul 1992 01:56:39 GMT


Hello,


   I am cuurently experimenting with MDI interface by
making some adjustments to the 'blandmdi' sample that
came with the SDK package. What I would like to do is
to be able to open several child windows, all containing
different contents, and to allow them to re-paint
properly when necessary so preserve the contents of
each window. I've managed to add some lines/shapes to each 
window, but there seems no way to tell which of the
child window requires re-painting. The message WM_PAINT
sent to the client window doesn't necessarily allow
re-painting of the child window at the right instance...

I'd appreciate if anyone can help!

Thanks.

-TG


+-----------------------------------------------------------------------------+
| Yeo-Hoon Bae           My new Merc 500SL...    Undergrad. U3/4, soon U5 :(  |
| tinyguy@cs.mcgill.ca           __o             Computer science             |
| (514) 939-9560                -\<,             McGill University            |
| ............................(*)/(*)............Montreal, Quebec, Canada     |
+-----------------------------------------------------------------------------+
Newsgroups: comp.windows.ms.programmer
From: jgeniec@cis.ohio-state.edu (Joseph Geniec)
Subject: The no-message dispatch index in Turbo C++ for win
Originator: jgeniec@boa.cis.ohio-state.edu
Organization: The Ohio State University, Department of Computer and Information Science
Distribution: oh
Date: Sat, 25 Jul 1992 06:20:08 GMT

	I have a dumb question that some if not all of you TCPP hackers
can answer. How do you declare a function with a "no message" dispatch,
meaning "It should branch there if there is no message". I tried
WM_FIRST alone, but it didn't seem to work. Also, am I barking up
the wrong tree? Is there a better way to handle the "branch here if no
message" problem?

						Joseph Geniec
						jgeniec@cis.ohio-state.edu
From: whedon@netcom.com (Bill Whedon)
Newsgroups: comp.windows.ms.programmer
Subject: Buttons on the titlebar - HOW?
Keywords: Titlebar button
Date: 28 Jul 92 21:26:47 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

I have a floating button out in my client area which I would like to
put on the left end of the titlebar (I don't use a system menu).  The
GetWindowDC call only gives me the HDC to do stuff like putting up text
and/or bitmaps there.  I have no desire to create my own button.  So,
has anyone out there got a clue as to how to get it to paint on the
titlebar??

Also, if anyone put up an answer to how one places multicolored text in
a listbox, I didn't see it.  Seems a useful thing to be able to do, so 
if someone knows how, please post it here and be a hero!

Oh..  I nearly forgot, it seemed so obvious... MSC or BC, please!

Thanks!
From: stacey@desktop.nsc.com (Stacey Toland)
Newsgroups: comp.windows.ms.programmer
Subject: Install program
Date: 21 Jul 92 21:04:37 GMT
Organization: PLD Software Group, National Semiconductor Corporation

Does anyone know of an easy way to automatically install a group
file? 

My software is complete and now I want to write an installation
program that will create a group file which will appear in the
program manager. I want to do this so the user won't have to go
and create a new program group and item for my software.

Thanks in advance,
Stacey
Newsgroups: comp.windows.ms.programmer
From: yyang@wsuaix.csc.wsu.edu (yongqi yang;S10000)
Subject: Anybody experienced this problem with MSC7.0 linker? 
Organization: Washington State University
Date: Wed, 22 Jul 92 03:20:27 GMT

I am converting one of my old C++ program from BC code base to MSC7.0. The 
program got compiled fine. When I tried to link it, I got some error message 
from the MSC linker, complaining some exported class member 
functions have no internal representation, error L2022. 
BTW, the program is a DLL. I dump the map file, and after several
minutes checking, I found all those functions that the Linker complains had 
very long names, and been assigned to 0000:0000. So I did some test by reducing
the length of the name of some member functions, and fixed some complains. On
the other hand, the program was compiled and linked under Borland C++ fine.  I
wonder if anybody else experienced this kind of problem. It seems to me MSC7.0
linker doesn't handle long function name very well.
From: changm@cs.umn.edu (Ming-Tsung Darda Chang)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Icon imagery -> .bmp
Date: 31 Jul 92 15:27:55 GMT
Organization: University of Minnesota, Minneapolis, CSci dept.

In article <1992Jul29.222255.2015@brandonu.ca> robbins@brandonu.ca writes:
>This may or may not be a simple/hard/stupid/etc., question but since I am not
>intricately involved in Windows, here it is:
>
>Is there a simple/standard way/program to extract iconic imagery from
>executable programs and form .bmp files from them?
>
I have tried to the following two ways to do so.

(1).	use rx.exe to get resources from .exe file and use ico2bmp.exe to
		translate the .ico file into .bmp file! (I only tried the first
		step!)

		Where to find them:
		rx.zip- a reverse windows(TM) 3.0 resource-compiler
			ftp site: 	ftp.cica.indiana.edu (129.79.20.84)
			directory:	ftp/pub/win3/programr
		ico2bmp- read an icon and extract colors to BMP
			ftp site:	same as above
			directory:	ftp/pub/win3/icon

(2).	use rx.exe first and then use imagedit.exe from Microsoft C/C++ 7.0.
		open the icon you just have and open imagedit.exe again without
		quitting the first imagedit.exe.
		Choose new bmp format from menu bar on second imagedit.exe.
		select the 32x32 rectangle and copy it on first imagedit.exe and
		paste it into the second imagedit.exe.
		Well, you will get the .bmp format on second imagedit.exe.

That's what I know about it.
BTW, does anyone know how to convert the icons from Macintosh into ones on 
MS-Windows or reverse!

Thanks for your help!

Darda
-- 
========================================================================
= Mr. Ming-Tsung Darda Chang                                           = 
=----------------------------------------------------------------------=
= Computer Science Department              Internet: changm@cs.umn.edu =
From: hjelm+@cs.cmu.edu (Mark Hjelm)
Newsgroups: comp.windows.ms.programmer
Subject: Huge Pointer question
Date: 28 Jul 92 19:51:40 GMT
Article-I.D.: cs.1992Jul28.195140.137052
Organization: School of Computer Science, Carnegie Mellon


    If I were to allocate two large (>64k) chunks of memory, say
using GlobalAlloc, what would be the proper way to copy the data
from one to the other?  When I use GlobalLock on such things, is
the offset portion of the returned pointer guaranteed to be 0?  If
so, can I just step though the chunks in 64k pieces, converting a
huge pointer to the base of each piece to a far pointer and then
using the standard _fmemcpy and friends?  If so, does this technique
work under both Microsoft C and Borland C (i.e. do they implement
huge pointers the same way)?  If not, what do I do?  What about if
I want to copy some portion of the chunks of memory at different
offsets within the chunks?  Do I need to be really careful about
64K boundaries? Just for completeness, what about plain DOS and 
halloc?
    
Thanks,
Mark
hjelm@cs.cmu.edu
From: stacey@desktop.nsc.com (Stacey Toland)
Newsgroups: comp.windows.ms.programmer
Subject: DOS child window
Date: 28 Jul 92 17:54:57 GMT
Followup-To: sender
Organization: PLD Software Group, National Semiconductor Corporation

Does anyone know how to create a child window with DOS inside?

I've create several child windows and in one of them I like to have
DOS. I talk to Borland and they said it can't be done. Is this so?

Thank you in advance,
Stacey
From: timb@hpmwtd.sr.hp.com (Tim Bagwell)
Date: Thu, 23 Jul 1992 19:06:22 GMT
Subject: Re: hiding scrollbars when not needed
Organization: HP Santa Rosa Site (NMD MTA MWTD)
Newsgroups: comp.windows.ms.programmer

The scroll bar is hidden when you set the range to zero using
SetScrollRange (not sure of exact name). There is also a flag 
that you can set to false to hide the scroll bar. Either should
do the trick. You can look up the details in the API manual.
From: xing@andromeda.rutgers.edu (Guo-Liang Xing)
Newsgroups: comp.windows.ms.programmer
Subject: Help ! PWB for MSC7.0 won't work with Novell
Summary: HELP WANTED !
Keywords: MSC7.0 PWB, Novell
Date: 28 Jul 92 19:58:51 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

Hi Netters, We've recently loaded MSCv7.0 on a PC with a Novell Net connected.
We have found that when one is logged on the Novell, the PWB can't find any files.
Even when the file is in the current working directory. PWB responds by specifying
the directory string and filename and stating that "File Not Found". Everything 
seems to work fine as long as one is not logged onto the Novell Network, hence
it doesn't seem to be a conflict with the IPX or NET5 drivers. We post this 
here because it's a related windows programming problem. (eg no win programming
till we can figure this out !)

By the way, when logged onto the Novell, upon exiting windows the system halts with a
"INVALID COMMAND.COM".

We'd appreciate any feedback on these problems.

Please reply by EMAIL to :
NUS40@TTACS1.TTU.EDU (Bin Wang)
or
NUS16@TTACS1.TTU.EDU (Mike Morelli)

Thanx for your help !
From: rej@imada.ou.dk (Rune Enggaard Jensen)
Newsgroups: comp.windows.ms.programmer
Subject: owl.h before arrays.h = problems (BC++ 3.0)
Date: 26 Jul 92 16:24:15 GMT
Organization: Dept. of Math. & Computer Science, Odense University, Denmark

The following program will not compile under BC++ 3.0. However if you
swap the lines #include'ing owl.h and arrays.h, everything compiles
smoothly.

#include <iostream.h>

#include <owl.h>
#include <arrays.h>
 
void main(void)
{
    const BI_ArrayAsVector<long> a(2);
 
    a[0] = 0;
}

If anybody has any ideas what goes wrong (patches accepted :-) ), please
email them to me. If this has been corrected in BC++ 3.1, I'd also like
to know.

Thanks in advance,

Rune Enggaard Jensen
Dept. of Math. & Comp. Science
Odense University
Denmark

email: rej@imada.ou.dk
Newsgroups: comp.windows.ms.programmer
From: umbrzez0@silver.cs.umanitoba.ca (Andrzej Brzezinski)
Subject: Actual length of text in multiline edit control?
Summary: How to obtain the length of text in multiline edit control?
Organization: Computer Science, University of Manitoba, Winnipeg, Canada
Distribution: all
Date: Sun, 26 Jul 1992 14:51:19 GMT

I am using Borland C++ 3.1. I would like to obtain the actual length of text
in multiline edit control but I don't know how to do it. TEdit class only 
provides a method for obtaining the length of a specified line. Do I have to
loop through all the lines or is there a better way?
-- 
------------------
Andrzej Brzezinski, umbrzez0@silver.cs.umanitoba.ca
University of Manitoba, CANADA