HDTenEightyP/NetNews huggingface dataset:
From: aaa@APOLLO.HP.COM (Simon Fowler)
Subject: Re: Resource Workshop include dirs...
Organization: Hewlett-Packard Company, Chelmsford, MA
Distribution: usa
Date: Thu, 16 Apr 1992 20:15:25 GMT

In article <1992Apr16.073814.183@informatik.uni-wuerzburg.de>, krumke@winx03.informatik.uni-wuerzburg.dbp.de (krumke) writes:
||> You can set up the include path with an option in the "FILE" main
|> menu of the borland workshop. Sorry I'm not at the machine now, but
|> you should select the "FILE"-menu and then look out for "settings" or
|> something like that. (As there are not too many items in the "FILE"-menu
|> you should be able to find a corresponding item). I was also stuck with
|> the problem and was able to fix it like that. I have to say that I'm using
|> the German version of the workshop and the English version might be
|> different.
|> 
|> Sven
I had tried this on mine - it did not help! Must be the language barrier again.

simon
From: at887@cleveland.Freenet.Edu (Scott Butler)
Newsgroups: comp.windows.ms.programmer
Subject: Getting the handle of a form in VB
Date: 13 Apr 92 21:18:59 GMT
Article-I.D.: usenet.1992Apr13.211859.18673
Reply-To: at887@cleveland.Freenet.Edu (Scott Butler)
Organization: Case Western Reserve University, Cleveland, Ohio, (USA)


Is there a way of getting the handle of a form in Visual BASIC besides
reading the form's ".hWnd" property (slow & clunky method!)?  I have a
DLL by Jonathon Zuck called "CTLHWND.DLL" that has a call to get the
handle of a VB *control*, but not a form (Jonathon, you reading this?).

Any help on this would be immensely appreciated.....

Scott
(313) 758-8724
-- 
Scott Butler
------------
100% disclaimer-free!
From: clay+@cs.cmu.edu (Clayton Bridges)
Newsgroups: comp.windows.ms.programmer
Subject: Could someone post when TDWIN31.ZIP gets to wustl
Date: 10 Apr 92 19:39:08 GMT
Organization: School of Computer Science, Carnegie Mellon

I looked on wustl, and even went to SIMTEL to find the Borland/Win31
fix files (TDWIN31.ZIP, TI868.ZIP, TPWN31.ZIP), but to no avail. Could
someone post when these are up, especially on wustl.

Thanks

Clay
From: richardh@hpopd.pwd.hp.com (Richard Hancock)
Newsgroups: comp.windows.ms.programmer
Subject: Re: LocalAlloc fails in Visual Basic Control-Help!
Date: 16 Apr 92 14:48:59 GMT
Organization: The Duffer of St. George

/ hpopd:comp.windows.ms.programmer / keithb@hemel.bull.co.uk (Keith Bedford) /  9:49 am  Apr 16, 1992 /

>Having written a Visual Basic Control using the Control Development Kit,
>I get a General Protection fault calling LocalAlloc.

Have you initialised your local heap?
From: raisty@berlioz.nsc.com (Sue Raisty)
Newsgroups: comp.windows.ms.programmer
Subject: MS WAVE file format
Keywords: multimedia, WAVE, MS Windows
Date: 8 Apr 92 18:56:58 GMT
Organization: National Semiconductor Corporation


Hello.  I don't usually read netnews, but I need your help.
I have a few questions about WAVE file format.  I have been referencing
the  _Microsoft Windows Multimedia Programmer's Reference_ for information on 
the format.  To my untrained eye it does not seem like the format described in 
the book matches the format of the WAVE files that came with the Windows 3.1
beta release that I have.  I looked at ding.wav, chord.wav, chime.wav, and
tada.wav.

The book says (on Pg. 8-40)
<WAVE-form>  ->  RIFF(  'WAVE'			//Form type
			<fmt-ck>		// Waveform format
			<data-ck> )		// Waveform data

<fmt-ck>  -> 	fmt(	<wave-format>		// WaveFormat Structure
			<format-specific>	// Dependent on format category

<wave-format> -> struct {WORD formatTag;		// Format Category
			 WORD nChannels;		// No. channels
			 DWORD nSamplesPerSec;   // Sampling Rate
			 DWORD nAvgBytesPerSec;  // For buffering
			 WORD  nBlockAlign;}	// Block alignments

<PCM-format-specific> ->  struct {WORD   nBitsPerSample;}  //Sample Size

<data-ck> -> data( <wave-data> )
----------------
Below I have the translations of the binary wave files into ascii. 

ding
52 49 46 46 			RIFF
46 2D 0 0 
57 41 56 45 			WAVE
66 6D 74 			fmt
20 10 0 0 0 1 0 1 0 22 56 0
0 22 56 0 0 1 0 8 0 
64 61 74 61 			data
22 2D 0 0 
80 80 80 80 80 80 80 80 80....

chimes
52 49 46 46 			RIFF
28 3E 0 0 
57 41 56 45 			WAVE
66 6D 74 			fmt
20 10 0 0 0 1 0 1 0 22 56 0 0 22 56 0 0 1 0 8 0 
64 61 74 61 			data
4 3E 0 0 
80 80 80 80 80 80 80 80 80 80........

----
As you can see, I found where the text is that says RIFF, WAVE, fmt, etc...
But I am a bit confused because I can't find the parantheses, etc...
Also, what is the Word that is in-between the RIFF and WAVE text?  It is
not specified in the book... It was different in all the files I checked.
There also seem to be more bytes in the fmt-ck than I think there should 
be.  By my count, there should be 16 bytes (7 words in the wave-fromat and
1 word in the format-specific), but you can see that there are 21.  I guess
that some of the extra bytes must be leading and trailing characters, but 
I can't guess where.  I am also a bit confused about the bytes right after
the text "data".  What are they, what do they do, how long are they, etc...

I would really appreciate it if anyone could explain this differences to me
or send me any current and more detailed information on the WAVE file format.  
Since I rarely, if ever, read news, please send email to me personally...

Thanks muchly,
Sue Raisty
raisty@berlioz.nsc.com
Newsgroups: comp.windows.ms.programmer
From: root@jennifer.verfahrenstechnik.uni-stuttgart.de (Operator)
Subject: TrueType fonts and rotation
Organization: Institute A for Mechanics, University of Stuttgart, Germany
Date: Mon, 6 Apr 1992 09:21:02 GMT

Is it right that TrueType fonts can be rotated on the screen, but
not on the printer ? When I try to print a rotated text string
to my Laserjet I get no rotation, which breaks my visualisation
program. - With ATM I have no problems. (Win 3.1.068).

Martin.
From: nat@netcom.com (Nathaniel Stitt)
Newsgroups: comp.windows.ms.programmer
Subject: I Received C/C++ 7.0 today!!! (Includes 3.1 SDK!)
Date: 9 Apr 92 21:30:05 GMT
Article-I.D.: netcom.acsjr0m.nat
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Thursday 4/9 at 9:00 a.m. UPS delivered MSC 7.0!  It INCLUDES the entire
3.1 SDK as a separate set of disks.  The hard copy docs for 3.1 SDK can
be ordered with a special order form for $150.  I have installed everything
and am now testing it out, initial results look good!  (Compiled my 30,000
line windows app & it runs.)  I am impressed by the speed of the compiler
and the improved warning messages, I compile all my stuff with -W3 -WX to
force myself to keep my code clean and C7 found several extra things to
warn me about that C6 was letting me slide on.

nat@netcom.com
Newsgroups: comp.windows.ms.programmer
Subject: Re: UnlockResource()
From: chuah@elec.canterbury.ac.nz (DanC)
Date: 7 Apr 92 22:24:37 +1200
Organization: Electronic and Electrical Engineering Department, University of Canterbury, New Zealand.

In article <1992Apr6.205434.28110@icd.ab.com> jaz@icd.ab.com (Jack A. Zucker) writes:

>In which DLL is this function found. 

None.  UnlockResource() is a macro defined in windows.h.  

--------------------------------------------------------------------------
Dennis Chuah  | "Pencangkul Matahari"  email:   
EEE Canterbury|  chuah@stargate.elec.canterbury.ac.nz  (SUN) <- preffered
New Zealand   |  CHUAHDC@ELEC.canterbury.ac.nz         (VAX)
---------------- CHUAH-DC@opheus.elec.canterbury.ac.nz (NOVELL) ----------
(bugs+flames) > /dev/null



Newsgroups: comp.windows.ms.programmer
From: siebeck@infoac.rmi.de (Wolfgang Siebeck )
Subject: Re: Wierdness and Bugs in Borland Products
Organization: RMI Net INFO.box Systems * Aachen * Hamburg * Flensburg
Date: Wed, 15 Apr 1992 11:44:36 GMT

Brent Langdon <32JJCB3@CMUVM.CSV.CMICH.EDU> writes:

>     In another note:  Has anybody noticed that in Borland Turbo 3.0 for
>Windows, if the main window is not maximized and you have a text window
>that is bigger than the main window but also not maximized, when you
>use the cursor to scroll down the last text line on the screen is repeatedly
>scrolled up.  Once you let the key up, the window is repainted as it should
>be.  Not that big of a deal but sometimes little bugs such as that make one
>wonder just exactly how reliable the entire product is.

Well, I guess this is no bug. Since repainting takes so long, it is delayed
until no further scrolling is requested. The whole window is repainted when
the key is released. Can anyone confirm this? (sidney? hint, hint, ...)

Wolfgang
--
siebeck@infoac.rmi.de (Wolfgang Siebeck)
[ Yes, I got the T-shirt with my first release of Turbo-C :-) ]
From: news@fedfil.UUCP (news)
Newsgroups: comp.windows.ms.programmer
Subject: grey scales on a color monitor?
Date: 14 Apr 92 02:14:54 GMT
Organization: HTE

I've got another strange problem here...  I need to get a grey-scale
effect on color monitors (customer demands it...)   

You'd think I could set a palette thus:


MyLogPalette = (LPLOGPALETTE)
farmalloc(sizeof(LOGPALETTE) + sizeof(PALETTEENTRY) * 256);
	 
MyLogPalette->palVersion = 0x300;

MyLogPalette->palNumEntries = 256;

for (i = 0; i <= 256; ++i)
{

   MyLogPalette->palPalEntry[i].peRed   = i;
   MyLogPalette->palPalEntry[i].peGreen = i;
   MyLogPalette->palPalEntry[i].peBlue  = i;
   MyLogPalette->palPalEntry[i].peFlags = 0;
}

						       
And this almost works.  Almost everything comes out as grey scales, but
three or four of the colors come out wrong, a sort of an off-white, a 
garish purple, and an aquamarine color for sure and possibly one other.

What am I missing here?  I get the same results both on Trident-based 
systems and on Tseng-based systems, so it's not hardware.  The images I'm
working with were created as 8-bit values, and I'm just feeding those values
to an old-style bitmap.

I'd appreciate any help.

Ted Holden
HTE



-- 
HTE
bear
Newsgroups: comp.windows.ms.programmer
From: aa596@cleveland.Freenet.Edu (Peter Haller)
Subject: Re: Sound in 3.1
Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Tue, 14 Apr 92 23:31:08 GMT


In a previous article, guthrie@iuvax.cs.indiana.edu ("Stephen Guthrie") says:

>
>   I've heard you can use SOUND.DRV in Windows 3.1 to play music
>through your pc, but I have been unable to determine how.  I tried to
>load this driver, but it wouldn't let me.  How does this give me sound
>capabilities?  Any help appreciated?
>
>
Microsoft has released a PC speaker driver for Win3.1. It allows you to play
.WAV files through the built in PC speaker. I found it on CI$. It maybe 
at a FTP site. It works, but don't expect too much. (Get a Multisound from
Turtle Beach. )

PCH
-- 
Peter C. Haller				|	'If you do what you 
Imagination Processing Systems		|	have always done,
aa596@cleveland.Freenet.Edu 		|	expect what you have
"Are we having fun yet?"		|	always recieved.'
From: ctne_ltd@uhura.cc.rochester.edu (Chris Newbold)
Newsgroups: comp.windows.ms.programmer
Subject: Information about device driver development
Date: 11 Apr 92 20:17:50 GMT
Organization: University of Rochester - Rochester, New York

Where can I get information about developing device drivers for
Windows 3.0/3.1? I know MS has a DDK, but I would like to figure
out if what I have in mind is possible before spending any money.

I would like to write my own COM driver to support several custom
functions on COM ports, such as monitoring and enhanced messaging.
I know 3.1 has improved COM functions, but there're still not up
to the level I need.

Where can I get information about this stuff? Thanx for any help!


-Chris


--
>>>> Chris Newbold <<<< * "If you fool around with a thing for very long you *
University of Rochester	*  		  will screw it up."		     *
Disclaimer: "All warranties expire upon payment of invoice."                
ctne_ltd@uhura.cc.rochester.edu * uhura.cc.rochester.edu!ctne_ltd@uunet
Newsgroups: comp.windows.ms.programmer
From: gregde@microsoft.com (Greg Demichillie)
Subject: Re: Freeing USER data segment memory
Date: 14 Apr 92 15:51:28 GMT
Organization: Microsoft Corp.

In article <1992Apr8.213738.24213@Arco.COM> ddetws@Arco.COM (ddetws) writes:
>HELP!!!
>
>I'm working on a Windows app that does not free system resources properly.
>The GDI segment is OK, but my USER segment is growing. It doesn't seem
>to grow larger the same amount each time. I looked for any MakeProcInstance
>calls without FreeProcInstance calls, but this doesn't seem to be the 
>problem. I only use one MakeProcInstance call, other than dialog boxes,
>and save the pointer to a global variable. I FreeProcInstance when 
>processing the WM_DESTROY message. ( Could this be the problem? My
>app sure doesn't have any trouble finding the function. ) By the way my 
>app loses 4 to 6K to the USER segment each time it is run and exited.
>Does this sound like an application problem, or maybe a Windows (heaven
>forbid!) problem?
>

The best way to track down leaking resources is to use the debug kernel
of Windows 3.1 (included in the SDK.)  When the debug kernel is running,
Windows tags allocations in the USER and GDI heaps with information about
the app the allocated them and then when the app exits it runs through
the heap looking for objects allocated by that app and prints a list of
them.

-Greg


-- 
Greg DeMichillie
Software Design Engineer - Application Frameworks (AFX)
gregde@microsoft.com
Newsgroups: comp.windows.ms.programmer
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: How to put text in dialog control?
Organization: Compaq Computer Corp.
Distribution: usa
Date: Tue, 7 Apr 1992 22:08:30 GMT

In article <1992Apr7.152723.1059@u.washington.edu> rexw@hardy.u.washington.edu writes:
>
>Sorry if this is in the FAQ but I only saw the diffs and that didn't help
>to much.  Subject line says it.  I'm using BC 2.0 and trying to put text
>in a combo box in a dialog.  I try SetDlgItemText during the initialization
>of the dialog and nothing shows up.  What kind of string should I use? 
>

Try...

hCtl = GetDlgItem(hdlg, IDD_NAME);
SendMessage (hCtl, WM_SETTEXT, 0, (LONG) (LPSTR) TextToSet);


--
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.windows.ms.programmer
From: jeff@sporty.col.oh.us (Jeff Anderson)
Subject: Re: need help with SetWindowsHook
Organization: J.A. Anderson & Company, Columbus, OH US
Date: Sat, 11 Apr 1992 01:01:22 GMT

In article <1992Apr05.010123.28661@microsoft.com> deanm@microsoft.com (Dean Mccrory) writes:
>It depends on which hook you are installing (WH_xxxxx).  The specifics
>of the parameters/retval are discussed in the docs for each of the
>hooks in the SDK (under SetWindowsHook topic).
>
>In many of the hooks, lParam points to a structure that has the 
>info you want.

The one thing I have yet to find documented is the ParamH and ParamL
words in the event structure for Journal Record.  I have been trying to
write a keyboard macro recorder for our app so that the user can record
keystrokes, assign them to a key and play them back in the current or
future sessions.  I was able to get it to work in the current session
with Journal Record.  What I need to be able to do is save them to disk
and play them back in future sessions.

The Recorder does what we want but it hoses up if our app is not in the
foreground.  For example, I had our app up and Word for Windows 2.0  I
presses a function key in Word and the recorder came up with a dialog box
telling me it could not play it back to the correct window.  Even though
we bring up and tear down the recorder when our app comes up and goes
away, unsohpisticated users often close it while they are running our app
because the don't know what it is or why it is up (as an icon).

Sorry if I missed relevent posts, I was out all week and articles over a
few days were expired.

-------------------------------------------------------------------------------
Jeff Anderson       jeff@sporty.col.oh.us 	     jaa@rsch.oclc.org
H: 614-252-7563     B7 f+ t w dc g+ k+ s- e r        jeff@sporty.UUCP 
W: 614-764-6222     "You were traveling at over 80,000 k.p.h. only 10 
meters from Cadet Albert, and you didn't even know his orientation?!!" -ST:TNG
-------------------------------------------------------------------------------
Newsgroups: comp.windows.ms.programmer
From: jinli@dgp.toronto.edu (Jin Tonic Li)
Subject: (Summary) Function export problem when porting MSC code to BC 2.0
Organization: Department of Computer Science, University of Toronto
Distribution: na
Date: 14 Apr 92 03:28:36 GMT

In article <92Apr10.183524edt.144354@explorer.dgp.toronto.edu>, I wrote:
> I am porting a windows app written with MSC 6.0 and SDK 3.0 to BC++ 2.0
> The C source codes compiled fine with minor changes to associate function
> prototypes with each individual module vs putting all of them in one 
> .h file and include it in all module files.
> 
> However, the linker gives warning about exporting dialog functions:
> 
> 	Attempt to export non-public symbol XXXXX
> 
> where XXXXX is the name of the dialog function.  The dialogs are called
> through MakeProcInstance(XXXXX, hInst) which are all listed under
> EXPORTS in .def file.
> 
> I have tried the options All windows functions exportable and Explicit
> export for BC++ 2.0  The linker still gives the same warning.
> 

First, thanks to all who offered help to solve this problem.

There are two ways to solve this:

1. using case-sensitive linker option, I have to list the dialog proc names
   in upper case in the .def file under the exports statement. (This seems
   to be a bug in BC++ since my dialog proc names are all in mixed case)

2. using non case-sensitive linker option, I just list the proc names(any
   combination of upper and lower case)

Since I used MakeProcInstance(), I don't seem to be able to use _export
in the declaration of the dialog proc.  The manual says that I also have
to list them in the .def file.

Hope this will help others who have encountered this problem.

--
Jin Li                               (416) 978-6619  //  Gin & Tonic mix well
Dynamic Graphics Project, Dept. of Computer Science  \\
University of Toronto, Ontario, Canada   M5S 1A1     //
jinli@dgp.utoronto.ca          uunet!utai!dgp!jinli  \\    No bugs, no bucks
From: nupairoj@galaxy.cps.msu.edu (Natawut Nupairoj)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Always-On-Top option
Date: 15 Apr 92 18:49:52 GMT
Distribution: usa
Organization: Dept. of Computer Science, Michigan State University

In article <1992Apr14.191536.19337@daffy.cs.wisc.edu>, you write:
|> Hi,
|> 	I am trying to make one of my program windows stay on top all the
|> time (i.e. it should not be overlapped by another window).
|> 
|> 	I know the Windows Help has this option of "Always on top." Does
|> anyone out there have any idea how to do that?
|> 
|> 	Any help would be appreciated. Thanks.
|> 
|> 							- cjin pheow
|> 
|> PS: I'm using Windows 3.1
|> 

If you wrote that program, there are several ways to do (on Windows 3.0), 
but the simplest way is use a timer event.
For example, you can set a timer message for every 1 second.  When your
application receives this message, check the current active window.  If it's
not your window, call this function:

ShowWindow(hWnd, SW_SHOWNA);

This will bring your window on top while the active window is still unchanged.


Anyway, I also wrote a program that made one (any) parent window always on top
(for Windows 3.0).  This program is public domain.  If you want, I will send
it to you.  (I want a feedback about my program on Windows 3.1. :))

Natawut Nupairoj
nupairoj@cps.msu.edu
Organization: North Dakota Higher Education Computer Network
Date: Monday, 13 Apr 1992 14:21:11 CDT
From: <NIBMSCM@NDSUVM1.BITNET>
Newsgroups: comp.windows.ms.programmer
Subject: Dialog Data Entry

Thanks for your replies to my previous entry under this heading.  Did finally
succeed in creating a message filter routine with the SetWindowsHook() call.
The routine that I have looks for WM_CHAR messages (after calling
TranslateMessage()) to filter out illegal user keystrokes based on the type
of data field.  One problem though, for keystrokes like "TAB" that should
allow me to move from one dialog field to the next, I don't do any filtering
(message filter just returns a zero).
  Even so, the "TAB" appears to be filtered - generates a beep from my
keyboard (and I ain't the one generating it).  So, anyone know where
in the &*#(@ this beep is coming from and why my "TAB" key disappears
into oblivion?  Thanks...   again.
 ___________
|           |   Regards,
| ND  ----> *      Steve Malme    -->steve@fbsdata.com<--
|____________|      FBS Data Systems  nibmscm@ndsuvm1.bitnet
Nike - "Just do it"
Newsgroups: comp.windows.ms.programmer
From: sidney@borland.com (Sidney Markowitz)
Subject: Re: BorDlg problems?
Organization: Borland International
Date: Fri, 10 Apr 1992 23:47:05 GMT

wilcox@wucs1.wustl.edu (Don Wilcox) writes:
>does anyone know
>when Borland will be releasing a fix for BWCC.DLL that doesn't screw up the
>dialog boxes.

Borland will be releasing a BC++ update kit for for Windows 3.1.
A Borland spokesperson said a couple of weeks ago that the expected
date is six to eight weeks after the final release of Windows 3.1
(which was April 6). I know that BWCC.DLL is one of the things being
fixed.

 -- sidney <sidney@borland.com>
From: zocchi@ohsu3b2.ohsu.edu (Don Zocchi)
Newsgroups: comp.windows.ms.programmer
Subject: Mainframe API's
Date: 13 Apr 92 02:01:12 GMT
Organization: Oregon Health Sciences University
Originator: zocchi@ohsu3b2.ohsu.EDU

My comrades and I are building a mainframe oriented
series of Windows applications.  Our current mainframe configuration is
running PS/2's to an IBM (Amdahl) mainframe.  I was wondering if there were
any HLLAPI LU6.2 or 3270 type API's that are available.  We are currently
running a Token ring and Novell Netware.  We have been looking at Rabbit
software, but do not currently have a Rabbit API.  Ultimately we will be
communicating with a DB2 database.  Is there a straight forward API for doing
this.

Don Zocchi
O.H.S.U.
503-646-1606
Newsgroups: comp.windows.ms.programmer,comp.windoes.ms
From: nupairoj@tuna.cps.msu.edu (Natawut Nupairoj)
Subject: Re: Unwanted Multitasking!!
Organization: Dept. of Computer Science, Michigan State University
Date: Fri, 10 Apr 92 18:57:50 GMT

In article <1992Apr10.133656.28981@ugle.unit.no>, jlongva@Siri.Unit.NO (J|rgen Longva) writes:
|> 
|> The external routine must pass data back to the windows-program, and I
|> use the hard disk as a buffer:
|> 
|>   // Executes the external routine.
|>   if (WinExec("routine.exe", SW_HIDE) < 32)
|>     --> Error
|> 
|>   // Reads the information returned by the external routine.
|>   if ((file = _open("info.txt", O_RDWR)) == -1)
|>     --> Error
|> 
|>   ...
|> 
|> The problem is that the main-program continues to run - and reaches the
|> line where I open the result-file too early. I've made a .pif-file for
|> the externl routine that checks the "Exclusive"-flag for priority.
|> 
|> How can I check when the external routine is finished? Is there an al-
|> ternative to WinExec(...) (the LoadModule(...) does only work for win-
|> dows .exe-files)?

There are 2 ways to solve this:

1. Use yield() function (proably don't work)
2. Have some synchronization ie: the external routine create a special file
   when it completes its job.  Your main program have to check this file.

Yeah, it does not look great but I think it works.

Natawut Nupairoj.
Newsgroups: comp.windows.ms.programmer