|
From: Per W. <pw...@ia...> - 2006-08-03 12:59:51
|
Transmit all pointers as numeric or text handles. Transmit structure data as comma-separated strings. When your strange language want to follow a "next" poiinter, it just calls a string = get_next_object_of_type_xx(handle) or res = get_next_object_of_type_xx(handle,string,stringsize) with the "next" handle as parameter and receives a new comma-separated string. If you do use comma-separated strings (CSV), just remember to handle any commas in string fields, i.e. convert them to hexadecimal or use break characters etc. /Per W On Thu, 3 Aug 2006, Thomas O'Hare wrote: > Hello All! > > I am using Dev-C++ in C++ mode to try and create an entry point into my > own DLL's based on the WinPCap Libraries. I need to export several of > my own functions to languages that do not inherently support C typed > structures. > > I am looking for the cleanest, fasted way to create an entry point for > my functions so I can use the DLL as a true library for the programming > languages lacking native structure support. > > I can open DLL's in these languages and call functions, but especially > "chained" (Next) structures are very very tricky to work with in any > language that does not have native support for C typed structures. > > Any docs, resources, suggestions, etc, are welcome. > -- > > Thanks, > ~ Thomas O'Hare ~ > President, RedTile, Inc. - DBA: RedTile Software > Web, Wireless, Network, Database & Systems Software > +1.407.295.9148 ; +49.8651.717950 ; http://www.RedTile.Com/ > Operations Manager; Virtual FoxPro User Group > To...@VF... ; http://www.VFUG.Org/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |