   Question about Windows and Macs
  Alright, I''ve been programming for a while using VC++ 6. I have a friend who uses Mac OSX. What I''m trying to do is send him my sample games and programs but I can''t send him an exe since exe is Windows only. How do I get a .exe to be the .exe equivelant on the Mac?   There''s no town drunk here, we all take turns.Velocity Gaming Force
  You can''t. You need to port the entire source code across.Most games under win32 that you write will be intricately connected to Windows itself. If you used DirectX, for example, DirectX is only available on Windows.There are equilvalents for many things on MacOS. Rather than calling CreateWindow() to get a HWND, you''d use ObjectiveC to create an NSWindow. That''s a whole new language right there. Substitute DirectX Graphics for OpenGL and you stand a chance.You need to compile/build your app for MacOSX, and your average Win32 program will break horribly when you do that.If you used something like SDL, though, you stand a chance. Superpig- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.Enginuity1 | Enginuity2 | Enginuity3;  Firstly, your programs and games must not rely on any compiler, OS or hardware dependant code (like DirectX, Win32 SDK, etc.), then you''ll either have to send him the source, compile it on a mac of your own, or get a cross-compiler which allows you to compile your programs to the Mac-equivalent. I doubt the existence of a PC-Mac cross-compiler, though.   "For crying out loud, she has fishes coming out of her head on either side. How can you find this hot?!""If anyone sees a suspicious, camouflaged factory being carried across the desert, they should report it immediately." ;  Wow, so I wouldn''t even be able to send him the classic "Hello, world!" program made from C++ if I wanted to?   There''s no town drunk here, we all take turns.Velocity Gaming Force;  Actually, Hello World should be platform-independent, but he needs to compile it himself.  It''s not that tough to write portable programs (don''t need to change any code for it to work on a different computer, just recompile it on that computer), but you can''t use platform-dependent things such as DirectX.  If you only used ANSI C++ and graphics libraries such as SDL and OpenGL, you could give your friend the code, he could compile it, and it should work. 