HDTenEightyP/NetNews huggingface dataset:
From: toml@voodoo.boeing.com (Tom Locke)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows Software Development
Date: 14 Sep 92 15:30:17 GMT
Organization: Boeing Graphics project, Bellevue WA


Hello netters,

I am currently looking for a good software development environment for
developing Windows software. What I have in mind right now is C/C++,
Borland's Object Vision, Actor, Smalltalk, Visual Basic, any others?
I prefer a package with high level tools (than C) and object oriented
but is capable of generating C or C++ source. A summary of each environment's
capabilities, good and bad, would be appreciated.
Would anyone like to give me pointer on this? e-mail or post are welcome.

Thanks a lot!

-- 
Tom Locke                         Work: (206) 865-6568
Boeing Computer Services        E-mail: toml@voodoo.boeing.com 
P.O. Box 24346  M/S 7K-20           or: uunet!bcstec!voodoo!toml
Seattle, WA  98124-0346
Newsgroups: comp.os.ms-windows.programmer.misc
From: dickerso@fester.dell.com (Russell Dickerson - X2787)
Subject: .WAV player source
Reply-To: dickerso@cpat.stortek.com
Organization: IO SpecialistsConsulting
Distribution: usa
Date: Fri, 11 Sep 1992 16:10:41 GMT

Is there a book available that goes into detail about playing .WAV
files from within your code?  Examples?


--
-----------------------------------------------------------------------
Russell Dickerson	Unix/X Consultant	IOSpecialists
(303) 673-5409 ---REPLY TO>>> dickerso@cpat.stortek.com <<<!!!!--------
For every vision, there is an equal and opposite Congressional revision.
Newsgroups: comp.os.ms-windows.programmer.misc
From: dtam@fraser.sfu.ca (Dominic Pok Man Tam)
Subject: Problem with Creating .fon from .fnt file
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Wed, 9 Sep 1992 05:29:21 GMT

        I am creating font by Borland C++ resource workshop. After creating
the file with extension .fnt, I convert this file into a file with extension
of .fon by following the instruction of help of Borland C++ resource workshop.
However, the Font file created is unable to be used under windows. So, how
to create a .fon file from a .fnt file ?
               
     Thanx in advance.
From: aku@tik.vtt.fi (Arto Kujala)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Destructor problem in a DLL
Date: 14 Sep 92 12:29:51 GMT
Organization: Technical Research Centre of Finland, Laboratory for Information Processing (VTT/TIK)

I am programming a windows DLL with Borland C++, OWL and Classlibs.
The DLL is used from a VB application. When closing the DLL, there is
the following problem:

I have a class, that can not use its own data in its own destructor
without a runtime error ("An error has occured..." and sometimes 
a General Protection Fault). 

For example, this class (Drawings) has a private
variable xSize:

class Drawings {
private:
	int xSize;
...

If I try to copy xSize (int theSize = xSize) in destructor of Drawings,
 a "An error has occured..." dialog box is given. All other variables
of the class seem to be in same state.

What could be wrong in my code? I noticed
that WEP is called before the destructor (my WEP does nothing).

--Arto
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Recursion and Windows programming
Date: 10 Sep 92 00:07:31 GMT
Organization: PE-Nelson

In article <1992Sep8.111139.8820@iccgcc.decnet.ab.com>, schmidtg@iccgcc.decnet.ab.com writes:
|> 
|> 
|> I am in the process of converting a DOS program to run in the MS Windows
|> environment and I am having some difficulties.  The program uses a recursive
|> search routine to find the solution to a problem.  The program also must do
|> some screen output along the way.  The problem that I am having is in breaking
|> up the recursive algorithm so that it can be executed piece-meal in the
|> Windows event driven execution paradigm.  I want to run the algorithm
|> during idle time processing and so I must only execute a portion each time.
|> Since a recursive algorithm uses the machine stack, I don't know of an easy
|> way to save context and restore it between processing without getting down
|> and dirty.  I'm sure I'm not the only one who has encountered this problem.
|> How have others solved it?

In the recursive routine that's doing the computation, put the following code
somewhere at a convenient "yielding" point:

   ...
   {
      MSG msg;

      while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
         {
         TranslateMessage(&msg);
         DispatchMessage(&msg);
         }
   }
   ...

This loop will process all messages in the queue before stopping, thus giving
you idle time processing.  Note that this gets more complicated (but not much)
if you have things like modeless dialogs up or have accelerators that need
handling.  You may also have to worry about disabling application commands that
might cause inadvertant reentry into the processing routine.

In any case, don't be afraid to have more than one location where messages
are retrieved and dispatched.  I do it for exactly this reason.


----------------------------------------------------------------------------
Tom Brown               |  "Strange women, lying in ponds, distributing
PE Nelson Systems       |   swords is no basis for a system of government."
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Xref: sparky comp.os.ms-windows.programmer.misc:1687 comp.os.ms-windows.programmer.tools:873
From: chungn@Bonnie.ICS.UCI.EDU (Chung Ng)
Subject: Help! - Writing FilterGraphics function for UniTool driver
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Date: 5 Sep 92 06:18:46 GMT


I am developing a printer driver using the DDK UniTool.  To take advantage
of a special printer mode, I need to use the FilterGraphics function.
However, I haven't been able to get the UniTool generated printer driver
to call the function I wrote.

First, I am getting a linker error for the BlockOut function I tried to
Export.  Am I supposed to write this function or is it generated by
the UniTool?  What is the BlockOut function anyways?  The DDK manuals do
not mention a single thing about it. (at least not that I am aware of)

Second, besides checking the RES_BO_CB_FILTER_GRX box in fBlockOut dialog
box and updating the "Export" and "Import" parts of the module-definition
file, is there anything I need to change?

Thanks for your help in advance.

Chung Ng
From: aa596@cleveland.Freenet.Edu (Peter Haller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland's Internet Address??
Date: 7 Sep 1992 17:33:53 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
NNTP-Posting-Host: slc12.ins.cwru.edu


In a previous article, shen@cis.uab.edu (Frank) says:

>Hello, 
>	Does anyone know Borland's internet address for technical
>	supports for ms-windows programming?  When I have a programming
>	question for ms-windows, Do I ask Borland or Microsoft?  I am 
>	using Borland C++.  
>
>	Thanks for helping.
>
>
I don't know of a help service via internet and I just wanted to make a 
comment anyway...

Remember Borland is in the Compiler business not Windows development support.
If you call their tech support lines they will tell you this. Your best be for
Windows programming questions - not compiler or tool problems - are areas like
this and Compuserve. CI$ provides more access to more programmers and vendors
than you could imagine. It has proven both valuable and cost effective for
me. 

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.'
Newsgroups: comp.os.ms-windows.programmer.misc
From: edd701ssft@vx24.cc.monash.edu.au
Subject: A Visual Basic question
Organization: Computer Centre, Monash University, Australia
Date: Tue, 8 Sep 1992 05:49:02 GMT



Hi,

I was wondering if it is at all possible to incorporate a sound playing
feature into my Visual Basic program (i.e. press a button that will 
play a prerecorded digitised sound).

If you have knowledge of such a technique I would greatly appreciate
you sharing it with me.

Thanks.

Please email your replies to :

edd701ssft@vx24.cc.monash.edu.au

Vincent,

Monash University.


Newsgroups: comp.os.ms-windows.programmer.misc
From: todd@uhunix.uhcc.Hawaii.Edu (Todd Ogasawara)
Subject: Re: DDE links between VB & Quicken for Windows?
Organization: University of Hawaii at Manoa
Date: Tue, 15 Sep 1992 16:35:29 GMT

In article <14798@mindlink.bc.ca> Laura_Halliday@mindlink.bc.ca (Laura Halliday) writes:
>In Msg-ID: <1992Sep2.085142.18104@news.Hawaii.Edu> Todd Ogasawara writes:
>>                      Can anyone tell me how to set up a Visual BASIC
>> program as a client to Quicken for Windows?

>The way I usually solve such problems is to create a dummy application in VB -
>a form with a textbox on it will do. Copy the Quicken data, Paste Link into the
>VB textbox, and then inspect the parameters VB set up. Once you've established
>that the link works, you can read off the correct LinkItem and LinkTopic.

Laura's suggestion works fine with other software that supports DDE (at
least it worked for me with Word for Windows 2.0). However, this technique
did not work with Quicken for Windows 1.01.

I received a few notes from other Quicken users who also would be able to
make use of the information needed to get DDE data from QFW. If anyone else
has more information, we would appreciate it.
--
Todd Ogasawara, U. of Hawaii, Psychology Department
BITNET:		todd@uhunix
INTERNET:	todd@uhunix.UHCC.HAWAII.EDU
Newsgroups: comp.os.ms-windows.programmer.misc
From: bernstei@shrike.und.ac.za (Simon Bernstein)
Subject: Calling DOS interrupts
Organization: Univ. Natal, Durban, S. Africa
X-Newsreader: Tin 1.1 PL5
Date: Tue, 8 Sep 1992 09:59:59 GMT

I am writing a program which will run on a Novell Network that will run under
Windows.  Can I still use my normal libraries (written in Pascal) to call 
Novell functions such as getting the login name, or are there alternative calls which are part of the Windows API ? If so, where can I find details of this.

I would appreciate any help anyone can give.

  - Simon

bernstei@shrike.und.ac.za
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.misc
From: scstech@solomon.technet.sg (Arthur Lim)
Subject: Question On Using Borland Custom Controls
Organization: Singapore Computer Systems Ltd
Date: Thu, 10 Sep 1992 08:01:22 GMT

Hi,

I posted this query a couple of weeks ago and I don't seem to get any
reply (Maybe it got lost somewhere in the net :>). So here goes again.

I saw that in Borland's C++ 3.1, there are a couple of custom controls
which I think are rather neat ( 3-D Shaded Box, etc ) which I would like
to use in building my Win 3.1 applications. However, due to certain
constrains and project requirements, I had to use MS C7 for development.

The QUESTION is "Can I make use of these custom controls in MSC or is
there another way out?"

Thanks for your pointers. Regards.

PS. I will summarize the replies if there are interests.



+======================================================================+
| Arthur Lim                     | #include <std.disclaimer>           |
| Advanced Software R&D Centre   |                                     |
| Singapore Computer Systems Ltd | scstech@solomon.technet.sg          |
|                                |                                     |
| (Voice) 065-240-3850           | Please prefix "For Arthur :" in the |
| (Fax)   065-441-2811           | subject line when mailing. Thanks.  |
+======================================================================+

Newsgroups: comp.os.ms-windows.programmer.misc
From: stu@av8r.cpd.Tandem.com (Stuart Phillips)
Subject: OWL: Adopting other child windows ?
Reply-To: stu@Tandem.COM
Organization: Tandem Computers, Cupertino - USA
Date: Mon, 14 Sep 1992 16:58:54 GMT

I've developed a class using Borland OWL that controls a window with two
child windows on its surface much like that used by the File Manager.  I
would like to make this general enough that I can use it in multiple
applications and so have made the class itself ignorant of the behavior
of each of its child windows.

I'd like to create the child windows and pass them as parameters to the
constructor of my controlling class (TDoubleWindow) - something like this:

	PTWindow left = new TWindow(this,"");
	PTWindow right = new TWindow(this,"");

	PTDoubleWindow Dbl = new TDoubleWindow(this,"Title",left,right);

The problem with this approach is that the owning window of the children
isnt Dbl since the left and right child windows are owned by the common
parent of all three.

There is a method in TWindowObject called SetParent() that looks tailor
made to do the job of having Dbl adopt left and right as its own children.
I tried inserting calls as follows in the constructor for TDoubleWindow:

	left->SetParent(this);
	right->SetParent(this);

....but when I subsequently call MakeWindow to actually create the interface
objects, the MakeWindow fails with error -5 (illegal window handle).

How does an object adopt other objects children ?



I have one work around that ducks the entire issue and that's defining
TDoubleWindow as a template class; however this makes it a pain to derive
objects from TDoubleWindow so I'm still in need of a solution.

Can anyone help ?

Thanks
Stu
From: kevin@iti.gov.sg (Kevin Patt (SE))
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help needed with Borland C++ 3.1
Date: 11 Sep 92 01:43:50 GMT
Organization: Information Technology Institute, National Computer Board, S'pore

Hi,

    I am doing some Windows programming using BC++ 3.1 and I am facing some
problems with compiling the source into a Windows executable.  The situation
goes like this:

    The application will run with no problem at all if I run it by making use
of the "RUN" menu item in BC++3.1.  The problem arises when I run it as a
stand-alone after compiling and I keep getting the error message "-5" everytime
I attempts to open any dialogs (those done using the Resource Workshop>. The
documentation says the error means "Window is invalid because Create did not
succeed".

    Can anyone help me in this? Thanks!

-- 
Kevin Patt                                     Information Technology Institute
Associate Member of Technical Staff            Singapore 
Email: (Internet) kevin@iti.gov.sg             Tel: (065) 772-0471 
       (BITNet)   kevinpatt@itivax.bitnet      Fax: (065) 779-5966        
Newsgroups: comp.os.ms-windows.programmer.misc
From: sg6934331@ntuvax.ntu.ac.sg
Subject: Re: COM port access under Windows
Organization: Nanyang Technological University - Singapore
Date: Mon, 7 Sep 1992 06:52:47 GMT

In article <1992Sep7.040330.12320@actrix.gen.nz>, chris@actrix.gen.nz (Chris Double) writes:
> Hi.
> 
> I'm trying to send commands to a modem under Windows. I can open and
> close the COM port (using OpenComm & CloseComm) but I'm not sure how
> to send and receive.
> 
> Using C, what function calls should I be using to send and transmit
> characters?
> 
> Your help would be appreciated.
> 
> Thanks,
> 
> Chris Double.
> chris@actrix.gen.nz
For anyone who want to know how to use the serial communication on windows, a
sample is availible in the book "Windows API Bible" by James L. Conger from THE
WAITE GROUP'S
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Newsgroups: comp.os.ms-windows.programmer.misc
From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
Subject: COMMDLG hook functions
Organization: Monash University General Access Unix
X-Newsreader: Tin 1.1 PL5
Date: Tue, 8 Sep 1992 00:56:58 GMT

[ Article crossposted from comp.windows.ms.programmer ]
[ Author was Andrew Bulhak ]
[ Posted on Sat, 5 Sep 1992 15:36:56 GMT ]

Could somebody *please* post some source code for a COMMDLG hook
function (file/font dialog)?
Also, has anybody successfully made such a dialog work well with Borland
Custom Controls (i.e., with a BWCC'd template)? I have tried with the
two abovemenioned dialogs. The BWCC-ified File dialog has a nasty habit
of rendering the owner-drawn list box entries on a white background and
the blank space below in gray :-P, meanwhile BWCC's custom dialog
drawing logic thwarts the font dialog's attempts to change the "Sample"
static control's font. I tried creating hooks and intercepting various
bits of code (File's wm_DrawItem and Font's child control
notifications), and it seemed to work except for one problem: Most of
the time when the dialogs in question were invoked, no child controls
got the focus, and the dialogs did *not* respond to any keyboard input
apart from Alt and Alt-F4. Now if I had some idea of what a hook
function is meant to look like, I'd know what I was doing wrong.

adTHANKSvance;


+-----------------------------------------------------------------------+
|  Andrew Bulhak		|  "God is real --			|
|  sloth@yoyo.cc.monash.edu.au	|   unless declared as integer"		|
+-----------------------------------------------------------------------+
Newsgroups: comp.os.ms-windows.programmer.misc
From: cwvernon@undergrad.math.waterloo.edu (Vern)
Subject: Re: Selecting and deleting in BCW
Organization: University of Waterloo
Date: Tue, 15 Sep 1992 20:02:03 GMT

>During my travels in text editors on windowing systems, there's been
>one feature they've all seemed to shared:
>
>   When you select a block of text with the mouse and then either start
>   typing *or* press the DEL key, then the selected text will be deleted.
>   In the case of typing after a selection, the new text entered will
>   replace what was previously selected. 
>
>This is not what happens in BC++ for Windows.  When you mark a section of
>text and start typing, the marked text does not get deleted.  When you
>mark a section of text and press the DEL key, the text does not get
>deleted.  I would like to change this default behavior but I cannot
>find out how.
>
>This brings up an inconsitency in the Borland windows-hosted products...

I thought that feature was a bit unusual too.  But, you must press Shift+Del or Ctrl+Del to get the effect that you want.  It's the CUA Keystroke for "CUT".



-- 
"Safe computing?  GEEZ!  What's next?"      -- cwvernon@descartes.waterloo.edu
From: dbushong@wang.com (Dave Bushong)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: No sscanf() in a DLL? Really?
Date: 14 Sep 92 15:30:34 GMT
Organization: Wang Labs, Lowell MA, USA

twbrown@PE-Nelson.COM (Tom W. Brown) writes:

>In article <budi69.9ye@wang.com>, dbushong@wang.com (Dave Bushong) writes:
>|> 
>|> Is it true that you can't use sscanf in a DLL (according to
>|> Microsoft's windows.h)?
>|> 

>I'm not sure what you mean about windows.h "telling" you that sscanf isn't
>DLL compatible, but I'm using BC++ 3.1 and the version of sscanf in Borland's
>runtime is perfectly happy being called from a DLL (Borland's runtime library
>is available, in fact, as a DLL).

That's where the problem is -- I'm porting something from BC to QCWIN,
and nearly everything worked OK except references to sscanf and similar.
There is a conditional in windows.h (in the MS version) that goes
something like

#if !DLL

...prototypes for sscanf, etc.

#endif

which is not the case in the Borland version.

I did receive a wsscanf from some kind soul which would appear
to fix my problem.

Thanks!

Dave
-- 
Dave Bushong, Wang Laboratories, Inc.
Project Leader, OCR products
Internet: dbushong@wang.com
Organization: Sophomore, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.os.ms-windows.programmer.misc
Date: Fri, 11 Sep 1992 14:54:31 -0400 
From: Liam David Gray <lg2g+@andrew.cmu.edu>
Subject: Windows Terminal & DDE?

Does anyone know if the Terminal supplied with MS Windows (particularly
3.1) supports DDE?  I'm wondering whether I can recruit it as a comm
module for something I'm writing -- some data would be sent to a host
machine, worked on, and then sent back.

Also I'd appreciate any references you can supply me for DDE; I don't
have SDK and would prefer to dig things up in trade magazines, etc. if I
could.

Thanks.
Liam Gray
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: StretchDIBits and one other question...
Organization: Compaq Computer Corp.
Date: Sun, 13 Sep 1992 23:12:20 GMT

I'm having an odd problem with StretchDIBits (and SetDIBitsToDevice also.)

I'm using it do display grey scale images but for some reason it
doesn't seem to work with certain dimensions.  Here's a code fragment:

 lpbmi = (LPBITMAPINFO)GlobalLock(hbmi);
 lpImageBits = (char huge *)GlobalLock(hImageBits);


 i=StretchDIBits(hdc, 0, 0,
		nZoomFactor*nImageWidth,
                nZoomFactor*nImageHeight,
		0, 0, nImageWidth, nImageHeight,
		lpImageBits, lpbmi,
		DIB_RGB_COLORS, SRCCOPY);

nZoomFactor is an integer used to perform a quick and dirty zoom on
the image.  The rest should be self explanatory.  Now it works fine with
images with dimensions of 200x200 and 800x800, but when I try 130x130
or 255x210 it fails.  It returns 0 meaning 0 lines displayed.

I've checked all of the variables right before the function is called,
and they all are correct, yet it still fails!!  I'd appreciate any
hints.

The second question is with how to store the image data in memory.
Currently I'm using a (char huge *) pointing to a global memory.
This is for an image processing package to it's nice to have the
data readily available for processing and display.  

This works fine and I can access the data sequentially, say
	
	char huge *ptr;
	ptr = (char huge *)GlobalLock(hImageBits);
	for(i=0;i<40000;i++)
 	 ptr++;   // for a 200x200 image.

this works fine.  The problem occurs when I try to access a byte
in the middle.  ptr+=20000 directly instead of moving through all of
the data.  Is this a problem with the way I'm trying to access
the memory or do I need to rethink the way I store it.

Any hints would greatly appreciated.


--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
                                                             Joseph Campbell
 
Newsgroups: comp.os.ms-windows.programmer.misc