HDTenEightyP/NetNews huggingface dataset:
From: ae302@cleveland.Freenet.Edu (Peter Haller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Including .LIB files in Borland C++ for Windows
Date: 18 Dec 1992 06:10:21 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: ae302@cleveland.Freenet.Edu (Peter Haller)
NNTP-Posting-Host: slc4.ins.cwru.edu


In a previous article, rmccown@world.std.com (Bob McCown) says:

>This seems like something I should be able to find in the manual or in a
>help file somewhere but I cant.  I'm building a windows application in
>Borland C++ 3.1 for Windows, and need to link in a .LIB file that contains
>routines for accessing an SQL, but I cant seem to figure out exactly how
>to specify a specific .LIB file.  I have SQL.DLL (the .LIB name) in the
>\borlandc\lib directory, but nowhere can I find how to make the linker
>look for it, and consequently I end up with a basketfull of unresolved
>errors.  Any help out there?
> 
>-Bob
>
>-- 
>|  Bob McCown / Mundane - Robur of Roestoc / SCA - Sir Gaath Gazul / NERO  |
>|  rmccown@world.std.com                                                   |
>|  "'ow d'you know 'e's a king?" "'cause 'e 'asn't got shit all over 'im!  |
>|									   |
>
Just need to include the .lib file in the project files list.


PCH
-- 
Peter C. Haller                         |       'If you do what you
Lorain Products                         |       have always done,
ae302@cleveland.Freenet.Edu             |       expect what you have
"Are we having fun yet?"                |       always received.'
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Need KLUDGE to make DOS .exe work *my way* from VB app 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Mon, 14 Dec 1992 18:30:22 +0000

In article <1992Dec12.043729.18412@u.washington.edu> tvp@gibdo.engr.washington.edu writes:

>I'm fairly new to Windows programming. I picked up Windows SDK, VB and
.....
>
>Project 1: Take an old DOS command-line based text filter and convert
>           it to a small Windows tool.
>
>[I don't like text entry using word processors; I like input power
>through the likes of Emacs, Microemacs and now Microemacs for windows.
>The text filter I'm talking about turns whatever I've input from your
>typical text file full of hard returns, into flowable text with
>command line options of leaving blank lines between paragraphs (or
>deleting) and using one (or two) spaces after sentence ending periods.
>The source for this filter is "portable" C.]
.....
>
>to Shell() when the user hits the Run button.  It works, but I don't
>like the way the screen goes to DOS momentarily when the exe runs. I'd
>rather it just ran in the background.
>
>Question: Are there any good ways of avoiding this?
>
>Thanks in advance.
>
The thing I think I'd do is simply recompile your "portable" C filter
code using the Borland "EasyWin" library.  This will convert it into
a genuine console-style Windows application.  That way, you want get
the "flash" to DOS when the application runs.  As far as I'm aware,
there's no way to execute an genuine DOS application "invisibly".

-- 
--------------------------------------------------------------------------
| 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: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Borland Custom Controls
Keywords: BCC Keywords:
Organization: Compaq Computer Corp.
Date: Mon, 14 Dec 1992 14:36:44 GMT

In article <3315@nlsun1.oracle.nl> gdsmith@nl.oracle.com (Geoff Smith) writes:
..stuff deleted...
>The bottom line is: where in the manuals is the use of BWCC.DLL
>mentioned or even the Borland Custom Controls. I seem to have looked
>everywhere, but can't find anything on the Borland Custom Controls.
>

Look for \BORLANDC\OWL\DOC\BWCC-OWL.DOC

--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: kso@ncratl.AtlantaGA.NCR.COM (Khun So)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problems keeping window's size, location constant
Date: 16 Dec 92 13:36:42 GMT
Organization: NCR Engineering and Manufacturing Atlanta -- Atlanta, GA


I am writing a Windows program that have to always run full-screen without
a caption bar.  Presently, I have problems whenever someone pops up the 
Task Manager and tries to cascade all windows.

Any suggestions on how to prevent my application from being resized, moved
through the Task Manager will be of greatly appreciated.

Newsgroups: comp.os.ms-windows.programmer.misc
From: jeff@tct.com (Jeff Witzer)
Subject: Borland-izing Common Dialogs
Date: Fri, 18 Dec 1992 16:26:07 GMT
Organization: TC Telemanagement, Clearwater, FL

I'm writing an app that uses Borland style dialog boxes and buttons.  I
would like to keep the interface consistant but haven't found a way to 
Borland-ize the <commdlg> File Save and File Open dialog boxes.

Does Borland have their own version?  (I couldn't find any public alternative
like thier BWCCMessageBox...I hoped to find a BWCCGetOpenFileName () and 
BWCCGetSaveFileName ())

I also tried to run Resource Workshop on my .exe but, of course, couldn't find
those dialogs to modify.

Should I give up and use the bland MicroSoft standard dialogs or is there hope?

jeff@tct.com
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: tope@enea.se (Tommy Petersson)
Subject: Re: Query: Listbox, how to have horiz scroll but suppress vert scroll.
Organization: Enea Data AB
X-Newsreader: Tin 1.1 PL3
Date: Thu, 17 Dec 1992 09:22:50 GMT

wolf@web.b15.ingr.com (Wayne Wolf) writes:
: 
: 
: Fellow Windows controls hackers...  I needa somea guidance
: 
: I am trying to create a poor-man's multicolumn gadget in windows without 
: having to resort to too much custom control business.  To do this, I
: am sticking listboxes side by side, making the rightmost listbox vertscroll.
: This works great and everything plays in tandem.  However, the problem
: is that I need also horizontal scrolling in each field of the multi-column
: gadget.  This works like a charm also, except that when a listbox is declared
: horizontal scroll, it by default becomes vertical scroll as well.  The
: bugger with this is that those darned vertical scrollbars now pop-up on the
: other listboxes instead of just the rightmost one.  VERY UGLY.  
: 
: My question here is, does anyone have any thoughts on how to solve this,
: still using listboxes instead of custom controls?  Ideally, I would
: like a way to just tell the listbox not to display its vertical scrollbar
: at any time, but as far as I can tell, there is no support for this 
: functionality (anytime the box overfills, a scrollbar automagically pops
: up, no ifs-ands-buts).  I realize the listbox's capability for multiple 
: columns, but the functionality of this is much too limiting.
: 
: Of course, if anyone is willing to share code/design for a custom control
: for a multicolumn gadget, this would be even better. :-)
: 
: ..
: 
: Wayne Wolf
: wolf@web.b15.ingr.com

Maybe this is a solution:

In Visual Basic it is not possible to declare a listbox "horizontal scroll",
so I have used a (documented) "trick" to get one. This may be useful for
you as well, I don't know.

In VB you prepare for the call with these lines:

Const LB_SETHORIZONTALEXTENT = &H400 + 21
Const NUL = &O0

ListBx.SetFocus
ListHwnd% = GetFocus()
BoxWidth% = <VIRTUAL BOX WIDTH>

X& = SendMessage (ListHwnd%, LB_SETHORIZONTALEXTENT, BoxWidth%, NUL)

This gives me in VB a horizontal scroll bar but no vertical.

-- 
=============================================================================
 Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
=============================================================================

Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: OWL and MDI question 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Mon, 14 Dec 1992 18:56:49 +0000

In article <HAGELIN.92Dec13171329@festis.elixir.e.kth.se> hagelin@elixir.e.kth.se writes:

>
>I have a problem in my first windows program. I'm trying to get an MDI
>child window which has a fixed size and no maximize button (it's meant
>to stay in just one size). But it wont look the way I like it...
>
>I can set the Attr.Style to anything, and the window looks the same
>anyway. But if I set an Style like WS_ICONIC, it starts like an icon.
>
>The problem is that the window style I set in the constructor for the
>child window somehow gets overridden by the MDIframe, and gets some
>default window style.
>
>The question now is:
>
>- Can I make a window who is a MDIchild but not having the default(?)
>  style? And how ?
>
>- If this doesn't work I guess I'll have to make the window a dialog
>  instead, but does a dialog function like a MDIChild (with reference to
>  tiling, cascading, etc.) ?
>
>
>/Martin
>

IF your program is for Windows 3.1, then the answer is yes, you can do it.
What you have to do is create the MDI *Client* window with the
MDI_SALLCHILDSTYLES style set.  Unless the MDI client has this style then,
as you've found out, MDI child windows are created with a default style,
and there's nothing you can do about it.

If you need to support Windows 3.0, you're out of luck!

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: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: C++ problem with BC++ 3.1
Organization: Compaq Computer Corp.
Date: Tue, 8 Dec 1992 20:30:56 GMT

Hmmm, I've got a rather bizzare problem which I can't seem to figure 
out.  I'm writing a MDI program with OWL which holds an image in
the MDI children.  Each child window is derived from TWindow.

Now before I create the child window, I run a parsing function to
extract information for the image file header.  I need buffers to
manipulate the header, so I did the following:

	char* buffer = new char[80];
	...code for parsing...
	delete [] buffer;

When I use this code, I get a GPF in kernel.exe at the end of the child
window constructor.  Remember, the parsing code is executed before the
child is created and is even in a different module.  Also, this
error does not occur every time.  Sometimes, Windows will lock instead
of giving a GPF, but this is rare.

The problem disappears completely when I declare:

	char	buffer[80];

instead at the top of the parsing function.  

I'd rather allocate the buffers dynamically, but I can't figure
out why this fails.  I'm new to C++ so maybe there's something I'm
missing.

Sigh, any ideas or helpful hints are appreciated.

 

--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: how to find parentless non-child windows?
Organization: Energy, Mines, and Resources, Ottawa
Date: Sat, 19 Dec 1992 02:24:39 GMT

My app behaves a bit like a MDI app, but not quite.  From the main
window, several other parentless non-child windows can be created as
follows:
	CreateWindow("xxx",NULL,
			WS_OVERLAPPED  | WS_CAPTION    |
			WS_SYSMENU     | WS_THICKFRAME |
			WS_MINIMIZEBOX | WS_MAXIMIZEBOX,
			CW_USEDEFAULT,CW_USEDEFAULT,
			CW_USEDEFAULT,CW_USEDEFAULT,
			NULL,           //note - no parent
			NULL,                           
			hinstance,(LPVOID)xxx);

Note: they have *no parent* and they are *not* WS_CHILD.

When I close the application from the main window, these secondary
windows do not receive WM_DESTROY (I breakpointed WM_DESTROY and
it never gets there).  I guess the main window only sends WM_DESTROY
messages to them if they have a parent and/or if they are WS_CHILD?
Is that right?

So, when I process WM_DESTROY for the main window, I want to find
all of the secondary windows and shut them down too (so they can
de-allocate their resources).  I tried doing this when I get
WM_DESTROY for the main window:

  void DestroySecondaryWindows(void){
  HWND hwnd;
	while((hwnd=FindWindow("xxx",NULL)){
	  SendMessage(hwnd,WM_DESTROY,0,0);
	}
	return;
  }

Well, close but not quite.  The secondary window receives several
WM_DESTROY messages, even though I am using 'Send' instead of 'Post'.
I guess I need to wait until each window is destroyed before I
try to 'find' another one?  If so, how?  

I had a glance at GetWindow, but I'm a bit confused by it - should
I be using GetWindow instead of FindWindow?  The problem is that the
secondary windows have *no parent*.

-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: wgcho@cair.kaist.ac.kr (Cho Wongyu)
Subject: Debugging Device Drivers
Organization: Center for Artificial Intelligence Research, KAIST.
Date: Wed, 9 Dec 92 19:36:30 GMT

I am currently writing a printer driver for Windows 3.0.
I found it really hard to debug device drivers since they are
dlls. What is the best way to debug them? Is it possible to 
use Codeview for this purpose?

Any kinds of help will be appreciated.
Thanks in advance,

Wongyu Cho (wgcho@gorai.kaist.ac.kr)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: rkenning@cc.curtin.edu.au
Subject: Problem with VB and Fonts
Organization: Curtin University of Technology
Date: Wed, 16 Dec 1992 09:41:21 GMT

Does anyone out there know how to change the font of a object in VB to the font
that you see on the Windows 3.1 Program Manager?

I have tried things like:
			Graphic1.FontName = "MS Sans Serif"
			Graphic1.FontSize = 8
but all this gives me is a medium size ugly font! It may be "MS Sans Serif" but
it certanly isn't size 8.
Any help on this would be appreciated.

Myles.
rkenning@cc.curtin.edu.au
From: tdani@uoft02.utoledo.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: FONT in TEDITWINDOW
Date: 13 Dec 92 19:25:01 EST
Organization: University of Toledo, Computer Services

	I am using Turbo C++ for Windows to write an app.
	It involves using a class derived from TEditWindow class. However i
am not able to find a way to change the default Font of the text in the Edit
Window.
	Any ideas? Suggestions as to how to solve this problem.
Tushar Dani
Univ. of Toledo

Newsgroups: comp.os.ms-windows.programmer.misc
From: torstein@itekiris.kjemi.unit.no (torstein hansen)
Subject: Re: How do you use the LZEXPAND DLL?
Organization: Dept. of Chem.Eng, Norwegian Inst. of Tech
Date: 14 Dec 92 18:03:03


The Win32 API is to be found as a help-file on ftp.uu.net
/vendor/microsoft/win32-api. What follows is the readme-file from that
directory:

<Quote mode ON> 

  The following files are preliminary versions of the
  Win32(tm) Application Programming Interface. Microsoft
  is providing these files in preliminary form to give
  Windows developers a chance to review and understand
  the changes between the Windows 3.x API and the Win32
  API. These files may be redistributed without fee
  in unmodified form subject to the copyright statement,
  which is the last topic in the help overview.

  The help files are provided in Winhelp form: Because
  this file is almost 6MB, it is available here in pieces,
  API32W.001 through .010. Download the files in pieces,
  and also download COMBIN.BAT which will combine
  the pieces to recreate the original file.

  If you are not a Windows 3.1 site and you wish to use
  the api32wh.hlp file, you will need to download the 
  wh307c.zip file, and unpack it to re-create a version
  of WinHelp.exe which will read it. The Windows 3.1
  WinHelp.exe program whould also read api32wh.hlp, and
  the wh307c.zip version should read Windows 3.0 help files.

Here's the file listing:

WinHelp sections:    api32w.001, api32w.002, api32w.003, api32w.004,
                     api32w.005, api32w.006, api32w.007, api32w.008,
                     api32w.009, api32w.010
Batch file:          combin.bat
Replacement Winhelp: wh307c.zip

Any detailed feedback or questions, please send CIS email

to: >internet:isv@microsoft.com

Alistair Banks, Microsoft Systems Division

<Quote mode OFF>

I reackon' this would help

Torstein
--
Torstein Hansen
torstein@itekiris.kjemi.unit.no
Xref: sparky comp.os.ms-windows.programmer.misc:4296 comp.os.ms-windows.programmer.win32:2507 comp.windows.x:20310
From: gnohmon@ssiny.UUCP (Ralph Betza)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,comp.windows.ms.programmer,comp.windows.x
Subject: Need help using win3 bitmaps
Keywords: X
Date: 16 Dec 92 19:11:37 GMT
Followup-To: comp.windows.ms.programmer
Organization: Systems Strategies, Inc., NY, NY

I need to rewrite some X stuff for ms-windows ( WIN3 ), know nothing
about ms-windows, and alas! there is no O'Reilly book for it --
just this "SDK Reference".

I would like to find a reasonably small win3 program that uses
ms-windows bitmaps as the subject of drawing routines and, later on,
uses the bitmaps for writing to a window; said program to serve me
as an example.

For a recent version of how this technique is done in the X Window
System, see comp.sources.misc,
v34i022:  xvertext - painting vertical text in an X Window, Part01/01

I have RTFMed, and believe all this is in TFM, but either the manual
is poorly organized or my brain is too feeble; in either case, I
feel the need for an example to make things clear.

There must be one in simtel20, but it isn't at all obvious to me
which one I want.

( I found and examined ntxlib.zip, but all such things are
unimplemented there, nor are there any clues as to how it would be
done. )

I have asked the Usenet Oracle, but He doesn't know, either :-)



The remainder of this message is merely a clarification of what I
need to do, and how much I've already figured out.

In stage one, drawing to the pixmaps, the X code I am working with
creates a pixmap of depth 1, and uses such calls as XDrawSegments,
XDrawRectangle, XFillPolygon to draw into the pixmap.

    In ms-windows, drawing calls do not take a "Drawable" as a
    parameter. This appears to be in some manner controlled by the
    DC. Exactly what I need to call to set this up, I do not know.

In stage 2, using the pixmaps, the X code calls XSetStipple()
XSetFillStyle( ... FillStippled : FillOpaqueStippled ),
XSetTSOrigin(), and XFillRectangle() in order to draw the desired
shape. By drawing the pixmap in this roundabout manner, two things
are accomplished: (a) whatever else is there is not disturbed; and
(b) the color is independent of what was done in stage 1.

    In ms-windows, this whole scheme is impossible. It seems that
    the msw call corresponding to XSetStipple() would be
    CreatePatternBrush(), but the size of the pattern
    must be 8 by 8!!

    I think that the correct msw way to do this is with bitBlt(),
    using just the right "rop2" code...




----Ralph Betza (FM),
    uunet!ssiny!gnohmon

I! Hi'm a mtatng siugnaturei vir*ss. You cann~t reisth elping me  spre]d!
    ( comp.sources.misc/volume32/sigvi )
Newsgroups: comp.os.ms-windows.programmer.misc
From: v37262d@kaira.hut.fi (Mancko H|glund)
Subject: Re: Dialog boxes and Icons.
Reply-To: ebbe@shsibm.shh.fi
Organization: Helsinki University of Technology, Finland
Date: Tue, 15 Dec 1992 06:42:55 GMT

In article <1992Dec11.114122.10968@ugle.unit.no> stephan@idt.unit.no (Eirik Morten Stephansen) writes:
>
>I'm developing a Windows program with a dialog box as a main window.
>Further I have 2 additional dialog boxes which I want to be icons at
>startup. 
>
>    My problem is how to get different icon for these to dialog boxes.

Register a new window class for each dialog you wish to have a 
certain icon associated wit. Then, in your .DLG file, insert
a CLASS <classname> statement for each dialog.

Like so:

void RegisterCustDlgClass()
{
    WNDCLASS wc;                    // Window class
    
    wc.style=CS_VREDRAW | CS_HREDRAW;
    wc.lpfnWndProc=AfxWndProc;
    wc.cbClsExtra=0;
    wc.cbWndExtra=DLGWINDOWEXTRA;
    wc.hInstance=AfxGetInstanceHandle();

// Insert the name of your ICON resource here-----\/
    wc.hIcon=::LoadIcon(AfxGetInstanceHandle(),"CUSTOM");
    wc.hCursor=::LoadCursor(NULL,IDC_ARROW);
    wc.hbrBackground=(HBRUSH)(COLOR_BTNFACE+1);
    wc.lpszMenuName=(LPCSTR)NULL;
    wc.lpszClassName=CUSTDLG_CLASS;

    if(RegisterClass(&wc)==FALSE)
    {
        MessageBox(NULL,"RegisterCustDlgClass() failed!",
                        AfxGetAppName(),
                        MB_ICONINFORMATION | MB_OK);
    }

In your .DLG file, do:

CUSTOM DIALOG  0,0,309,245
STYLE WS_CHILD | DS_MODALFRAME | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
CAPTION "CUSTOM"
CLASS CUSTDLG_CLASS	/* This should be the same as wc.lpszClassName */
BEGIN
   IT",WS_TABSTOP | WS_CHILD | ES_LEFT,70,43,115,8
...
END


}


+----------------------------------------------------------------------------+
v37262d@kaira.hut.fi:	Mancko H|glund 	(mancko@shsibm.shh.fi) or  
			Ebbe Jonsson	(ebbe@shsibm.shh.fi)
+----------------------------------------------------------------------------+