Transfering an icon over TCP/IP ?

  • Thread starter Thread starter Zuka
  • Start date Start date
Z

Zuka

I got an icon loaded in my C++ program, and I need to send it to another
program over the network, to display it on that other computer.
Does anyone know of a simple way of doing this ?

I know all I need about sockets and how to send and receive data, I need a
tip on how to encode and decode the icon data in a simple way
 
Would you know the answer if it was game related ?

I need to transfer player's own images, which I cannot install with my game.
That's why it is a problem.
 
Email it to the person running the program it needs to be entered in, but
first make sure it is the size he/she can accept via email and make sure it
is expected before sending. You can't just send a file into someone else's
program. That's a virus. 8-)
 
Please don't mis-inform.

"You can't just send a file into someone else's program. That's a virus"

That's NOT the definition of a virus, Trojan nor worm.

Thanx
Dave



| Email it to the person running the program it needs to be entered in, but
| first make sure it is the size he/she can accept via email and make sure it
| is expected before sending. You can't just send a file into someone else's
| program. That's a virus. 8-)
| --
| Chris H.
| Microsoft Windows MVP
| Associate Expert
| Expert Zone -
|
| | > Would you know the answer if it was game related ?
| >
| > I need to transfer player's own images, which I cannot install with my
| game.
| > That's why it is a problem.
| >
| >
| > | > > How is this game related? If your going to crosspost keep it to relevant
| > groups.
| > >
| > > --
| > >
| > >
| > > ----------------------------------------------------------------
| > | > > > I got an icon loaded in my C++ program, and I need to send it to
| another
| > > > program over the network, to display it on that other computer.
| > > > Does anyone know of a simple way of doing this ?
| > > >
| > > > I know all I need about sockets and how to send and receive data, I
| need
| > a
| > > > tip on how to encode and decode the icon data in a simple way
| > > >
| > > > --
| > > > best regards
| > > > Zuka
| > > >
| > > >
| > > >
| > > >
| > >
| > >
| >
| >
|
|
 
I think you'll find your ISP, TELENOR-INTERNET, has specific rules about Off Topic UseNet
posts.

Dave


| Would you know the answer if it was game related ?
|
| I need to transfer player's own images, which I cannot install with my game.
| That's why it is a problem.
|
 
Use a DLL would just be a case of calling it with whatever transfer method
you are using !
 
Thanks for jumping in and helping. Assistance is always appreciated, since
there are so many people just lurking about waiting to pounce on people.
 
No problem Chris. Be glad to help you out in any way I can concerning computer viruses.

You'll find me in;

alt.comp.virus
alt.comp.anti-virus
microsoft.public.security.virus
microsoft.public.scripting.virus.discussion

Dave :-)


| Thanks for jumping in and helping. Assistance is always appreciated, since
| there are so many people just lurking about waiting to pounce on people.
| --
| Chris H.
| Microsoft Windows MVP
| Associate Expert
| Expert Zone -
 
Thanx Chris,

but I cannot involve user on this.
My program is a game running on both machines one of which has an icon (or
an image) and the other one has not. I need to transfer this icon, to
another computer to show it on the screen since it is like an "avatar" for
the player.


and please, everybody, if you can't see any relation of my post to games, I
can. So, please ignore this post
 
I'd suggest you did through the Help information for the game, or locate the
support information on the game web site. If a different icon is supposed
to be available for a different player, it would come within the game
mechanism, not something "you" would send separately.
 
Perhaps posting to microsoft.public.win32.programmer.directx.misc or another
like it would have been a place to ask. A lot of programmers monitor the
various groups there and can give you more details. =) If you are the one
programming the game though, just create a function to handle sending the
data to the client on the server side. On the client side have the client
write the data it receives from the server to a file. You can store it
either using your own method (something like .pak files in Quake) or just
store it in whatever format it was originally on the server.

Joshua Smith
DirectInput Test Lab
Microsoft
 
Back
Top