PDA

View Full Version : Walkthrough: How to compile a simple hello world program using shared mem


helenoksen
05-12-2006, 03:27 PM
How do you compile a simple hello world program using shared mem in Visual Studio? What files do you need and what configuration settings to set in Visual Studio?

Thanks,

helenoksen

neoxed
05-12-2006, 04:57 PM
How do you compile a simple hello world program using shared mem in Visual Studio?A "hello world" application is not relevant here, printing text to stdout has nothing to do with shared memory. You should probably read up on the various interprocess communication (IPC) methods (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/interprocess_communications.asp) Windows implements.

If you need a starting point, I wrote wrapper functions for all of ioFTPD's shared memory functions (alcoWinIoShm.h (http://svn.alcoholicz.com/ext/trunk/win/alcoWinIoShm.h) and alcoWinIoShm.c (http://svn.alcoholicz.com/ext/trunk/win/alcoWinIoShm.c)). These functions are meant to be used from a Tcl extension, so they would require some trivial modifications to be used elsewhere.

What files do you need and what configuration settings to set in Visual Studio?
There is nothing specific to Visual Studio that needs to be changed, but that could depend on what language you're programming in.

neoxed
05-12-2006, 05:37 PM
Hmm you gave me an idea. :)

I'll try and make a small SDK (with working examples) for people writing shared memory applications for ioFTPD.

Edit: Give me about a day and I'll have something ready for public consumption (I have drinking/hockey watching to do tonight ;) ).

neoxed
05-14-2006, 08:20 PM
http://www.inicom.net/forum/showthread.php?p=129769

helenoksen
05-14-2006, 11:59 PM
Cool! this will def. get me started. Hopefully ill have more time after school term to start some serious coding. Thanks a lot for sharing!

helenoksen