From: Dan Johnston (dan.johnston++at++nrc.gc.ca)
Date: 01/12/2005 05:59:40
Aurelian FEJER wrote:
> Hi pfAll,
>
> I have OpenGL Performer 3.1.1 for Windows and a PC running Windows XP. For
> development I use MS Visual Studio 6.0 with SP6.
> I have some question to ask:
>
> - it is possible to make a multithreaded application with 2 threads, main
> thread for a similar application as perfly and in second thread a serial
> communication with another PC for exchange data ( speed of vehicles,
> positions of vehicles, etc) ?
I have a library, written on top of Performer, which provides all applications
on UNIX, Linux and MS-Windows systems with keyboard and mouse, and
two UDP socket streams. I typically use one for simulated keyboard and
mouse (remote control from JAVA apps, voice, or whatever) and the
second stream I usually use to send new values of object positions.
It does NOT use a second thread. Instead I modified the input.c file, which
is part of pfUtil. Now all the standard pfu functions for doing input work
just the same on MS-Windows as they do on other pfPlatforms.
Getting this to work on MS-WIndows was/is a bitch. On UNIX you
just compile your own input.c and link to it before the pfUtil library.
On MS-Windows you need to create your own DLL with the new
version of input.c and all the other source code in libpfutil and libpfdu.
Then link your applications against the new DLL and not the SGI
supplied one. But... it works.
I have all this packaged into a Visual Studio Ver. 6 'project' which
is a dependancy for my main library. I could make this part available
to pfDevelopers if there is any interest. Note: I am not a frequent
Visual Studio user, so you can probably improve my project file.
>
> - it is possible to use Visual Studio.NET 2003 instead of Visual Studio 6.0
> and what are the necessary modifications to build a functional perfly with
> Visual.NET?
I think I did this once by simply editing the project file with a text
editor, and changing the version of studio... but I'm not sure and I
don't have access to that system anymore.
Good luck!
Dan Johnston
--
___|__ |
/ | \ ||\ Daniel (Dan) Johnston
/___|___\ || \ Dan.Johnston++at++nrc.gc.ca
_____|____ || \ National Research Council of Canada, London, ON
| | | || \ Integrated Manufacturing Technologies Institute
\___| | | ||____\ Tel: (519) 430-7081 Fax: (519) 430-7140
\_o_\___|____|_|______\_ Inst: http://www.nrc.gc.ca/imti
\ o / These opinions are my own! Not those of NRC.
\________________/ Virtual Reality:
http://www.nrc.ca/imti/vetc/home.html
More Tall Ships - Fewer Computers!
This archive was generated by hypermail 2b29 : Wed Jan 12 2005 - 06:01:51 PST