home *** CD-ROM | disk | FTP | other *** search
- From: Kurt.Westerfeld@f347.n109.z1.fidonet.org (Kurt Westerfeld)
- Sender: Uucp@blkcat.UUCP
- Path: sparky!uunet!blkcat!Uucp
- Newsgroups: comp.os.os2.networking
- Subject: Need advice about portin
- Message-ID: <721296021.AA00000@blkcat.UUCP>
- Date: Sun, 08 Nov 1992 22:59:08 -0500
- Lines: 47
-
- Welcome to OS/2 Programming....
-
- Av> - Are there tools to help me?
- Av> - Do I have to port or should it run as is with an extra set of dll's?
-
- Yes, you can do a complete port, or cheat by using Mirrors from
- Micrographx. This will allow your app to compile via the Windows C 6.0
- code you use today, and then take advantage of the PM interface. Its an
- easy way to go, and you should definitely consider it. However, there's
- very valid advantages to doing a complete port, and I'll outline them
- below.
-
- Av> - What about the Named Pipe connection?
-
- OS/2 originated the named pipe API set, so you'll have no trouble at all
- (actually, less....the pipes can actually originate on the OS/2
- box....nice for testing w/o a LAN!)
-
- All in all, it sounds like you would be a great candidate for the new
- OS/2 book: "Client/Server Programming With OS/2 2.0", by Robert Orfali
- and Dan Harkey. This book should be available in many bookstores by
- now.
-
- Av> - Is the DDE mechanism the same (where are the differences)?
-
- I have no idea! Another book: Charles Petzold's (dated) "Programming
- The OS/2 Presentation Manager" should help out.
-
- But really, why do any DDE at all! Merge your two applications into one
- with a thread that monitors the pipe, and a thread that draws the client
- area of the window. Both threads can access the HWND data structures
- in Presentation Manager, and you'll be able to do a 'WinPostMsg' from
- the thread to the main window with data elements, similar to Windows.
- This should make for a much more maintainable and robust application.
-
- If the word thread sounds complicated, it isn't. All you do is write
- the thread function just like any other, and then supply the name as a
- call to the function '_beginthread'. I can't get much easier in your
- case. Your performance will be much better, too, because of less memory
- overhead, etc. and no DDE!
-
- If you would like help, I'd be glad to offer any I can.
-
- Kurt
-
- * KWQ/2 1.0C *
-
-