HDTenEightyP/NetNews huggingface dataset:
From: dvasaru@solan.unit.no (Dan Vasaru)
Subject:  QUEST for SSCANF in DLL (msc7.0)
 
 I know this has been asked before, but I didnt to save the answers :-( so here I
Organization: Norwegian Institute of Technology
Date: Mon, 9 Nov 92 11:40:45 GMT

come..
 My problem is simple. The xxxscanf functions proto's are ifdef'd out of
the stdio when compiling DLL's . Moreover, the sscanf code is not in
the dll default C lib ( something like LDLLxxx).
*flame on*
 I need it badly in my dll's. I find it rather slopy of Microsoft to
not include it in the DLL llib , for whatever reasons ( I guess that
something was buggy about private lib data or the DS!=SS issue).
Borland does provide it, ergo it's possible. So what now ? Will I have
to start looking for a PD sscanf source or looking for another
compiler for my DLLs ? 

Help !. I need a sscanf for my DLL's.

Thanks,
	Dan Vasaru
	software developer
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.os.ms-windows.programmer.misc
Date: Thu, 12 Nov 1992 14:10:45 -0500 
From: David A Hanekamp <dh4h+@andrew.cmu.edu>
Subject: MDI and Dialog Boxes

Is there any way to make a modeless dialog box as a child window in an
MDI application?  I want the dialog box to stay on the screen and be
able to be minimized just like a child window.  I'm using Borland C++
3.1 and the OWL library.

   Dave
Newsgroups: comp.os.ms-windows.programmer.misc
From: sam4628@zeus.tamu.edu
Subject: Re: Changing Window's focus: possible?
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Fri, 6 Nov 1992 13:57:00 GMT

>>In article <4NOV199210331435@zeus.tamu.edu>, sam4628@zeus.tamu.edu writes:
>>|> Is it possible to write a program which changes the way Windows focuses?
>>|> I would like the active window to be selected by mouse pointer position,
>>|> without necessarily bringing the window to the front.  Has anybody done
>>|> anything similar to this?  Thanks.

To follow up on my original post: I have managed to write a program which
brings to the front and makes active whichever window the mouse cursor is
over.  There are still a few (major) problems:

When I bring up a menu and move the mouse down, the menu disappears (I
think I can solve this problem by only changing focus when the mouse
moves to a different parent window).  The other problem is that the
newly focussed window is automatically brought forward -- I would like
to be able to have an overlapped active window.

The program so far just sets a hook for mouse messages which uses
WindowFromPoint to get the handle of the window located at the cursor
position (if any) and SetFocus to change the focus to that window.
(SetFocus must be responsible for bringing the focussed window forward --
I don't know if there's a simple way around this.)

Just in case anybody is inclined to tell me what a stupid idea and/or
method this is, bear in mind that this is the first windows program I've
ever written.

Steven M.

P.S.  I typed in the HELLOWIN example out of Petzold (using BC++) and got
it to work with minor mods.  However, I get a warning that I'm trying to
export a non-public function when I include my window proc in the EXPORT
line of the DEF file.  Any suggestions?
Newsgroups: comp.os.ms-windows.programmer.misc
From: ahrikenc@hpserv1.cae.wisc.EDU (Cherif Ahrikencheikh)
Subject: HELP! reading memory mapped data
Organization: College of Engineering, Univ. of Wisconsin-Madison
Distribution: usa
Date: 8 Nov 92 20:01:35 CST
Originator: ahrikenc@hpserv1.cae.wisc.edu


In DOS, I simply had to set a pointer to the desired memory segment
(e.g. EOOO0H, 100000H, ...).  Then, the data is read in byte by byte
by incrmenting the pointer ptr and displaying *ptr;

This same code doesn't work in MS-Windows.  Please Help.


Newsgroups: comp.os.ms-windows.programmer.misc
From: avinogra@empire.cce.cornell.edu (Alex Vinogradov)
Subject: Is it a DDE ??
Organization: Cornell Cooperative Extension
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 10 Nov 1992 06:06:11 GMT


I just noticed that when one uses File Manager to print a file, it calls
program which the file is associated with and then makes this program print 
the file.  It looks quite interesting -- for example, for *.txt files
Notepad pops up, prints the file, and then exits back to File Manager.

Does anyone knows how is it done?  Is that some kind of DDE interaction?

Alex

PS: Please reply via e-mail (I do not read NetNews too often) to
	avinogra@empire.cce.cornell.edu
	av10@crux2.cit.cornell.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: sat@nut.tridom.com (Stephen Thomas)
Subject: VxD for Packet Driver, ODI, or NDIS
Reply-To: sat@eng.tridom.com
Organization: AT&T Tridom
Date: Wed, 11 Nov 1992 21:16:37 GMT

Is anyone willing to share (executable or source) a virtual device
driver for any of the three major network interfaces. I'm mostly
familiar with packet drivers, so forgive my ignorance (but please
enlighten me) if Novell or Microsoft can provide a VxD for ODI
or NDIS.

If you email, I'll summarize.

Thanks

---

Stephen Thomas   AT&T Tridom   (404-514-3522)
email: sat@eng.tridom.com, attmail!tridom!sat

Newsgroups: comp.os.ms-windows.programmer.misc
From: ahmad@norooz.NoSubdomain.NoDomain (Ahmad Alavi)
Subject: HELP!!!  URGENT!!!
Reply-To: ahmad@norooz.b17a.ingr.com
Organization: " "
Date: Thu, 12 Nov 1992 21:59:14 GMT


A Borland C++ application in Windows and Windows Write do not mix

While Write is running we execute our program and this error occurs


                           Application Error

     WRITE caused a General Protection Fault in module USER.EXE at
     0001:3A16.


Our program will continue to run but when the application is closed, our
system reboots.

When Write is not running our program executes normally.

The Write error occurs in our program when a Window's SetMenu call
is executed.  The debugger shows "cs:3A16 A4 movsb" to be the code inside
SetMenu which fails.

We are using Borland C++ 3.1, Windows 3.1, and Whitewater Object Graphics 1.0.
We are running the Large memory model.

Does any one have any suggestions as to where we should look to solve
this problem?  Any help would be appreciated.

Gina Cross

ahmad@norooz.b17a.ingr.com
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: HELP!!! Problem with acessing system memory
Date: 10 Nov 92 23:56:03 GMT
Organization: PE-Nelson

In article <689@lax.lax.pe-nelson.com>, twbrown@PE-Nelson.COM (Tom W. Brown) writes:
|> The selector __E000H is an exported symbol from KERNEL, you have to provide
|> a declaration for it:
|> 
|>    extern WORD __E000H;
|>    .
|>    .
|>    .

Oops, that should be:

   extern WORD PASCAL __E000H;



----------------------------------------------------------------------------
Tom Brown               |  "'ow d'you know 'e's a king?
PE Nelson Systems       |            'cause 'e 'asn't got shit all over 'im!"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: marco@hpmcaa.mcm.hp.com (Marco Dalla-Gasperina)
Subject: Data Compression DLL/Lib
Organization: HP Cardiology Business Unit - McMinnville, OR
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 09 Nov 1992 16:47:40 GMT

Greetings,

I'm looking for a data compression/decompression library that I
can use in a Windows app.  Windows does come with LZexpand but there
is no companion LZcompress facility (save the compress.exe dos command).
PKware does have a data compression library but I'm not sure if I
can link it into a windows app and have it work.

Any ideas?

thanks,
marco
From: winkler@cs.tu-berlin.de (Barbara Maren Winkler)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Interrupts under Windows ?
Date: 7 Nov 92 18:57:58 GMT
Organization: Technical University of Berlin, Germany


Hello,

does anybody know how to program an interrupt under Windows (3.1)?
Or any other way to really stop execution until the last statement
(in C) has finished?

The problem is: We want to write a driver for an external device,
(a laser video player -- Bildplattenspieler in German). We can
write to it, but when we want to read (a character), Windows
doesn't wait for any character to come back; it immediately
continues with the next statement. Under DOS without windows,
we did this with an interrupt and it worked, but Windows obviously
has masked the interrupt somehow.

Does anybody know a solution?

Thanks
--
Barbara Maren Winkler                   winkler@opal.cs.tu-berlin.de
=======================================================================
From: ae302@cleveland.Freenet.Edu (Peter Haller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: BORDLG class dialog boxes
Date: 11 Nov 1992 02:29:20 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: ae302@cleveland.Freenet.Edu (Peter Haller)
NNTP-Posting-Host: slc12.ins.cwru.edu


In a previous article, josteinl@saga.oih.no (LEIRA JOSTEIN) says:

>
>You'r right. You must load the BWCC.DLL. There are two ways to do it.
>
>First method:
>
>  Enter these two lines of code at the start of your program:
>
>    HANDLE hDLL;         /* This line could be defined in the app-class */
>    hDLL = LoadLibrary("BWCC.DLL"); /* and this line in the constructor */
>
>  and this line at the end (of WinMain):
>
>    FreeLibrary(hDLL);              /* and this line in the destructor */
>
>  Then you should link your program with BWCC.LIB and IMPORT.LIB. (The 
>  Borland documentation says the linking order i important.)
Nope, this is wrong, partially. If you link in the bcww.lib file
you do not need to use LoadLibrary(). When you link with bwcc.lib
you force an implicit link and link all the exported functions. 
LoadLibrary() allows you to load a DLL dynamically. When you do
thing your way you don't do any harm, but it is redundant. Using
LoadLibrary() by itself though will not work, unless you then
call GetProcAddress() to retrieve the exported functions that you
require.

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: lebrun@ll.mit.edu (Steven F. LeBrun)
Subject: Microsoft SDK (C/C++ 7.00) Libraries
Organization: MIT Lincoln Laboratory, Lexington, MA
Distribution: comp
Date: Fri, 13 Nov 92 12:31:37 -0500
Expires: 30-Nov-1992

I recently installed Microsoft C/C++ 7.00 compiler along with the
Software Development Kit.  I am new to MS-WIndow programming and
have a question about the set of libraries supplied with the SDK.

The only SDK windows libraries that I can find are the floating
point emulator libraries (e.g. slibew.lib).  Are there any windows
libraries that use the math coprocessor?  Are there any restrictions
for using the math coprocessor from an MS-Windows program?

--

+--------------------------------------------------------------------------+
| Steven F. LeBrun             |      MIT Lincoln Laboratory, Group 91     |
|                              |        244 Wood Street, Room LI-136       |
| lebrun@ll.mit.edu (Internet) |          Lexington, MA 02173-9108         |
| lebruns@merlin    (internal) |  Phone:(617)-981-5742, FAX:(617)-981-0991 |
+--------------------------------------------------------------------------+
|"Hard as lightning, soft as candlelight;                                  |
|                    Dare you trust the Music of the Night?" - The Phantom |
+--------------------------------------------------------------------------+
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Typecasting a pointer to member-function to unsigned long
Date: 5 Nov 92 18:13:39 GMT
Organization: PE-Nelson

In article <runehh.97.720902695@dhhalden.no>, runehh@dhhalden.no (RUNE HALFDAN HOLST HUSEBY) writes:
|> 
|> In a project I'm working on, I need to typecast a (far) pointer to a 
|> function to an unsigned long (DWORD). I need to do this because the 
|> MS Windows API requires me to do such a thing.
|> 
|> This is the line that causes the error:
|> 
|>         SetWindowLong(GetDlgItem(HWindow, ID_TO), GWL_WNDPROC, 
|>                                 (DWORD)&WCompose::ComboProc);
|> 
|> What I'm trying to do, is to send over a callback function, using a generic 
|> function which set a lot of different properties, all the size of a long.
|> Thus I need to typecast the function pointer to an unsigned long.

Danger, Will Robinson, danger, danger !!! :-)

A pointer to member function cannot be given to Windows as a callback because
Windows does not know how to supply the 'this' parameter.  However, if the
function is declared as 'static' you may do so (since static member functions
don't get a 'this' pointer).

So, assuming that WCompose::ComboProc is declared as a static member
function, the above syntax should work.  I gather it does not, so you may
want to double check that this function is, indeed, static.


----------------------------------------------------------------------------
Tom Brown               |  "'ow d'you know 'e's a king?
PE Nelson Systems       |            'cause 'e 'asn't got shit all over 'im!"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
From: bkph@kauai.ai.mit.edu (Berthold K.P. Horn)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: `Three windows not destroyed' when print job aborted
Date: 6 Nov 1992 13:24:33 GMT
Organization: MIT Artificial Intelligence Lab
NNTP-Posting-Host: kauai.ai.mit.edu


On several machines running Windows 3.1, I have noted that system resources
decline when many print jobs are aborted.  

On two that are running the debug kernel, I have confirmed that when a print
job is aborted, some Windows may not get destroyed (3 per abort).  No error
messages appear at the time of the abort, obviously, but when the job is
killed, the debug kernel reports `three Windows not destroyed'.

I first noticed this in one of my own applications, and wasted hours looking
for a bug (after all, other than the print dialog box it wasn't creating any
Windows...).  The noticed the same thing in MS Word, Notepad, and other
applications.  I print to PS printers mostly, and have tried PSCRIPT.DRV
3.50, 3.52 and 3.53 - all with the same results.

Anyone notice this before?  Is it configuration dependent? (DOS 5.0, 486's,
Windows 3.1 enhanced mode). Does it depend on how PSCRIPT.DRV is installed?
(I just copy the new versions on top of the old ones).

Berthold K.P. Horn
Cambridge, Massachusetts, USA
From: steveskr@milton.u.washington.edu (Steve Skrzyniarz)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: NEED method of detecting Windowed DOS box
Date: 10 Nov 92 02:14:40 GMT
Article-I.D.: u.1992Nov10.021440.1419
Distribution: na
Organization: University of Washington, Seattle


Does anyone have a straightforward method of detecting
whether or not a process is running in a windowed dos
box (vs full-screen or outside of windows?).  I'm
attempting to do direct outs to hardware ports; unfortunately,
Windows is eating these outs if the dos app is running in a
windowed dos box (although it works fine full screen or
outside of Windows).  I would like to disable this feature
if the user is running the app from a Windowed dos box.
Unfortunately the ports I'm writing to are write-only, so
I can't simply read from them to determine whether or not
my outs took place.

I can't imagine that I'm the first programmer to ever need
to need to detect this; does anyone have a code-snippet or
straightforward method for achieveing this?

Thanks,

steveskr@u.washington.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: nelson_p@apollo.hp.com (Peter Nelson)
Subject: Jobs programming Windows?
Date: Wed, 11 Nov 1992 19:08:25 GMT
Organization: Hewlett-Packard Corporation, Chelmsford, MA


    [ Note to anyone from HP reading this:  I checked with
      Human Resources to verify that all this information
      (e.g., the downsizing, the VSI, etc) *is* information 
      I'm allowed to mention outside the Company  ]
 

    My company, like many in this industry, is forced to 
    reduce the size of its workforce.   They're offering
    a very generous voluntary severance incentive package
    to groups of employees with the hope that enough of them 
    will accept it to eliminate the need for layoffs.

    Although I like working for HP and think is has an excellent
    future, it would be foolish of me to not at least *consider*
    other possibilities if I'm one of the people eligible for
    this program (I expect to be but I won't know for sure
    until the end of November.)

    I've been programming 3D graphics in C and Pascal on 
    Unix workstations and similar enviromnents for the 
    last 9 years.  (prior to that I programmed in assembly
    language) 

    But if I left this job I would be interested in Windows
    programming.   I've been doing that at home (along with
    C++) and am currently taking a Windows programming course
    at Boston's Northeastern University and I really enjoy it.
    I will have NT set up on my PC in December and long-term,
    that's where I want to concentrate.  

    The question: is there any likelihood of getting a job
    doing Windows?  The impression I get is that employers want
    to see work experience in Windows programming.   Since I
    don't have any, and it's a tight market, how do I get some? 
    
    Should I just stay put or is there a way to get into Windows
    programming with my background?

    Thanks in advance.


---peter
From: rioj7@fel.tno.nl (M.L.M.Veraart)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: CTRL-Z Illegal accelerator key in Borland RW 3.1?
Keywords: resource workshop
Date: 5 Nov 92 08:34:49 GMT
Organization: TNO Physics and Electronics Laboratory

Using the resource workshop of Turbo C++ 3.1 for windows I was unable
to create an accelerator key for CRTL-Z. 
It complained about "Illegal key name" on the line
    "^Z",VIEW_ZOOM
Creating an accelerator key for ALT-Z was no problem.

Is this a bug in the resource workshop, or am I doing something wrong?
The resource compiler of SDK 3.0 dit not had any problem with CRTL-Z.

Mario Veraart                 TNO Physiscs and Electronics Laboratory
email: rioj7@fel.tno.nl       The Hague
Newsgroups: comp.os.ms-windows.programmer.misc
From: idpt167@tpts1.seed.net.tw
Subject: wsprintf() anomaly
Organization: Seednet Information Service Center
Date: Fri, 30 Oct 1992 09:30:46 GMT

My supervisor requested me to write a Windows installation program for
our new product.  I did that job by adapting the Windows installation program
accompanying Jeffrey M. Richter's book, "Windows 3: A Developer's Guide,"
because it is the only appropriate source I have.  In addition to copying
files and setting up program group, the adapted installation program also
modifies win.ini by inserting the application's file name -- say, winapp.exe
-- immediately after "run=" keyword under [windows] section.  For example,
if the original win.ini contains the following entry:

[windows]

run=pbrush.exe


then after the installation it should become:

[windows]

run=winapp.exe pbrush.exe


I thought it can be easily done with the following MS-C code:


char	szWinExeFiles[144];  // file names of the start-up Windows apps.

int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance,
		    LPSTR lpszCmdLine, int nCmdShow)	{

	// ... [setup code]

	// Modify WIN.INI
	GetProfileString("windows", "run", "", (LPSTR) szWinExeFiles, 144);
	wsprintf((LPSTR) szWinExeFiles, "winapp.exe %s", (LPSTR) szWinExeFiles);
	WriteProfileString("windows", "run", (LPSTR) szWinExeFiles);

	// ... [display setup success message]
}


But the following win.ini resulted:

[windows]

run=winapp.exe winapp.exe winapp.


I suspect that using the same character-string variable for both source and
destination buffer in the wsprintf() function causes this recursive behavior.
The problem is solved by using different variables for parameters in
wsprintf() as shown below:


char	szOldWinExeFiles[144];  // "run=" .exe file names in the new win.ini
char	szWinExeFiles[144];     // "run=" .exe file names in the old win.ini

int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance,
		    LPSTR lpszCmdLine, int nCmdShow)	{

	// ... [setup code]

	// Modify WIN.INI
	GetProfileString("windows", "run", "", (LPSTR) szOldWinExeFiles, 144);
	wsprintf((LPSTR) szWinExeFiles, "winapp.exe %s", (LPSTR) szOldWinExeFiles);
	WriteProfileString("windows", "run", (LPSTR) szWinExeFiles);

	// ... [display setup success message]
}


Is this a bug in MS-C (I use version 6.0) or a programming mistake of my own?


--
Hsu-Ku "Bruce" Ying                E-Mail: idpt167@tpts1.seed.net.tw
Software Engineer                  TEL: 886-2-2452227 ext. 352
ARMAS Computer Corp.               FAX: 886-2-2452218
2F #9 Lane 327 Sec. 2 Chung-Shan Road, Chung-Ho City, Taipei, Taiwan
Newsgroups: comp.os.ms-windows.programmer.misc
From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
Subject: Subclassing non-client painting of all windows
Organization: Monash University General Access Unix
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 12 Nov 1992 13:50:30 GMT

  I would like to know how to go about intercepting the Windows non-client
painting/hit-testing behaviour _system-wide_ and reacting to it.
I would like to write an app that intercepts these calls and allows the
Windows look-and-feel to be subtly modified (i.e., bas-relief title
bars, different/repositioned minimize/maximize controls,
left/right-justified titles, etc.)

  The problem is, firstly, how do do this. wm_NCPaint and wm_NCHitTest (and some
other nice functions) don't come with a window handle, DC, cursor
position or anything else remotely useful.

  And secondly, how do I set this up? I suspect that it may have something
to do with making a DLL that contains a replacement DefaultWindowProc()
(although I could be wrong, and it may have something to do with hooks.)
This DLL trick is explained in Petzold, but only for *one* application,
and with that application's consent and co-operation. How would I
intercept *all* messages, system-wide, identify the windows that they
apply to, let them run their course (if necessary), and add my own 
finishing touch? Anyone done this sort of thing?

AdTHANKSvance;


+-----------------------------------------------------------------------+
|  Andrew Bulhak		| If only there was a version of UNIX   |
|  sloth@yoyo.cc.monash.edu.au	| that could run Microsoft Windows...   |
|  Monash Uni, Clayton,         |                                       |
|  Victoria, Australia          |                                       |
+-----------------------------------------------------------------------+
From: christb@infmuc (Christian Barmala)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Books on OLE?
Date: 11 Nov 92 10:24:09 GMT
Organization: Informix Software, Inc.
X-Newsreader: Tin 1.1 PL3

I appreciate the book "Programming Windows 3.1" by Charles Petzold.
Regretably there was no chapter about OLE and none about Drag&Drop.
Does anyone know a book that covers these features and is written
in a similar style as the one mentioned above?

Regards, Christian Barmala