HDTenEightyP/NetNews huggingface dataset:
From: S.Khebbal@cs.ucl.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Passing Data between Client and Server Applications
Date: 21 Jan 93 15:17:45 GMT


Hello,

I hope that someone can help me, I have recently started to use the sample client
demo and server demo programs in the Microsoft SDK, to help me understand
MS-Windows and OLE. I am experiencing difficultly in passing data between the 
server and the client.

I have devised a server that behaves as a seconds counter and a client that behaves
like a minute counter, along with a manager client application that has the seconds
and minutes applications packaged within it.

What I have done is to create an object in the seconds server that simply counts
upto 59 and starts again. I have allowed the object to be copied and pastelinked 
via the clipboard to the minute client, therefore creating a link between the 
seconds and the minutes.

What I would be grateful for is some advise (perhaps some examples) of how to pass
data (eg the number that represents the seconds) from the seconds server to the
minutes client, so that the minutes client could check for 59 and increment its
minutes counter. Should this be done via the clipboard or via calls to Get the data
? If via the clipboard what is the best way to put and read data of the clipboard ?

I would be very grateful if any OLE guru could help me with these problems - 
my email is below. 

		Thanks In Advance -- Sukhdev Khebbal
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#  MAIL ADDRESS :                      | EMAIL ADDRESS :                    #
#       Sukhdev Khebbal,               |  skhebbal@uk.ac.ucl.cs  (UK sites) #
#       Room 301,                      |  skhebbal@cs.ucl.ac.uk  (US sites) #
#       Computer Science Department,   |------------------------------------# 
#       University College London,     | TELEPHONE NUMBERS :                #
#       Gower Street,                  |  Voice: +44 (0) 71 387 7050 X 3695 #
#       London WC1E 6BT.               |  Fax  : +44 (0) 71 387 1397        #
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: eh@mrih.no (Eilef Hellem)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Creating Metafiles
Date: 28 Jan 93 07:37:17 GMT
Organization: More og Romsdal Ingeniorhogskole
X-Newsreader: TIN [version 1.1 PL8]


	I'm trying to create a metafile from my simple application
	but i have a quite serious problem. When i use the following 
	code :

	brush=CreateSolidBrush(....);
	pen=CreateSolidPen(....);
	hcdMeta=CreateMetaFile("metafile.wmf");
		SetMapMode(hdcMeta,MM_ANISOTROPIC);  	// 1
		SetWindowOrg(hdcMeta,...);		// 2
		SetWindowExt(hdcMeta,...);		// 3
		SelectObject(hdcMeta,brush);		// 4
		SelectObject(hdcMeta,pen);		// 5
		Rectangle(hcdMeta,...);			// 6
			.
			.
		// GDI-calls supported by metafiles
			.
			.
	DeleteMetaFile(CloseMetaFile(hdcMeta));
	DeleteObject(brush);
	DeleteObject(pen);
		.
		.

	...nothing happens in my application when i try to draw it
	nor in the sample 'wmfdcode' that follows Microsoft's SDK 3.1.	
	It seems however that if i remove 1 ( // 1 ), everything works ok,
	though my intension of it all is also removed. I want to scale
	the darn thing, without having to set the mapping mode in
	my application.
	
	Well i looked in microsoft's guidelines to create a metafile
	and it says that you should set a mapping mode in any metafile
	so that they are device independent....
	Howcome my code doesn't work.
	Can anybody help me please!!!

thanx in advance 

Eilef	

 +-----------------+-----------------------+--------------------------+
 |                 | E-Mail:               |                          |
 |  Eilef Hellem   |                       |   /|/ /  /  / / _  _/  / |
 |  MRIH           |  eh@mrih.no           | _/  _/  /__/ /_  _/  _/  |
 |  AAlesund       |                       |                          |
 |  Norway         |     or                |                          |
 |                 |                       |                          |
 |                 |  eilef.hellem@mrih.no | Information at your      |
 |                 |                       | fingertips..,I'm in!     |
 +-----------------+-----------------------+--------------------------+
From: dave@harlqn.co.uk (Dave Emmerson)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
Subject: Re: Drawing Text on its side in BC++?
Date: 26 Jan 93 13:36:50 GMT
Organization: Harlequin Limited, Cambridge, England

Borland C++ 3.1 includes source for an example programme, truetype,
which demonstrates how to rotate text. As I recall, its C++. (But not
at all difficult to modify for ANSI, for anyone else who might be 
interested.)
	Dave.
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: whedon@netcom.com (Bill Whedon)
Subject: Re: Drawing Text on its side in BC++?
Organization: Laughing_Dragon
Date: Wed, 27 Jan 1993 04:48:24 GMT

In article <DAVE.93Jan26133650@wundt.harlqn.co.uk> dave@harlqn.co.uk (Dave Emmerson) writes:
>Borland C++ 3.1 includes source for an example programme, truetype,
>which demonstrates how to rotate text. As I recall, its C++. (But not
>at all difficult to modify for ANSI, for anyone else who might be 
>interested.)
>	Dave.
You really need look no further than the description of the LOGFONT struct
to find out how to rotate text.  You set the lfEscapement and lfOrientation
elements (in tenths of a degree) to the appropriate angles, and create the
font, then TextOut at your desired coordinates... voila!  It's rotated!
Try it and see.  It's dead simple.
Cheers,
Bill Whedon  whedon@netcom.com


-- 
C, ICON dBase Ada!  Paradox?  (B Jovial, Pascal!)




Newsgroups: comp.os.ms-windows.programmer.misc
From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
Subject: Borland C++ vs MSC/C++ 7.0 -- which is better?
Organization: Monash University General Access Unix
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 28 Jan 1993 04:38:20 GMT

I have finally decided that I am going to have to purchase a C/C++
compiler. The question is, which one?

I was originally planning to buy Microsoft C/C++, as I have TPW and thus
all the Borland tools, and could do with the debug kernel (not to
mention the file compressor).

I only have the money to buy an education edition. I have heard that the
Microsoft C/C++ 7.0 education pack is without the SDK, API manuals etc.
Can someone confirm this? What is and isn't there?

Also, what's the exact difference between Borland C++ and Borland C++
with Application Frameworks? Is it;
	a) The former comes sans Class Libraries;
	b) The former has container class libraries, but not Turbo
Vision or ObjectWindows;
 or;	c) The former has the headers and libraries for TV and OWL, but
not the source;

adTHANKSvance;


+---------------------------------------------------------------------------+
|  Andrew Bulhak		|                                           |
|  sloth@yoyo.cc.monash.edu.au	|   This sig is #15 of an infinite series.  |
|  Monash Uni, Clayton,         |   Collect them all!                       |
|  Victoria, Australia          |                                           |
+---------------------------------------------------------------------------+
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: FindWindow
Date: 28 Jan 93 19:29:26 GMT
Organization: PE-Nelson

In article <1993Jan28.140241.29976@crd.ge.com>, deitsch@sol.crd.ge.com (Andy Deitsch) writes:
|> I am trying to get the handle of an MDIChild window from a sibling
|> MDIChild window.  When I use FindWindow I get a NULL returned which
|> seems to mean that the window was not found.  I have tried using
|> NULL for the caption only passing the class name and also the other
|> way around (NULL for class name, passing in the caption).

From the reference manual:

  The FindWindow function retrieves the handle of the window whose
  class name and window name match the specified strings.  The
  function does not search child windows.

So, you ask, how does one find the handle of a sibling child window
then?  The answer is in the GetWindow() function.


----------------------------------------------------------------------------
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
From: martijn@cs.vu.nl (Lemmens ML)
Subject: Bitmap dimensions
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Date: Fri, 22 Jan 1993 12:00:14 GMT


Is it possible to retrieve the dimensions of a bitmap in a windows
resource file. I can use constants because I draw the bitmap myself,
but I want my program to work independent of the drawings. I know how
to load the resource and how to display it.

Martijn


P.S. I'm using Borland Pascal 7.0
From: ehammers@stein.u.washington.edu (Erick Hammersmark)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows/DOS interaction
Date: 26 Jan 1993 06:32:22 GMT
Organization: University of Washington, Seattle
NNTP-Posting-Host: stein.u.washington.edu


Is it possible for a DOS program to communicate with Windows?  Can you do
stuff like get the task list, change the active task, etc. from a custom
made DOS app?  I have a TP6 unit that can detect the presence of various
multi-taskers, and can allow you to do stuff like give up the rest of your
time slice, but what I'd really like to do is have a DESQview-like menu that
I can popup from DOS (for those times when all I want to do is switch between
DOS tasks).  I know that Alt-Tab can do this, but it's kinda annoying, and
Ctrl-Esc kicks you back into graphics mode.  Is this at all possible?

Erick.

Xref: sparky comp.os.ms-windows.programmer.misc:5263 comp.os.ms-windows.programmer.tools:2194 comp.os.ms-windows.programmer.win32:3010 comp.os.ms-windows.setup:2827
From: ereiss@ocf.berkeley.edu (Edward Reiss)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.setup
Subject: Re: *BIG* problems with *2nd* video card
Date: 22 Jan 1993 08:31:02 GMT
Organization: U.C. Berkeley Open Computing Facility
Distribution: world
NNTP-Posting-Host: tornado.berkeley.edu

Thanks to the many people who replied to my original post.  I am currently
investigating all of your suggestions.  If I find a solution to the problem,
I will immediately post it.

Ed
From: spxsjm@thor.cf.ac.uk (Mr S J Morris 92)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Child window with a menu?
Date: 22 Jan 93 10:40:39 GMT
Organization: University of Wales College of Cardiff, Cardiff, Wales, UK
X-Mailer: Cardiff Computing Maths PP Mail Open News Gateway

Is there a way of combining windows style constants so as to give a menu
with a child window? From what I can see by experimenting with the ws_
style constants, the only way of obtaining a menu is to define a style
containing ws_Popup, and yet ws_Popup may not be used with ws_Child.

I could of course put the menu on the parent window, but as what I'm
trying to do is to put a small edit window at the bottom right-hand
corner of a screenful of graphics I don't want to have to separate the
menu too much from the window it pertains to.


-- 
Steve Morris,
Adran Ffiseg a Seryddiaeth, Coleg Prifysgol Cymru Caerdydd.
(Physics and Astronomy Dept., UWC Cardiff)      spxsjm@uk.ac.cf.thor
***************************************************************************
* For God so loved the world that he* Canys felly y carodd Duw y byd fel  *
* gave his only-begotten Son, that  * y rhoddodd efe ei unig-anedig Fab,  *
* whosever believes in him should   * fel na choller pwy bynnag a gredo   *
* not perish but have everlasting   * ynddo Ef, ond caffael ohono fywyd   *
* life.      (John ch.3 v.16)       * tragwyddol.      (Ioan p.3 ad.16)   *
***************************************************************************
From: tnash@cs.tamu.edu (Trey Nash)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Triple click - how to capture?
Date: 25 Jan 1993 08:08:00 GMT
Organization: Computer Science Department, Texas A&M University
NNTP-Posting-Host: sparc71.cs.tamu.edu

Well, there are two ways to capture a double click within Windows.  The best
way is to set the CS_DBLCLKS flag in the wndclass.style variable of the 
WNDCLASS structure.  However, there is another way.  Whenever you receive
a WM_LBUTTONDOWN (or any other button for that matter) message, you can use
the GetMessageTime function to get the time of the action.  Then you can
compare the intervals between the clicks to a required time to see if a double
click was performed.  This is the way that you would want to process the
triple click that you speak of.

However, one word of caution.  Usually, a double click message does something in
addition to the single click message.  For instance, in WordPerfect for windows,
the single click places the caret where you want it.  The double click will
highlite a word.  And I believe that a triple click will highlite the sentence.
You see, the functions sort of build on themselves.  For instance, you would
not want the single click to select the place for the caret and then the
double click to paste.  This is awkward and also places a burden on your
mouse handling routine.  The reason is that before you get that WM_LBUTTONDBLCLK
message, you would also receive a WM_LBUTTONDOWN message from the first click.

Just use GetMessageTime to compare the time interval from the previous click 
and you will be OK.

Later.....

						-Trey
Newsgroups: comp.os.ms-windows.programmer.misc
From: rburrow@alchemy.chem.utoronto.ca (Bob Burrow)
Subject: Re: Drawing Text on its side in BC++?
Followup-To: Font, Rotation
Summary: Do it in CreateFont(Indirect)
Organization: University of Toronto Chemistry Department
Date: Tue, 26 Jan 1993 17:39:08 GMT

> Steven Greco writes:
>
> Posted: Thu, 21 Jan 1993 19:14:2
> Org.  : University of Illinois at Urbana-Champaign
> I need to draw text on its side and was wondering if it is possible to
> do this with Borland C++ and owl.  Right now I am using DrawText to draw
> my text, but it just produces normal text, not text on its side.  Is this
> possible?  Is there any way to rotate a bitmap possibly?
> Thanks in advance.
> --
> ^ Steven Greco ^           "I've got a real indication of a laugh coming
> on..."
> greco@cs.uiuc.edu                  -Thought Gang
> s-greco@uiuc.edu

You have to create the font with the rotation attribute -- set nOrientation
and nEscapement in CreateFont or CreateFontIndirect.  nOrientation is the
orientation of the letters and nEscapement is the angle the text is
written out as.  Both these are ints in tenths of a degree.  There's an
example program wth bcc, truetype.c, found under examples/win31/truetype
if you want to see how it's done.  
As an aside -- has anyone tried printing rotated fonts?  I found that the
hpIII & hpIIp drivers produce different (& both incorrect) outputs! 

Hope this helps...
Bob
--
 Bob Burrow                           Department of Chemistry          
 rburrow@alchemy.chem.utoronto.ca     University of Toronto      
-- 
 Bob Burrow                           Department of Chemistry          
 rburrow@alchemy.chem.utoronto.ca     University of Toronto      
Newsgroups: comp.os.ms-windows.programmer.misc
From: oberto@genes.icgeb.trieste.it (Jacques Oberto)
Subject: Dragging an object in TPW : how?
Organization: ICGEB
Date: Mon, 25 Jan 1993 13:29:32 GMT

Dear All,

The question is: how to implement graphical object selection and
dragging (with the mouse) in TPW 1.5.  I went through every
Borland manual w/o success.  There must be some API functions to
do that but which ones.  Unfortunately the zillion API calls are 
only briefly described in the API Reference, w/o examples....
Has anybody solved this and how?
I will post a summary of replies if there is a general interest.

Any help greatly appreciated.
Thanks,

Jacques

-- 
Jacques Oberto  <oberto@genes.icgeb.trieste.it>
From: donh@shakala.com (Don Hackler)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: What's in those .DLLs?
Date: Tue, 26 Jan 93 17:20:10 PST
Organization: Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289

bright@sctc.com (David A. Bright) writes:

> I'd like to get a description of the entry points and calling
> sequences for all the "standard" Windows 3.1 .DLLs (e.g. commdlg.dll).
> Is there such a thing?  I don't suppose there is any way to examine a
> .DLL and get this information.  Of course, it wouldn't tell you WHY to
> call the entry point, but if you could at least get the entry point
> names and calling sequences you would have a fighting chance of
> figuring out how to use the buggers.
> 
Undocumented Windows from Andrew Schulman includes utilities
to do exactly this...

------------------------------------------------------------------
Don Hackler  - donh@shakala.com 
Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Does anybody know this bug? 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Sat, 23 Jan 1993 17:33:11 +0000

In article <1993Jan23.150923.12794@ousrvr.oulu.fi> artoinas@phoenix.oulu.fi 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)
>
>

I suggest you try and run your application under Windows 3.1, if at all
possible.  That way the UAE will be replaced by a General Protection Fault,
which has the advantage of showing you *where* your program crashed.  Armed
with that address and a linker map you can then find out which function
the problem is occurring in, and track it down from there.

Best wishes,

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
|                                          | CIX: cmarriott              |
| Save the whales.  Collect the whole set. | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: pshuang@zurich.ai.mit.edu (Ping Huang)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: X-Windows -> Windows: Is a Window Manager Possible?
Date: 23 Jan 93 13:11:29
Organization: M.I.T. Artificial Intelligence Lab.
NNTP-Posting-Host: freeside.ai.mit.edu
In-reply-to: gtd543a@sol.crt.columbia.edu's message of Fri, 22 Jan 1993 08:59:19 GMT

In article <1993Jan22.085919.23082@sol.ctr.columbia.edu> gtd543a@sol.crt.columbia.edu (death) writes:

 > 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.????

Windows 3.x isn't really set up to make writing window managers (ala
UNIX and X Windows) easily possible. If you were to write replacements
for USER.EXE and GDI.EXE (these files are really DLL's which make up
most of Windows's user interface code), you can control the way the
interface looks. (And you wouldn't even have to write all the code to
provide the necessary functionality -- just replace the functions you
want to change.) However, this would require you to reverse-engineer a
lot of Microsoft code, since there are no neat documented hooks that get
called to draw the borders, etc. If you just want to intercept mouse and
keystrokes to provide additional functionality, I think there are
documented ways of capturing all input before it gets to applications.

--
| Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
| "One Thing to name them all, One Thing to define them,
|  One Thing to place them in environments and bind them..."
From: brehonyt@ul.ie
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: 32 bit ANSI C compilers for Win 3.x ????
Date: 25 Jan 93 16:54:07 GMT
Organization: University of Limerick, Ireland




I'm looking for a 32 bit ANSI-C compatible compiler for DOS/Win 3.x. I 
know there are a few on the market. What are they and which are the best
(IYHO) ?. Also which have facilities analagous to the Quickwin facility 
supported by Microsoft C/C++ 7.0. 

Basically what I want to do is to create a 32 bit Win 3.1 program from 
an character mode, 32 bit ANSI C system.

Any comments, advice , etc would be appreciated. Thanks.

Tom Brehony.
Email : brehonyt@ul.ie 
Newsgroups: comp.os.ms-windows.programmer.misc
From: DRPORTER@SUVM.SYR.EDU (Brad Porter)
Subject: Re: e: Gateway service problem
Organization: Syracuse University
Date: Fri, 22 Jan 93 23:41:24 EST

For anyone reading this area recently:  would you agree there needs to be an
entire area devoted to Gateway complaints?   :->
                               -Brad Porter
PS - I'm not really flaming, but I am surprised to see this discussion going on
here.
 
DRPORTER@SUVM
Newsgroups: comp.os.ms-windows.programmer.misc