HDTenEightyP/NetNews huggingface dataset:
Organization: University of Illinois at Chicago
Date: Tuesday, 18 Aug 1992 09:38:38 CDT
From: <U43893@uicvm.uic.edu>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: WindowsMaker Pro (C++) and MFC

Hello, news readers.

I am a novice in MFC and Windows programming. I am using WindowsMaker with
Switch-It Code Generation Module for MFC C++ for the first time as well.
I need an advice for the following problem:
After I designed an interface with dialog box and a list box inside it,
WM Pro generated the C++ modules. On the user level I could add code to the
classes I needed. That 's fine. However, I'd like to operate with my list
box through the CListBox MFC which, I believe, WM Pro uses in its code
Generation. The problem is that in the created files there was nothing
declearing an object of that class. But I realize that it is somewhere
there. So, how can I access it's member functions for the instance of my
particular list box.

Can anybody please give me a hint. Thanks in advance.

Vitaly.
---------------
Please send mail to :

    shatsky@parsys.eecs.uic.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: ppc1@cec1.wustl.edu (Peter Pui Tak Chiu)
Subject: invalid window
Organization: Washington University, St. Louis Mo.
Date: Sat, 22 Aug 1992 12:49:23 GMT

dear programmers,

i am new to windows programming.  i am trying to write a paintbrush type
program as an exercise.  but i found some problem.

i am using quick c for windows to do it.

when some windows cover my paint program, all the drawings are gone and i have
no clue what to do to restore it.  i think i have to use fuctions like:
CreateBitmap and BitBlt but what should i do with them?

can i create a bitmap structure and copy the whole client window to the bitmap
and restore it when the window becomes in focus again?

also, would anyone tell me how i can determine the size of the window (the
height and width) at runtime?

thanks a lot in advance!!!


peter
.


Newsgroups: comp.os.ms-windows.programmer.misc
From: varga@alw.nih.gov (Mary Varga)
Subject: Need to speed up print module in Designer 3.1 
Keywords: printing under windows designer
Organization: National Inst. of Health, DCRT, CSL
Date: Wed, 19 Aug 1992 22:36:56 GMT


I'm capturing screen images with
snapshot(a windows program which captures whats being displayed on the screen).

I then run designer(a graphic package) and paste the captured image using edit:paste option in designer. This works O.K.

I then run file:print and the print job takes (5 min.) to print local HP IIIsi.
When I capture to MS Word the print job takes just a few seconds. Why?

Is there a graphics package which is like Designer 3.1 that prints faster? 

I'm using a 486/33 with 16 meg. RAM, Windows 3.1, & Designer 3.1.

The hardware I'm using is optimal. I'll like to know why designer takes so long. 

Any insights will be helpful.

Thanks!


Newsgroups: comp.os.ms-windows.programmer.misc
From: scott@ods.com (Scott Harper)
Subject: Change App's Icon On The Fly
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL5
Date: Mon, 17 Aug 1992 21:05:33 GMT

Howdy netland -

I need to change a (minimized) application's icon "on the fly", and
have the new icon displayed.  In Win 3.0 I used to call

   SetClassWord(hWnd, GCW_HICON, hNewIcon);    then,

   if (IsIconic(hWnd))
      InvalidateRect(hWnd, NULL, TRUE);

and it worked like I wanted it to.  However, since I've switched
over to the 3.1 SDK, it no longer works.  Any suggestions?

Thanks in advance -

-- 
Scott Harper                       Optical Data Systems, Inc.
scott@ods.com                      1101 E. Arapaho Road
(214) 234-6400                     Richardson, TX  75081
From: leeda@comp/windows/ms/programmerps.msu.edu (Dae Hee Lee)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: font format
Date: 16 Aug 92 22:40:35 GMT
Reply-To: leeda@cps.msu.edu (Dae Hee Lee)
Organization: Dept. of Computer Science, Michigan State University
Originator: leeda@atlantic.cps.msu.edu

I would like to know .fon file format in windows 3.x.
Is there anyone who could help me?

Thank you.

Daehee
Newsgroups: comp.os.ms-windows.programmer.misc
From: paul@sierra.com (Paul Stratton)
Subject: Re: How to display a tiff file ?
Organization: Sierra Geophysics Inc.,  Kirkland, Wa
Date: Wed, 12 Aug 1992 22:13:51 GMT

I surprised somebody hasn't mentioned Sam Leffler's tiff libraries.  Does
fax, lzw, etc.  Here is the HOWTO file that talks about where to get it.

$Header: /usr/people/sam/tiff/RCS/HOWTO,v 1.8 92/02/21 15:31:47 sam Exp $

How To Obtain This Software (in case all you get is this file)

The software is available for public ftp on
    sgi.com                     graphics/tiff/v3.0.tar.Z
        (192.48.153.1)
    ucbvax.berkeley.edu         pub/tiff/v3.0.tar.Z
        (128.32.130.12)

For example,
    ftp -n sgi.com
    ....
    user anonymous
    ... <type in password>
    cd graphics/tiff
    binary
    get v3.0.tar.Z

The software comes in a compressed tar file.  To extract the
information:
    zcat v3.0.tar.Z | tar xf -
(uncompress and extract individual files in current directory).

There is also a companion compressed tar file, v3.0pics.tar.Z
that has sample TIFF image files.  These are mostly useful in
testing the software if/when you port it to an unsupported system.


-- 
Paul Stratton               -----   -----   -----    -----    -----    ------
Sierra Geophysics, Inc.    /          /    /        /    /   /    /   /     /
P.O. Box 3886              -----     /    /---     /-----   /-----   /-----/
Seattle, Wa.  98124            /    /    /        /   \    /  \     /     /
From: marwk@levels.unisa.edu.au
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: BC++ example of owner-draw button request
Date: 13 Aug 92 03:59:09 GMT
Organization: University of South Australia

How does one use BC++ to create owner-draw buttons like on the title bar
of TC++ for WINDOWS?

An example or a reference to source code which does this would be very
helpful indeed.


Thank you in advance.

Raymond

--
University of South Australia   | Act in haste and repent at leasure
P.O. Box 1                      | Code too soon and debug forever
Ingle Farm                      | Knobs, knobs everywhere,
South Australia                 |              just vary a knob to think!
Newsgroups: comp.os.ms-windows.programmer.misc
From: aa596@cleveland.Freenet.Edu (Peter Haller)
Subject: Re: BC++, Interrupt/msg at const time interval
Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Wed, 19 Aug 92 00:56:43 GMT


In a previous article, pshepher@elli.une.edu.au (Philip Shepherd) says:

>
>What is the best method for setting up an interrupt (or prehaps message)
>to be activated at a quaranteed time interval using Bc++3.0, Win 3.1
>
>c.f. SetTimer(), WM_TIMER not appropriate as these only quarantee the
>specified time interval has elapsed.
>
>Thanks,
>
>Phil
>
>P.S. I believe there's been some traffic on this question in the recent
>past but my connection to AARNET has been down...
>-- 
Use the Multimedia timer. timeSetEvent() will give you an interrupt 
and call a user defined callback from which you can then post a message
to a window for processing.

PCH
-- 
Peter C. Haller				|	'If you do what you
Lorain Products				|	have always done,
aa596@cleveland.Freenet.Edu 		|	expect what you have
"Are we having fun yet?"		|	always received.'
From: dlee@girtab.usc.edu (David J. Lee)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How much memory is needed to run a program?
Date: 16 Aug 1992 10:07:46 -0700
Organization: The Island of Misfit Toys
NNTP-Posting-Host: girtab.usc.edu

In article <1992Aug11.180831.5010@fics.uucp>, ekl@fics.uucp writes:
->I have a program that runs as a beauty under Windows 3.1, but
->refuses to start under Windows 3.0, with windows giving the
->message "Insufficient memory to run this application; close 
->one or more windows applications and try again". 
->[...]
->Help About claims that there is 400+ K free memory, and 72%
->free resources. Which roof am I hitting?

I once had this problem.  It can mean that you are out of memory below
640K.  Windows needs some of this memory per app/dll.  If you are out
you simply get the "Insufficient memory" message.  There is no other
indication anywhere about what the real problem is.

If you specify on the compile line that data should be put in its own
data segment per source file, Windows will load that data fixed and
non-discardable in the lower 640K of physical memory.  Windows 3.1 is
a little smarter and seems to only load _some_ of it low.  I'm not
sure why it does this.  Anyway, if this is your problem you have to
write a peice of assembly code that unlocks and moves each of your
datasegments when your app starts.  This is the "official" fix from
Microsoft Support.

Then again, this may not be your problem at all.

.

Newsgroups: comp.os.ms-windows.programmer.misc
From: ken@cs.UAlberta.CA (Huisman Kenneth M)
Subject: buttons and scrolling
Keywords: microsoft c++ MFC
Organization: University of Alberta, Edmonton, Canada
Date: Sat, 22 Aug 1992 17:57:48 GMT

I am currently in the early stages of developing my first windows app
using microsoft c++ and the foundation class library.  I have one question.

My application will have a set of buttons on the top of the window, with
some scrollable text below, not unlike the windows help facility.  The problem
I am having is, I haven't been able to figure out how to put the buttons
on the screen in such a way that they are not in the same client area as
the text.  Right now, they get scrolled off the screen..:-(  So if anyone
knows how I should be doing this, please tell me.


Some unrelated questions:

does anyone know of a good public domain vi-clone and grep utility for
dos that I can ftp somewhere?  I'd appreciate it as well if someone could
tell me where to find one ( especially a grep utility.  Come to think of
it, a diff utility would be nice too).


Thanks in advance

Ken


(((((((((((((((((((((((((((((((((*))))))))))))))))))))))))))))))))))))
(( Ken Huisman, Bsc.                                                ))
(( Programmer, City of Edmonton                                     ))
(( ---------------------------------------------------------------- ))
(( email: ken@cs.ualberta.ca                                        ))
(((((((((((((((((((((((((((((((((*))))))))))))))))))))))))))))))))))))

Newsgroups: comp.os.ms-windows.programmer.misc
From: dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL)
Subject: Re: invalid window
Originator: dspascha@c00083-100lez.eos.ncsu.edu
Reply-To: dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL)
Organization: North Carolina State University, Project Eos
Date: Sat, 22 Aug 1992 19:13:15 GMT


Hi.  Whenever a window covers up some or all of you application's window and
is then removed (presumably to re-expose your window), Windows "invalidates"
the overwritten portion of your window and sends your application a WM_PAINT
(that should be WM<underscore>PAINT -- for some reason my underscore isn't
working) message telling you what part of the window has been destroyed and
that you need to "repaint" it.  Sounds like you're either not responding to
this message, or for some reason it's just not getting to your message handler.

Tschuess,
David Paschal
Newsgroups: comp.os.ms-windows.programmer.misc
From: whedon@netcom.com (Bill Whedon)
Subject: Re: How do I put a DIB on the clipboard?
Date: Mon, 17 Aug 92 18:58:49 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Keywords: DIB clipboard

In article <1992Aug17.113753.2174@siesoft.co.uk> crs@siesoft.co.uk (Chris Smith) writes:
>Does anyone have some code to put a device independant bitmap on the clipboard?
>I have the petzold book as my main reference and it just glosses over the
>subject.
I don't think it matters what kind of bitmap you have.  You just :
OpenClipboard(hWnd);
EmptyClipboard();
SetClipboardData(CF_BITMAP,hBitmap);
CloseClipboard();

The foregoing is straight out of Petzold, and it works for me.  Or maybe
I don't really understand the problem?  (Not at all impossible :-)  )

Oh.  You said DIB.  Try 
SetClipboardData(CF_DIB,hMem); /* Instead of CF_BITMAP and hBitmap */
giving the handle of your DIB memory.  There's more detail (but no sample
code that I could find) in the SDK doc under SetClipboardData.
Good luck!
Bill Whedon
From: cm@cmm.ovum.ka.sub.org (Christoph Mueller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How does SQLBase tell where from which app. calls come from?
Keywords: Gupta SQLBase, Single User Version
Date: 22 Aug 92 22:16:06 GMT
Organization: Christoph's PC, Karlsruhe, Germany

Hello everybody,
   I have a question concerning the single user version
of Gupta SQLBase.  For some reason it is impossible to
have two programs access (that is, be connected to)
the database at the same time.  However, it is no
problem to have multiple cursors open at once as long
as this happens within the same application.  Now my
questions:
Why is this so?
Does this limit refer to one instance using the database
at a time (instance being anything that has its own
instance handle)?  Would it be possible to fake this
one-program restriction by means of a DLL as intermediate
layer between the database and multiple application
programs.
The sqlcnc command does not have hInstance as a
parameter though.  How does the database tell where
the connect command comes from?
Any help would be greatly appreciated, by mail
or by posting to this newsgroup.  
Thanks.

---Christoph, Germany    ---   cm@cmm.ovum.ka.sub.org
-------------------------------------------------------------------------
Dysklaemours?  What's that?  How do you spell that?  Do I need that?
I  *AM*  the  SYSTEM,  the  EMPLOYER,  and  the  ORGANIZATION  !!
From: tokuro.yamashiro@uttsbbs.uucp (Tokuro Yamashiro) 
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: ATM
Date: 19 Aug 92 23:01:00 GMT
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591
Reply-To: tokuro.yamashiro@uttsbbs.uucp (Tokuro Yamashiro) 

Does anyone here do any ATM (Adobe Type Maneger) programming?
                                                                  
Xref: sparky comp.os.ms-windows.programmer.misc:1437 comp.os.ms-windows.programmer.tools:749 comp.lang.pascal:4967
From: dj@ssd.kodak.com (Dave Jones)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.lang.pascal
Subject: Re: Displaying data in an Icon
Keywords: windows, icon, tpw
Date: 21 Aug 92 19:13:00 GMT
Organization: :noitazinagrO

In article <1992Aug19.202034.20024@gtephx.UUCP> bakern@gtephx.UUCP (Nigel Baker) writes:
>I am trying to find out how to make the icon of a minimized 
>application display data.
>
>For example the clock program that comes with Windows 3.1 shows
>the current time in it's icon when it is minimized.
>Does anybody out there know how this is done ?
>
>I'm using TPW ver 1.5 with Whitewater Resource Toolkit.
>
As somebody else suggested, follow Petzold's example.  However, the
really crucial thing is this: when you register your Window's class,
don't give it an icon.  That way you ensure that all repaint requests
will come to you via the WM_PAINT message.  Then you can test your
window handle with IsIconic() to find out if you have to paint the 
icon or the window.  I use this for a Mac-style trashcan.  I just
use DrawIcon with the plain icon (for empty can) or a bulging icon
(for a can with something in it).  Easy.



-- 
||)) Dump the Whatizit!  Ren and Stimpy for Olympic mascots in '96 ! )))))))|
||)) "What is it, man?!?" ))))))))))))))))))))))))))))))))))))))))))))))))))|
||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
Newsgroups: comp.os.ms-windows.programmer.misc
From: dtam@fraser.sfu.ca (Dominic Pok Man Tam)
Subject: string > 64K in Windows
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Sat, 22 Aug 1992 07:39:38 GMT

Hello :



I want to allocate a string which is greater than 64K in windows. This should

be possible with GlobalAlloc ( I can allocate max 1MB in standard mode and

64MB in 386 enhanced mode) and with a huge??? pointer. However, all the

API functions in windows accept only FAR pointer (there's only 3 models for me

to choose : small, medium and large). And from the SDK documentation, I can

pass a huge pointer as FAR pointer only if the huge pointer will not straddle

a 64K boundary. What can I do if I really need to have a string which will

be greater than 64K?



Thanx in advance !!


Newsgroups: comp.os.ms-windows.programmer.misc
From: runeh@sofus.dhhalden.no (RUNE HALFDAN HOLST HUSEBY)
Subject: How to get bigger stack
Organization: Ostfold College
Date: Thu, 13 Aug 1992 03:37:06 GMT

I'm currently working on a C++ program with Borland C++ 3.0.
The project has now become quite big, big enough to 'blow the stack'.
Since I have set the 'Check for stack overflow' compiler option on, I always 
get the warning that there has occured a stack overflow. 

So, the question is, how should I make the stack big enough? 

I have tried to set the STACKSIZE variable in my .DEF file bigger, without 
stopping me from getting Stack Overflow errors. 

Is it possible to manipulate the _stklen variable to get bigger stack under 
windows, as you do under DOS?

Any help will be greatly appreciated, since I've been fighting this problem 
quite a while.

Thanks!

runeh@sofus.dhhalden.no




/-------------------------------}--}--{ /----------------------------------\
| Rune Halfdan Holst Huseby      }  {  |  S-Mail: Atomveien 18             |
|  _______________________________}{   |          1750 HALDEN              |
| (_____(_runeh@sofus.dhhalden.no_)    |          NORWAY                   |
|-------------------------------------/ \----------------------------------|
| Real programmers never work 9 to 5. If any real programmers are around   |
| at 9 am, it's because they were up all night.                            |
\--------------------------------------------------------------------------/
Newsgroups: comp.os.ms-windows.programmer.misc
From: johnb@searchtech.com (John Baldwin)
Subject: Re: To Learn Windows Programming
Organization: Search Technology, Inc.
Date: Fri, 21 Aug 1992 16:02:14 GMT

In article <713736336snx@apusapus.demon.co.uk> tfj@apusapus.demon.co.uk
  (Trevor Jenkins) writes:

>In article <r44m22p.whedon@netcom.com> whedon@netcom.com writes:
>
>> >Any suggestion on books for beginners?
>> *** Programming Windows, Charles Petzold, Microsoft Press,
>> *** ISBN 1-55615-264-7
>
>In the Windows Resource Kit I says that there will be a new edition of this
>text (persumably to cover[*] Windows 3.1) does anyone know when that
>edition will be available.


   I spoke with a person from Microsoft Press earlier this week.  The third
   edition of "Programming Windows" (which covers MS-Windows 3.1) is now
   due to be released the last week of September.  This is a yet-further-
   delay from the previous week, which placed the release date on Sept 7.

   Sorry, I don't know any details concerning why the book has been delayed.
   The original release date was in June!




-- 
John Baldwin                                        johnb@searchtech.com
Search Technology, Inc.                             uupsi!srchtec!johnb
4725 Peachtree Corners Circle, Suite 200            johnb@srchtec.uucp
Norcross, Georgia  30092   USA
From: heilakka@cc.helsinki.fi
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Group files...
Date: 14 Aug 92 20:23:13 GMT
Organization: University of Helsinki

Hi,

  I would like to make my own Windows application
Setup program. Does anyone know the group file format?
The icon bitmaps are included to the group file, aren't they?

				Thanks a lot! 
Newsgroups: comp.os.ms-windows.programmer.misc
From: johnrp@well.sf.ca.us (John Panzer)
Subject: Re: Linking OWL as a DLL?
Organization: Whole Earth 'Lectronic Link
Date: Tue, 18 Aug 1992 07:33:41 GMT

In article <c24mPB1w165w@pdaxs.techbook.com> nsilva@pdaxs.techbook.com (nsilva) writes:
>
>What is the proper way to link my TCW application with OWL.DLL?
>
>I've followed the directions in the Fine Manual: (a) define _CLASSDLL,
>(b) link in the large memory model, (c) use smart callbacks, and
>(d) add OWL.LIB, TCLASSDLL.LIB, and CRTLDLL.LIB to the project file.
>But I end up with dozens of undefined symbols, such as:
>
>Linker Error: Undefined symbol TWindow::TWindow(TWindowsObject...
>Linker Error: Undefined symbol Object::operator new(unsigned i...
>Linker Error: Undefined symbol TWindow::GetWindowClass(tagWNDC...
>Linker Error: Undefined symbol TApplication::~TApplication() i...
>etc.
>etc.
>etc.
>
>
>BTW, I'm using TCW 3.0, and Windows 3.1 (yes, I'm going to upgrade
>soon).
>
>Nate
>nsilva@pdaxs.techbook.com

You might want to try #defining _RTLDLL as well (I _know_ this is
required if you want to link in Borland's regular run-time DLL
library).  It might be needed for linking in the OWL DLL as well.

I'm posting this because it took a call to Borland to find out
about _RTLDLL; it's documented only in the chapter on the IDE. 
Hopefully this will save somebody else some time and stress.

John Panzer
johnrp@well.sf.ca.us

Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc,comp.windows.misc
From: fmkeith@cbnews.cb.att.com (francis.keithline)
Subject:  gif to bmp conversion
Organization: AT&T
Distribution: usa
Date: Mon, 17 Aug 1992 13:08:56 GMT
Followup-To: poster
Keywords: gif

Is there anything out there that will convert a .gif file to a .bmp file.  I
would like to convert a .gif to .bmp so I can change my background in windows.
Any info. on this would be appreciated.

Frank
fmk@llssak.attmail.com
From: marcusj@apricot.co.uk (Marcus Jenkins)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: DMA in Windows
Date: 14 Aug 92 08:03:53 GMT
Organization: Apricot Computers Limited

wilcox@swarm.wustl.edu (Don Wilcox) writes:

>First, what would be a good doc on the PC's DMA interface in general, and any
>limitations on that interface in Windows?

IBM PC tech. ref. + Intel's DMA controller data book.

>Second, the source code that I have (for DOS) wants the input buffer to be
>aligned on a 256K boundary.  Any ideas why?

Yes and no.  If, on an AT (as opposed to MCA), you try and DMA over a 128k
boundary (i.e. physical address of 20000h, 40000h etc.) the DMA controller
will wrap around to the bottom of that 128k (i.e. physical address of 0h, 
20000h correspondingly).  A 256k limitation would obey this rule.

>I have a DOS app that interfaces with the board, and when it is run from DOS,
>it works just fine.  When I run it in a window in Windows, the acquisition is
>garbled.  I've tried munging with PIF file settings, but I cannot seem to get
>a combination that works.  2 questions here:  since the DOS app is running in
>a VM (this is enhanced mode Windows), could the DMA buffer be mis-aligned and
>this cause the problem; and second, any ideas on PIF settings?

Part of the problem might be that the DMA controller is virtualised in
Enhanced Mode.  You could write your own VxD to handle the DMA controller
(i.e. do no tricky virtualisation on *your* DMA channel, but do the
normal virtualisation for the reset e.g. the floppy's).
The DDK, I believe, has an example VxD for the DMA controller.

When programming the DMA controller, you are *always* dealing with
physical memory addresses (i.e. what you get from 16*segment+offset).
This still applies in Windows, so you will have to get your selector:
offset addresses mapped to segment:offset addresses before getting
any sense out of the DMA controller.  I guess that your buffer *must*
be in un-swappable, un-moveable memory, too.

Hope this helps a little bit.

 _ _ _
' ) ) )                         Internet: marcusj@apricot.co.uk
 / / / __.  __  _. . . _        UUCP: marcusj@apricot.uucp
/ ' (_(_/|_/ (_(__(_/_/_)_      If all else fails from US, try:  
Marcus Jenkins                  apricot!marcusj@relay.EU.net
Tel: +44 21 472 3002  Fax: +44 21 471 2935
Disclaimer:  Anything I wrote above is, of course, my own view and
             does not in any way represent my employer.