HDTenEightyP/NetNews huggingface dataset:
From: hestermeyer@ida.ing.tu-bs.de (Andreas Hestermeyer)
Subject: re: Memory I/O operation in windows. How?
Organization: Inst. f. DV-Anlagen, TU Braunschweig, Germany
Date: Fri, 22 Jan 1993 18:10:56 GMT

In article <C132Cs.Cpp@newsserver.technet.sg> avircmei@solomon.technet.sg (Asia Matsushita) writes:
>
>Hello programmers,
>
>	I have very little experience in programming for MsWIndows 3.x so bare
>with me if I have asked some stupid questions.
>
>	Here is a bit of backgroud of my program. I have a hardware prototype board
>with a 2k SRAM onboard. THe address of the SRAM is set to D0000 (linear address) or
>D000:0000. I need to write a program in windows to read some data from a file using 
>the _open() function into a buffer and the copy the contents from that buffer into
>the SRAM at linear address D0000. Could I just use hmemcpy() function? Or do I need to
>convert D0000 into Selector:offset type of address? If so, how could I do that? I
>read somewhere that using the DPMI software interrupt function 31 I could do that.
>Is that true? 
>
>	Any inputs well be appreciated. Thanks for listening at my problems.
>
>	One more think, what is INT 4Bh? Could not find any descriptions in all of
>my reference.
>
>
>slim...
>--
>Lim Sau-Tsien
>
>Address: slim@ams.mei.co.jp
>	 avircams@solomon.technet.sg
>

Some time ago, I used a function which installs a new segment descriptor for
a given physical segment address. Unfortunately, I forgot the funtion's name but
its in the standards set of the API functions. You might easyly find it in 
the help file.
Regards,
  Andreas H.
Xref: sparky comp.os.ms-windows.programmer.misc:5411 comp.os.msdos.programmer:12492
From: killeen@spcvxb.spc.edu (Jeff Killeen)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer
Subject: Re: DECUS Multivendor Nondisclosure Developers Conference
Date: 26 Jan 93 17:16:13 GMT
Organization: SPC Community Access System



                    Housing Deadline Extended
           Multivendor Computing Developers Conference

Due to a recent discovery of potential problems in the mailing of 
the Multivendor Computing Developers Conference, we have extended 
the housing registration deadline to February 1.  Please contact 
the Sheraton Hotel directly at (504) 525-2500 and refer to the 
Multivendor Computing Developers Conference to ensure the special 
room rate of $119.

If you have any questions regarding this program, please contact 
Jane Finneault (508) 841-2864.

or email to Finneault@decus.org
-- 
DECUS -User Driven...
       Future focused on the art of delivering multiplatform computer technology

Jeff Killeen - DECUS U.S. Chapter NLC Chair | Email:killeen@eisner.decus.org
The NLC is the national council for DECUS's Local User Groups - come join us!
Newsgroups: comp.os.ms-windows.programmer.misc
From: wangc@cpsc.UCalgary.ca (Carol Wang)
Subject: VB: masked edit fields
Organization: The University of Calgary
Distribution: comp
Date: Mon, 25 Jan 1993 05:59:32 GMT

a co-worker has been having inordinate (IMHO) problems trying to use
masked edit fields.  irregardless of the mask used, the results are
the same. from what i gather from the documentation you should use the
.Text property to manipulate or reference information in the field.
using .Text to test the information in the field is not a problem, but
trying to input into it invariably results in a "invalid property" or
"variable not valid" type error.  so, further perusing the
documentation turned up a .SelText property.  input with this was
possible, but only if it was a direct string in quotes (eg "0") type
assignment.  any assignment with, say, a string _varible_ was
completely ineffective.  

i advised that since the project is under time pressure, personally i
would just use regular text fields and verify the input after the user
was done, and this has happened, but has anyone else experienced such
problems with masked edit fields?

carol
From: richard.fink@ggcs.org (Richard Fink) 
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help! w/ caption<-> w/o c
Date: 24 Jan 93 21:25:00 GMT
Distribution: world
Organization: Golden Gate Computer Society BBS - Marin, CA - 415-927-1216
Reply-To: richard.fink@ggcs.org (Richard Fink) 

EPY>Newsgroups: comp.os.ms-windows.programmer.misc
EPY>From: h9112654@hkuxb.hku.hk (Edward P.C. Yuen)
EPY>Subject: Help! w/ caption<-> w/o caption
EPY>Organization: The University of Hong Kong
EPY>Date: Sun, 24 Jan 1993 05:44:18 GMT

EPY>--

EPY>Best wishes,
EPY>        Edward Yuen Ping Ching.


Best wishes to you Edward.
            May you have a very good year.
                                     Richard L. Fink
                                     (San Francisco Bay Area)
                              
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.tools
From: whedon@netcom.com (Bill Whedon)
Subject: Re: Microsoft Visual C++ beta
Organization: Laughing_Dragon
Distribution: na
Date: Thu, 21 Jan 1993 08:17:48 GMT

In article <1993Jan20.191235.6806@samba.oit.unc.edu> David.Gunter@launchpad.unc.edu (David Gunter) writes:
>I have heard about a new Microsoft beta program for a product called
>Visual C++.  If anyone has any info about either the beta program for
>this product, or the product itself, please let me know.
>
I hate when people do this, but, this is just _too_ exciting!
ME TOO, PLEASE!
Thanks,
-- 
C, ICON dBase Ada!  Paradox?  (B Jovial, Pascal!)
From: fleischmann@hrz1.hrz.th-darmstadt.de (Dirk Fleischmann)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Starting applications from self written Windows programms
Date: Thu, 21 Jan 1993 07:09:27 GMT
Organization: Hochschulrechenzentrum, TH Darmstadt
NNTP-Posting-Host: kernpc3.hrz.th-darmstadt.de

Hello,

I want to start Windows and DOS programms (e.g. Excel or PKZip) from self 
written Borland C++ (version 3.1) programms. Unfortunately the "orginal" 
functions spawn and exec are only working under DOS, not with Windows?

Any suggestions for solving this problem?

Thanks in advance
Dirk Fleischmann, University Computing Center
	
**********************************************************************
*  Dirk Fleischmann                                                  *
*  Hochschulrechenzentrum, Technische Hochschule Darmstadt           *
*  University Computing Center, Technical University Darmstadt       *
*                                                                    *
*  Petersenstrasse 30                                        __o     *
*  W-6100 Darmstadt                                        _`\<,_    *
*  Germany                                                (_)/ (_)   *
*  -Radfahrer haben nichts zu verlieren als ihre Ketten- ~~~~~~~~~~~ *
*      - Bikers can't loose anything but the chain -                 *
*  E-Mail (Internet): fleischmann@hrz.th-darmstadt.de                *
**********************************************************************
From: udk@awd.cdc.com (Uday D. Kabe)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: HELP! "Split Box"
Date: 28 Jan 93 13:58:13 GMT
Reply-To: udk@awd.cdc.com
Organization: Memex, 8757 Hawthorne Dr., Eden Prairie, MN 55347

I am trying to create a "split box" (e.g, as in File Mgr's MDI
windows).  Any HELP with techniques or sample code would be very
much appreciated.  Help via e-mail would be preferable.

Thanx in advance.
-- 
Uday D. Kabe

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
INET: udk@awd.cdc.com
MAIL: 8757 Hawthorne Dr., Eden Prairie, MN 55347-1715
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Newsgroups: comp.os.ms-windows.programmer.misc
From: troy@cbme.unsw.EDU.AU (Troy Rollo)
Subject: Re: Another bug in Borland C++
Organization: University of New South Wales
Date: Thu, 21 Jan 1993 23:15:07 GMT

From article <1993Jan21.002358.25085@ccu1.aukuni.ac.nz>, by tantrum@ccu1.aukuni.ac.nz (Michael Tantrum):
>    Here's a trick for young fools...  I've found a bug in the optimizer.  I
>    hope this isn't old news.
 .
>    I have all the optimizations turned on, including global common
>    subexpression elimination.  The code is fine until the last two
>    statements.  Then, the compiler generates:
> 
>      ...   /* code to compute array address */
>    mov ax,[bp-0c]    /* i.e. the value of i */
>    inc ax            /* now ax = i + 1 */
>    mov es:[bx],ax    /* put the result into the array */
> 
>    cmp ax,limit
>    jl startOfLoop
> 
>    ... So the result is, the variable is never stored back!  i is stuck at
>    zero, never incremented.  Bummer!  Looks like the live range analysis
>    goofed.

I've seen this before, and this is (partly) while one of the very few rules
I have for coding around here applies to what optimisations are to be used.
The permitted ones are limited to the most basic optimisations.

In the end, if the code is well written, the optimisations will only help
by about 5%. Much better optimisation can be done by improving the code.
At a 5% speed improvement, the risk of optimiser induced bugs creeping
in (including some subtle ones that might escape QA) is far too high.
--
_______________________________________________________________________________
troy@cbme.unsw.EDU.AU	      Overworked, overcommited and always multitasking.
Opinions expressed are not those of the CBME or UNSW, but are my opinions only.
You are free to adopt them.   I suggest you adopt them.    You will adopt them!
From: mike.philben@uttsbbs.uucp (Mike Philben) 
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: BC++3.0/OWL DDEACK STRUCT
Date: 26 Jan 93 09:56:00 GMT
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591
Reply-To: mike.philben@uttsbbs.uucp (Mike Philben) 

-> Is the DDEACK structure which comes pointed to in LOWORD of lParam
-> when WM_DDE_ACK is in response to a WM_DDE_EXECUTE message, valid?

Peter,  it's been a while since I looked a this but I believe that the
DDEACK structure is a one WORD value that is contained in Msg.LP.lo --
                               ^^^^^
In other words, Msg.LP.Lo is not a pointer to a DDEACK structure, it is
the DDEACK structure.  It takes very careful reading of the docs to
make this distinction.

      Hoping I'm on the right track --
        Mike Philben
                                                                                                
----
+------------------------------------------------------------------------+
| The Transfer Station BBS (510) 837-4610 & 837-5591 (V.32bis both lines)|
| Danville, California, USA. 400+ MB Files & FREE public Internet Access |
+------------------------------------------------------------------------+
Newsgroups: comp.os.ms-windows.programmer.misc
From: hagger@rsl.geogr.unizh.ch (Joachim Hagger)
Subject: SUMMARY: Width of print border
Organization: Remote Sensing Laboratories, University of Zurich
Date: Mon, 25 Jan 1993 13:52:14 GMT


The original question was:
> How can I determine the non-printing border offset added to my documents?

The only answer I got was the right solution:
twbrown@PE-Nelson.COM (Tom W. Brown) answered:

The following function will give you the pixel offset from the top left
corner of the page for the first printable pixel (i.e. the pixel based
size of the left and top border):

   POINT ptOffset;
   Escape(hdc, GETPRINTINGOFFSET, NULL, NULL, &ptOffset);

Now, the next call(s) will give you the printable area ot the page in pixels:

   POINT ptPrintable;
   ptPrintable.x = GetDeviceCaps(hdc, HORZRES);
   ptPrintable.y = GetDeviceCaps(hdc, VERTRES);

And finally, this function gives you the total, physical page size (still
in pixels);

   POINT ptPhysical;
   Escape(hdc, GETPHYSICALPAGESIZE, NULL, NULL, &ptPhysical);

So, ptOffset gives you the left and top border directly. The right and
bottom borders can be found by simply subtracting the corresponding left
and top border along with the printable width and height from the
physical width and height of the page.

All unit are in pixels -- you can convert to whatever units you need.
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Getting file association info
Keywords: windows associate application document
Organization: Energy, Mines, and Resources, Ottawa
Distribution: usa
Date: Mon, 25 Jan 1993 23:45:11 GMT

In article <51656@shamash.cdc.com> paul@svl.cdc.com (Paul Kohlmiller) writes:
>In windows you can associate a file extension (eg. .doc) with an application
>(eg. MS Word). I need to get this association information from within my
>app. I can't find it in Petzold or the Windows API. Can someone point me in
>the right direction? Thanks.
	You could use GetProfileString() to read them from the WIN.INI
	file.  The section is [extensions].

John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: jude@milton.u.washington.edu (Jude Stoller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: MS Windows GUI standards.
Date: 21 Jan 1993 17:38:42 GMT
Organization: University of Washington, Seattle
Distribution: world
NNTP-Posting-Host: milton.u.washington.edu

Can anyone point me to a book or file which discusses MS Windows GUI
standards?

Thanks in advance,
Jude
From: mssshb@sunlab1.bath.ac.uk (S H Bowman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Does anybody know this bug?
Date: 26 Jan 93 12:52:17 GMT
Organization: University of Bath, UK

artoinas@phoenix.oulu.fi (Arto Oinas) writes:


>I am programming an application with Turbo C++ for Windows 3.0. I use Windows
>version 3.0. So far, I've detected all bugs and fixed them. Now one lurking
>bug is driving me mad, I have no idea about it's causes. 

>Well, I know that this is too general, but here is what the bug does:
>Sometimes after running the application Windows gives me an Unrecoverable
>Application error when I toggle the mouse on text editing window (in Turbo
>C++) and start typing something. However (of course) this doesn't happen al-
>ways. So if you have seen this problem and solved it, please answer?

>Arto Oinas - first year Computer Science student from Finland
>(Too general really I bet)

This is a pretty general problem so try this general answer:

Check your hdc and hwnd parameters in functions like EndPaint.

I have mixed these up on numerous occasions and it has given exactly
the type of fault you describe, sometimes taking hours to sort out!
I can't understand why the STRICT compilation doesn't spot this.

Simon
From: jcl@bdrc.bd.com (John C. Lusth)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: window dump in windows
Date: 27 Jan 93 22:07:21 GMT

Hey all!

Can someone tell me what I'm doing wrong here? I'm trying to print the
image/bitmap of my main window.

Here is my (undoubtably stupid) method...

    /* mainDC is obtained with GetDC()    */
    /* printDC is obtained via PrintDlg() */

    /* error checking deleted for clarity */

    Escape(printDC, STARTDOC, 6, "My App", NULL);
    BitBlt(printDC, 0, 0, 1000, 1000, mainDC, 0, 0, SRCCOPY);
    Escape(printDC, NEWFRAME, 0, NULL, NULL);
    Escape(printDC, ENDDOC, 0, NULL, NULL);

When my code executes, all I get is a page ejected from the printer (which
is a Canon BJ10E). What am I leaving out in my quick and dirty method?

Thanks,

john
-- 
John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA  jcl@bdrc.bd.com
From: alanm@askinc.ASK.COM (Alan Merrell)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DDE exchange formats
Keywords: dde excel
Date: 25 Jan 93 20:21:15 GMT
Organization: ASK Computer Systems, Inc.

I'm trying to pass data in and out of Excel using DDE.  The Borland OWL package
made it easy to connect -- but... the DdeGetData call moves data into my
buffer, but I can't figure out what the data means.  The sample program
supplied by Borland just passes text.  The windows.h file defines several
"clipboard format" types - but it doesn't define the type Excel uses.  My
Excel documentation only describes the Excel commands - no clue as to the
data format.

Any help in how to track down the "oxcboa" clipboard format is appreciated.
Thanks - arm
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Placing text in a stretched bitmat
Date: 28 Jan 93 00:34:00 GMT
Organization: PE-Nelson

In article <1k590h$3d3@agate.berkeley.edu>, ereiss@ocf.berkeley.edu (Edward Reiss) writes:
|> This question is for a friend.  He has been unable to place text
|> into a stretched bitmat (after it has been stretched).  To be more
|> specific, he is using the function "stretchblt()" to stretch a 
|> bitmap.  He then wants to use "textout()" on the destination device
|> context.  He *can* place the text into the bitmap before it is
|> stretched, but then the stretching distorts the text. Any suggestions?

There must be some other problem because there is nothing magical about
StretchBlt().  Like PatBlt(), BitBlt(), LineTo(), and all other GDI
functions it simply takes some immediate action upon a device context.
There is no reason why StretchBlt() would alter a DC to the point where
subsequent graphics output would not work.

If your friend can supply an appropriate code fragment we might be able
to see the problem.


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------


Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32
From: paulb@harlqn.co.uk (Paul Butcher)
Subject: ctl3d, NT: Question for Microsoft
Followup-To: comp.os.ms-windows.programmer.misc
Organization: Harlequin Ltd, Cambridge, UK
Date: Thu, 21 Jan 1993 10:04:10 GMT


I've just got hold of ctl3d, and like it lots.  It does everything
that you might want of it, without being bloated a la Borland.
Congrats MS!

Unfortunately, there are two problems with it that are killers from my
point of view;

(a) There's no 32-bit version for NT.

(b) 16-bit apps which use ctl3d running under NT (October release)
    don't get the 3d effect :-( Presumably this is because of the
    version checking.

Any chance of a fix to the above two?

Thanks,

PaulB->msgCount++
Newsgroups: comp.os.ms-windows.programmer.misc
From: pcm@scammell.ecos.tne.oz.au (Peter Murray)
Subject: HELP: String in Edit Cntl
Organization: Telecom
Date: Wed, 27 Jan 1993 23:06:14 GMT




I am trying to display a string of text in a multiline edit
control within a dialog box.  The string contains standard
C formatting characters such as '\t' and '\n'.

The formatting works OK in MessageBoxs but will not
display in the edit control.  All that is displayed is
one long line with a few square bars where the formatting
characters are.

Any tips would be very much appreciated. Thanks.

+-----------------------------------------------------------------------+
| Peter C. Murray		    | pcm@scammell.ecos.tne.oz.au	|	
| Telecom Mobiles 		    |					|
| Information Technology Development|  					|
| Information Technology Group	    | 					|
| Telecom Australia		    |					|
+-----------------------------------------------------------------------+
Newsgroups: comp.os.ms-windows.programmer.misc
From: martijn@cs.vu.nl (Lemmens ML)
Subject: Changing from "no caption" to "caption" style
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Date: Sat, 23 Jan 1993 20:13:44 GMT


I'm using BP 7.0 for Windows to create a childwindow without a
caption. With this I mean:

    Attr.Style = ws_ChildWindow and not(ws_Caption);

When some event takes place, I want do add a caption to the window and
display a title using SetCapture(...).

Is this possible? without destroing the window and creating a new one?

Martijn

Newsgroups: comp.os.ms-windows.programmer.misc
From: artoinas@phoenix.oulu.fi (Arto Oinas)
Subject: Does anybody know this bug?
Organization: University of Oulu, Finland
X-Newsreader: TIN [version 1.1 PL6]
Date: Sat, 23 Jan 1993 15:09:23 GMT


I am programming an application with Turbo C++ for Windows 3.0. I use Windows
version 3.0. So far, I've detected all bugs and fixed them. Now one lurking
bug is driving me mad, I have no idea about it's causes. 

Well, I know that this is too general, but here is what the bug does:
Sometimes after running the application Windows gives me an Unrecoverable
Application error when I toggle the mouse on text editing window (in Turbo
C++) and start typing something. However (of course) this doesn't happen al-
ways. So if you have seen this problem and solved it, please answer?

Arto Oinas - first year Computer Science student from Finland
(Too general really I bet)

Newsgroups: comp.os.ms-windows.programmer.misc
From: gtd543a@sol.crt.columbia.edu (death)
Subject: X-Windows -> Windows: Is a Window Manager Possible?
Keywords: xwindows, x-windows, windows, ms-windows, win3, win31
Organization: Purgatory
Date: Fri, 22 Jan 1993 08:59:19 GMT
X-Newsreader: TIN [version 1.1 PL8]
Summary: want to know if a x-windows-like wm is possible under win31
X-Posted-From: sundial.gatech.edu
NNTP-Posting-Host: sol.ctr.columbia.edu

It is possible to set up some sort of program like an X-Windows
window manager, so that you can define the way all other applications
in your environment run (colors, border styles, etc.), be able to do
things like bring up menus for each mouse button, etc.????
--
                       Death: the high price of living
========================================================================
There's a fear I may die in a chemical weapons attack:  Iraqnophobia
Newsgroups: comp.os.ms-windows.programmer.misc
From: johnt@unipalm.co.uk (John Taylor)
Subject: Re: Far Pointer Problem in DLLs
Organization: Unipalm Ltd., 216 Cambridge Science Park, Cambridge CB4 4WA, UK
Date: Tue, 26 Jan 1993 11:04:58 GMT

Andrew Joseph Kompanek <ak10+@andrew.cmu.edu> writes:

....

>Now, in another part of my code I have a structure which maintains info. about
>state of several open files (opened with fopen()), including (FILE *)
>file handles.  I'm getting the same UAE and it looks like commenting
>out the references to references to the pointer fixes it.

>All of this code is my own source I'm porting from Unix.  Is there a way
>for it to automatically handle these file pointers properly even though
>it doesn't look like there are far versions of fopen, etc.??  It seems
>to me, the compiler should be smart enough to swap in right data segment
>and convert the pointer to a near pointer... assuming the function doesn't
>need "near" data from more than one segment.
>any advice out there on a transparent portable way to fix the problem with
>the file pointers?  Use less "data" is unfortunately not a good answer...

>Any help would be much appreciated.

I've not got normal file handling to work in a DLL at all.
You need to use the Windows File handling routines, or _lopen,_lclose etc ...
depending on what best fits what you are trying to do.

As far as the portablitiy issues - give up.
DLL and portable are not two things you normally say in the same sentance.
There are a lot of standard functions that just don't work in DLL's, for no
real reason that I can see, except to make things difficult.

JohnT
johnt@unipalm.co.uk



>Thanks,

>Drew

>Andrwe Kompanek
>Dept. of Human Genetics
>University of Pittsburgh
Newsgroups: comp.os.ms-windows.programmer.misc