HDTenEightyP/NetNews huggingface dataset:
From: sa6904623@ntuvax.ntu.ac.sg
Subject: Re: Calling C from VB--Debug
Organization: Nanyang Technological University - Singapore
Date: Wed, 6 Jan 1993 00:41:06 GMT

You can use the Quick C debugger for the DLL.  Set the Project/Run options to
make the driver to be the VB program.

For the VB program, use the File/Make option to create the .EXE file.  This exe
file will be loaded and executed by Quick C.  QC will give a warning about the
application not having debug info, just ignore it.

Once the VB application makes a call to the DLL, QC is in control (traps,
traces and other debugging options are enabled).  Once the function returns to
the VB application, QC is no longer in control.

WARNING:  Set a breakpoint in the function of the DLL and use the RUN command
to start the debugging session.  Be sure to use the RUN command again at the
end of the function, before returning to the VB application.  Attempting to get
QC to STEP through the VB application leads to a protection fault!


Kenneth "Automan" Tan
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Getting rid of Help Engine on WM_SYSCOMMAND ?!
Date: 7 Jan 93 20:11:25 GMT
Organization: PE-Nelson

In article <1993Jan7.162242.7587@tandem.com>, stu@Tandem.COM (Stuart Phillips) writes:
|> I have an application with associated help.  When the user exits
|> the application via the File|Exit command, I call WinHelp() with
|> HELP_QUIT in order to cause the help engine to close its window
|> and exit.  This works just fine.
|> 
|> However, if the use exits via the close menu item on the windows
|> system menu, I can't get rid of the darn help engine!
|> 
|> I've tried processing the WM_SYSCOMMAND message and looking for
|> the SC_CLOSE event; I process it just fine, call WinHelp() with
|> HELP_QUIT but the help engine stays around!

A system menu close will end up sending you a WM_CLOSE message.  This is 
the message you should be handling for cleanup of your application and 
closing the help engine.

I usually implement my "Exit" command by simply posting a WM_CLOSE
message to myself.  I've not noticed any problem with the help engine with
this approach, it goes away whether I close from the system menu or from
my exit command.

However, calling WinHelp(...HELP_QUIT...) at any time should be enough
to close the help engine.  I can't think why it should matter whether
you call this in response to the WM_SYSCOMMAND/SC_CLOSE or the WM_CLOSE
message (I suppose it may depend on what, exactly, you are doing in
response to the WM_SYSCOMMAND message).


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: vorwerk@cs.utwente.nl (Manfred Vorwerk)
Subject: Re: CDBW.ZIP database toolbox for WINDOWS
Keywords: database toolbox, windows
Organization: University of Twente, Dept. of Computer Science
Date: Wed, 6 Jan 1993 13:11:09 GMT

In article <1993Jan6.135213@cs.utwente.nl>, vorwerk@cs.utwente.nl (Manfred Vorwerk) writes:
 
|> 	"What's the catch?"
|> 
|> It seems to me that there are a number of possibilities:
|> 
|> 	1) Only a limited number of tables can be referenced
|> 	2) Only a limited number of records (per table) can be stored
|> 	3) Limited time to evaluate toolkit
|> 

Sorry for the postage of the last message. I've tried the CDBW toolkit and it seems
that only 50 records can be added to the database. 
An error-message says so. Checking the manual, one could notice that this is only
mentioned in the section ERROR-messages, which one only reads when using the
product, and so spending a lot of time in the product. EEEEEEKKK

Manfred Vorwerk



Newsgroups: comp.os.ms-windows.programmer.misc
From: jcmorris@mwunix.mitre.org (Joe Morris)
Subject: Re: MSC 7.0 patch
Organization: The MITRE Corporation
Date: Sat, 9 Jan 1993 17:23:37 GMT

avinogra@empire.cce.cornell.edu (Alex Vinogradov) writes:

> just spoke to Microsoft customer service and they mentioned that they
>have a patch/update for C/C++ 7.0, however it is available only form COMPUSERVE
>which I do not have an acount on.  does anyone know where I can get it from
>Internet?

Another poster has already noted that this patch is available on CICA.

Unless there's a new patch I don't know about, this is the one which brings
your system up to the MSC 7.0a version.  That's the good news; the bad news
is that it contains no changes whatever to the C compiler itself.  All of
the changes are to the support utilities (make, link, etc.).  So...if you're
encountering a problem with the compiler itself the patch disk won't help
you, but it may provide relief if you've got problems with the other 
stuff.

I don't know if Microsoft has changed the floppies they're distributing
to reflect the 7.0a level, but the CD-ROM distribution (when they finally
started shipping in September) included the fixes.

Joe Morris
Organization: SAS Institute Inc.
Date: Mon, 11 Jan 1993 16:44:26 EST
From: <SASTPH@vm.sas.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Drawing on a dialog

You almost had it.  Put a static (WHITEFRAME) text box the size of your
bitmap on the dialog box.  Subclass it.  When your the proc for the text
box gets a WM_PAINT msg, blit the bitmap onto the static box.  Voila!

Hope this helps!
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: How do I rotate text or a bitmap?
Organization: Energy, Mines, and Resources, Ottawa
Date: Fri, 8 Jan 1993 00:43:57 GMT

In article <1993Jan7.211926.11912@physics.ucla.edu> mmccarri@physics.ucla.edu (Mike McCarrick) writes:
>I could rotate a bitmap pixel by pixel, but it seems like a
>lot of work given the various color formats.  Is there an
>easier (and faster) way?
	No, you can not draw rotated bitmaps in Windows 3.1.
	Apparently you will be able to in Windows NT.

>Speaking of bitmaps, I am drawing a large, multi-color bitmap
>(a frequeny-time spectrogram) using the Rectangle() function
>to fill in each df dt block.  This also seems like too much 
>work since I have to create a pen and a brush with the desired
>color, select these objects, draw the rectangle, and then delete
>both objects.  This is repeated 100,000 times or so and is very
>slow.  I experimented with the SetPixel() function instead, but
>it is even slower!  Also, SetPixel() will not dither the color
>if I am running on a paletteless display.  Any suggestions?

	You missed my recent post on this subject.  I
	was doing the same thing you are doing and experimented
	with ways of making it faster.  Scan backwards on
	your newsreader to see if the summary is still on
	your machine.  I also provided the test program I
	used.  mail me if you can't find the post

	What you want to do is fill your rectangles with
	PatBlt, not Rectangle or FillRect.  Also, despite
	the warnings about not wasting resources, you can
	create quite a few brushes (just don't leave them
	hanging around for very long).  I'm using 256
	colours to draw a grid file.  First I create a table
	of 256 hbrush values.  Then I loop through the
	grid, selecting each brush and doing a PatBlt.
	At the end of the whole ordeal, I just delete
	the table of 256 brushes.

	SetPixel will choose the closest solid colour that
	your device is capable of displaying.  If you have
	a standard 16-colour VGA display, the best you
	will get is 16 colours with SetPixel.  Besides,
	how can it produce a dithered pattern with a
	single pixel?
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: mboucher@cortex.prospect.com (Mike Boucher)
Subject: Bizzare dialog box problem help needed!
Organization: Cortex Corporation, Waltham, MA, USA
Date: Sat, 9 Jan 1993 19:02:54 GMT
X-Posted-From: cortex.prospect.com
NNTP-Posting-Host: sol.ctr.columbia.edu

Hi there,

I've got a really strange problem with my app that no one seems to be able to 
figure out:

I use dialog boxes, which are defined in resource files.  When I call these
dialog boxes from my app, the font which the dialog uses is not the same as
I define in the resource.  If I look at Microsofts Dialog Editor, they are as
I defined.  If I change the font in the editor, the program still uses the 
system font, instead of Arial, courier, whatever I specify.

But it gets worse... In these dialog boxes, about 50% of the time, static text
controls are NOT visible, and when you type into edit controls, the characters
you type are NOT visible, although the cursor is moving, and if you to a
GetDlgItemText, you'll find that the correct info is in the control.  AND if
you populate a list box, only some lines are visible, the rest are blank.  Once
again, if you retrieve the text in a given line, the results are correct.

But even more fun.  Once you kill the dialog box, the repaint uses the system
font, even though the rest of the window may be in different font, making life
completely unbearable!

I'm totally out of ideas, and I have until 1/15 to fix the problem.  CAN
SOMEONE HELP???

Please e-mail me, as my newsreader is VERY unreliable!!! THANX!!!

Mike
-- 
Mike Boucher			mboucher@cortex.prospect.com
Cortex Corp			"Don't take life too seriously, you'll never
Waltham, MA, USA		 get out of it alive!"
Newsgroups: comp.os.ms-windows.programmer.misc
From: skimmel@iiic.ethz.ch (Stefan Martin Kimmel)
Subject: Should I use large memory model anyway?
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Wed, 6 Jan 1993 19:38:01 GMT

I have a question about the large memory model. 

MS and others (Petzold) warn to use the large memory model. On the other
hand I read that using the large memory model will make your
code more easily portable to Windows NT.

What I heard so far about the disadvantages of the large memory model
is not enough to stop me to try it. 

We do not need multiple instances of our application and do not 
have to support Windows 3.0. (not even Standard Modus)

But on the other hand we want at least part of our application (the
non-GUI part) to be easily portable to other platforms, and the 
whole application to be easily portable to Windows NT.

Have I missed certain important considerations about the large memory 
model? Do you know of any literature that is more encouraging about
using the large memory model and explains more about it?

Thank you
		Stefan


Stefan Kimmel                 | skimmel@inf.ethz.ch
Siemens-Albis I/49            | S=kimmel;OU1=eates;P=siemenszh;A=arcom;C=ch
Albisriederstr. 245
CH 8047 Zuerich Switzerland   | Tel:  +41 1 495 49 35

Newsgroups: comp.os.ms-windows.programmer.misc
From: harper@convex.com (David Harper)
Subject: Re: MSC 7.0 patch
Date: Fri, 8 Jan 1993 22:56:38 GMT
Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

In article <1993Jan8.170945.21819@empire.cce.cornell.edu> avinogra@empire.cce.cornell.edu (Alex Vinogradov) writes:
> just spoke to Microsoft customer service and they mentioned that they
>have a patch/update for C/C++ 7.0, however it is available only form COMPUSERVE
>which I do not have an acount on.  does anyone know where I can get it from
>Internet?

You can ftp it from CICA in the /pub/pc/win3/misc directory.  It is called
c7ptch.zip.

Dave
From: jianqing@cs.tamu.edu (Dennis Li)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help! Topmost child window
Date: 9 Jan 1993 22:12:15 GMT
Organization: Computer Science Department, Texas A&M University
Distribution: world
NNTP-Posting-Host: sparc57.cs.tamu.edu

Hi there,

In my application, the main window has several child wins. Is there a easy
way to make a certain child window topmost? I tried  WM_EX_TOPMOST style, but
it can still be overlapped by other child windows. Right now, I have to use
BringWindowToTop() each time other child window sized or created.

Thanks a lot.

Dennis
Newsgroups: comp.os.ms-windows.programmer.misc
From: phshl@wombat.newcastle.edu.au (S.H. LEE (61) 49 21 5566)
Subject: Help with scrolling drawing
Organization: University of Newcastle, AUSTRALIA
Date: Sat, 9 Jan 1993 12:23:26 GMT

Hi ,
  I am trying to draw Time Series in a window. I am using the
mm_anisotropic Mapping Mode as follows

setMapMode(PaintDC, mm_anisotropic)
SetWindowExt(PaintDC, 512, 256)   { 512 points in a window }
SetViewportExt(PaintDC, r.right, -r.bottom);  { Client area }
SetViewportOrg(PaintDC, 0,r.bottom);
draw;

The problem is if I then scrolll the window, the picture will not be
redrawn properly. 

Does anybody know what's wrong?

Lee
From: defaria@hpcuhe.cup.hp.com (Andy DeFaria)
Date: Sun, 10 Jan 1993 23:54:22 GMT
Subject: Re: Help needed with BC++ 3.0 Windows Programming without OWL
Organization: Hewlett Packard, Cupertino
From: deitsch@sol.crd.ge.com (Andy Deitsch)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: message crackers
Date: 5 Jan 93 18:20:03 GMT
Reply-To: deitsch@sol.crd.ge.com
Organization: GE Research & Development

Does anyone know where I can find documentation about the message 
crackers defined in windowsx.h?  I would like something that explains
in detail how they should be used with same sample code if possible.
I've heard that using message crackers will make porting code to 
Windows NT much easier.

-- 
_________________________________________________________________________
Andy Deitsch                             email    : deitsch@crd.ge.com  
GE Corporate Research & Development      phone    : (518) 387-7207   
Schenectday, NY 12301                    dial comm: 833-7207     
Newsgroups: comp.os.ms-windows.programmer.misc
From: DRPORTER@SUVM.SYR.EDU (Brad Porter)
Subject: Re: TPW screen blanker
Organization: Syracuse University
Date: Wed, 6 Jan 93 15:41:09 EST

In article <1993Jan5.191847.4805@mksol.dseg.ti.com>
mavmav@mksol.dseg.ti.com (michael a vincze) writes:
 
>
>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?
Check out an earlier post called Re: ScreenSaver wanted!  It documents the
necessary coding needed to make a screensaver VB.  Should give you a good
idea.
                               -Brad Porter
DRPORTER@SUVM
From: goble@hardy.u.washington.edu (Brian Goble)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: hDC and CS_OWNDC
Date: 8 Jan 1993 00:04:37 GMT
Organization: University of Washington
NNTP-Posting-Host: hardy.u.washington.edu

If I specify CS_OWNDC and I then GetDC() once and only release it
when my app terminates, is my app being just a resource hog or can
this actually cause serious problems (either to my app or the system)?

So far, keeping my hDC doesn't seem to be causing problems but I would
like to be sure.

Thanx for any info...

-Brian
-- 
 ==)------------
               Brian Goble    |    goble@hardy.u.washington.edu
               "Finishing a close second means you didn't win."
                                                              ------------(==
From: salmeniu@robocop.cs.hut.fi (Jaakko J Salmenius)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: help & rtf files
Date: 8 Jan 1993 09:41:49 GMT
Organization: Helsinki University of Technology, Finland
Distribution: inet
Reply-To: salmeniu@niksula.hut.fi (Jaakko J Salmenius)
NNTP-Posting-Host: robocop.cs.hut.fi

I'vo got also a RTF related problem: I need some kind of library that
can render RTF files on a windows. I haven't seen any such kind of packages.
If anybody knows where to get it I would be really happy to getthe information.

	Jaakko		
--
Jaakko Salmenius	| Helsinki University of Technology
salmeniu@niksula.hut.fi	| The believable ski heroes, at least in my opinion,
phone +358 0 805 5951	| are the ones who ski the extreme and watch Star Trek.
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Adding OWL's FILEDIAL.DLG to an RES file
Organization: Compaq Computer Corp.
Date: Mon, 4 Jan 1993 14:37:02 GMT

In article <93003.092536U24226@uicvm.uic.edu> Marc Sasiadek <U24226@uicvm.uic.edu> writes:
>Hi!
>
>I'm trying to add FILEDIAL.DLG to my RES file. Everytime I do it, I get an
>error message saying that either WIN30 or WIN31 has to be defined. How do
>I define it and in what file do I put the definition in?
>Thanks in advance.

try,
#define WIN30

try adding it to your main source file.  I assume you're using BC++ 3.1.
If so, you can also add it as one of the compiler options.


--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: fredc@fredc.ibmpcug.co.uk (Fred Curtis)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland-izing Common Dialogs
Date: Tue, 5 Jan 93 00:59:29 GMT
Organization: CONNECT Mail Feed via ibmpcug.co.uk in the UK [+44 (0)81-863 6646]

In <725148024snz@chrism.demon.co.uk> chris@chrism.demon.co.uk (Chris Marriott) writes:
>[...]
>Since I posted my original mention of CTL3D you would not *believe* the
>amount of mail I've been sent.....  To clear up the confusion, here's the
>sequence of events:
>[...]
>4.  The SAME DAY, Microsoft start reorganizing the structure of all their
>    files on CompuServe, and erase everything in the
>    /vendor/microsoft/developer-network directory on ftp.uu.net.

>5.  People look on ftp.uu.net, search for "CTL3D.ZIP", don't find it, and
>    send me e-mail :)

>I'm happy to report that ftp.uu.net has now caught up with CompuServe again,
>and the file is available.  However, all the files now have numbers, not
>names.  The DLL, LIB, and example program you will find in directory
>"samples"; the documentation in directory "wintech", both within
>/vendor/microsoft/developer-network.  I'm sorry, but I don't know the
>file names - you'll have to look in the index file contained in each
>directory.  Perhaps, if somebody does download it, they could post the
>file names here.

The DLL etc are in a file called "3-31.zip".

-- 
fredc@ibmpcug.co.uk | Ambividexterous - To be unsure of which hand to use, as
                    | of a parent with unruly children, or of a cyclist about
                    | about to indicate a turn.
From: karlth@rhi.hi.is (Karl Thoroddsen)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: WHAT THE FUCK!?: Memory: 8,742KB Free, System Resources: 0% Free
Date: 11 Jan 93 12:47:16 GMT

In <1irl8pINNout@cs.tut.fi> pk64380@kaarne.cs.tut.fi (Kuusisto Pasi Petri,,,SIG,64380) writes:

>From article <C0KF1y.Eqz@newsserver.technet.sg>, by ipser@solomon.technet.sg (Ed Ipser):
>> 
>> Well, I've narrowed it down. I'm NOT running out of memory, my memory
>> requirements are in fact quite modest. I'm running out of "system resources".
>> Just what are these system resources that I'm exhausting?
>> 
>> I DO have a number of windows proportional to the size of the document. In 
>> the current case, something like 650 windows. Larger documents would require
>> still more windows and the current test is rather modest in size and
>> complexity compared to what I envision the user doing.

Windows allocates the memory needed for windows in the USER local heap, which
in Windows 3.0 is 64kb, so no matter how much Global memory you have
the USER heap stays at max 64kb (might be 128kb in 3.1).

>   You got it! There is! 650+ windows will definitely eat it up. Sorry ...
> 
>> Help me, please!
>   
>   Tough luck, you lose ...

Describe your application, maybe the group can suggest solutions.

Cheers.

Karl.

-- 

\ Internet: karlth@rhi.hi.is             \ Karl Thoroddsen University Of Iceland
 \ Respect...            , Peter Ustinov  \ Department Of Computer Science
Newsgroups: comp.os.ms-windows.programmer.misc
From: artoinas@phoenix.oulu.fi (Arto Oinas)
Subject: OWL - modifying destructors
Organization: University of Oulu, Finland
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 11 Jan 1993 09:30:34 GMT


I have been programming with Turbo C++ for Windows nearly a mounth.
I have used OWL classes to create interface elements. Now I am facing 
a problem. I want allocate dynamic memory for child buttons (to an array of
pointers to the buttons) in a window. Because the window itself, derived from 
TWindow, handles destructing its children, I don't know how to, and where free
the allocated memory for the pointers. The dynamic allocation is necessa-
ry because the number of those buttons can change, depending on the data-file
which the program reads.

Thanks for yer help,
Arto Oina
Newsgroups: comp.os.ms-windows.programmer.misc
From: memetral@athena.mit.edu (Max E. Metral)
Subject: Large Model
Organization: Massachusetts Institute of Technology
Date: Tue, 5 Jan 1993 16:47:10 GMT

I'm trying to build a large model application in MSC++ 7.0.  (News reader)
Before I realized I needed more data space, this was a medium model
app.  In trying to "port" it I've run into the following problems:

	+ CTime::Format() won't work because it says it can't find
		CTime::Format()__far.  Any workaround?
	+ Trying to run the application generates a windows error
		"no main procedure".  It seems that the correct
		constructor for CTheApp (subclass of CWinApp) is
		not being called.

Any help would be appreciated.

--==<Max>==--
Newsgroups: comp.os.ms-windows.programmer.misc
From: stephen@eggneb.astro.ucla.edu (Stephen Schimpf)
Subject: Displaying text in an edit control
Keywords: C++, DLL, VB
Organization: UCLA Dept of Astronomy
Date: 8 Jan 93 17:57:29 PST

I am writing an educational application. I use a modeless dialog box to
display instructions to the student. The text I want to display may not
fit in the dialog box, so I thought I would use an edit control with a
vertical scroll bar. I find that when the text is displayed the cr/lf
characters are ignored and are displayed as black blocks.

I have examples of edit controls being used to display the contents of
files, so it seems to me that edit controls behave differently if they
are in a window as opposed to a dialog box. For example, I found the
style ES_WANTRETURN (or something like that) is required if you don't
want the default button activated when you press Enter in the dialog box.
I had to type this into the .DLG file as the option is not available
in the Dialog Editor.

Does anyone know of a way to make the edit control in a dialog box
display text correctly? Just because it is in a dialog box doesn't
mean I want to use it for input...

Stephen

Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: DLL Procedure/Function Calls ???
Organization: Queen's University
Date: Thu, 7 Jan 1993 20:46:46 GMT

In article <1993Jan7.184304.3453@scf.loral.com> andres@scf16.scf.loral.com (Jeff Andres) writes:

>Target Compiler: BP7
>Goal: Generate Windows Program

>Problem/puzzle:

>        Windows, likewise vendors and programmers, often supply .DLLs
>for use by others. Is there a convient way to find out what the calling
>convention is to utilize the procedures/functions contained ?  Is there
>a way to get like a "directory" listing of available calls ? 

There's a list of external entry points in the .DLL, but no information 
there about calling conventions.  You could use a disassembler to try to 
figure it out (e.g. my Dumpprog, on garbo.uwasa.fi as 
/pc/turbopas/dmpprg20.zip) by looking at the code following the entry points,
but it's not easy.  


Duncan Murdoch
dmurdoch@mast.queensu.ca