home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5231 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.2 KB

  1. Path: sparky!uunet!mcsun!uknet!keele!nott-cs!ucl-cs!news
  2. From: S.Khebbal@cs.ucl.ac.uk
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Passing Data between Client and Server Applications
  5. Message-ID: <3398@ucl-cs.uucp>
  6. Date: 21 Jan 93 15:17:45 GMT
  7. Sender: news@cs.ucl.ac.uk
  8. Lines: 36
  9.  
  10.  
  11. Hello,
  12.  
  13. I hope that someone can help me, I have recently started to use the sample client
  14. demo and server demo programs in the Microsoft SDK, to help me understand
  15. MS-Windows and OLE. I am experiencing difficultly in passing data between the 
  16. server and the client.
  17.  
  18. I have devised a server that behaves as a seconds counter and a client that behaves
  19. like a minute counter, along with a manager client application that has the seconds
  20. and minutes applications packaged within it.
  21.  
  22. What I have done is to create an object in the seconds server that simply counts
  23. upto 59 and starts again. I have allowed the object to be copied and pastelinked 
  24. via the clipboard to the minute client, therefore creating a link between the 
  25. seconds and the minutes.
  26.  
  27. What I would be grateful for is some advise (perhaps some examples) of how to pass
  28. data (eg the number that represents the seconds) from the seconds server to the
  29. minutes client, so that the minutes client could check for 59 and increment its
  30. minutes counter. Should this be done via the clipboard or via calls to Get the data
  31. ? If via the clipboard what is the best way to put and read data of the clipboard ?
  32.  
  33. I would be very grateful if any OLE guru could help me with these problems - 
  34. my email is below. 
  35.  
  36.         Thanks In Advance -- Sukhdev Khebbal
  37. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  38. #  MAIL ADDRESS :                      | EMAIL ADDRESS :                    #
  39. #       Sukhdev Khebbal,               |  skhebbal@uk.ac.ucl.cs  (UK sites) #
  40. #       Room 301,                      |  skhebbal@cs.ucl.ac.uk  (US sites) #
  41. #       Computer Science Department,   |------------------------------------# 
  42. #       University College London,     | TELEPHONE NUMBERS :                #
  43. #       Gower Street,                  |  Voice: +44 (0) 71 387 7050 X 3695 #
  44. #       London WC1E 6BT.               |  Fax  : +44 (0) 71 387 1397        #
  45. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  46.