article shows how to use an undocumented internal class method from the System. Try using the old dll made in masm to see what happens. Free and easy way to access a web camera by using the Aforge library. I tested it last night once again, i succeeded to remove gcc dependencies but one gcc dll was still being used (except on the FbRtl32D version).ītw.here your example works ok. Maybe you got a better luck trying to compile this, getting rid of mangled names and also keeping the debug info. If you want, i can try to send the full library from mingw to you try to compile. Try using the older version of the Dll i made in masm to see what happens. In dodicat example i´m trying to port, all is needed is: If the pointer is not being used, the functon goes directly to exit api from msvcrt (Take a look on the disassembled source code i provided earlier, maybe it can help) Also internally, it checks either a pointer to a variable used in another function called _set_mode is used or not. The function uses one single parameters (code exit) to be used Internally it points to msvcrt exit. What procedure entry point means ? Is the function fb_end it's talking about ? Do FreeBasic uses a def file too ? Maybe that´s the reason why it´s not finding the exported function. I dont know what FB is doing when trying to compile the example. Is not a bad project, but those internal problems results on buggy and slow apps and hard to port. The developers of FB could make it a more robust project if they simply get rid of gcc and force FB to compile itself without those dependencies and under total control of the user, or at least use a assembler to create their apps and routines. Library Subsystem Here you can select a different PB subsystem for compilation. I ported hundreds of BCX routines to RosAsm years ago on the old RosAsm forum. Includes line numbers information with the executable for the OnError-Library. But, at least BCX was able to compile itself without dependencies and the internal coding was excellent. It was good specially because it was really simple and the internal runtime routines well organized). I remember an old Basic compiler that was also very good, one called BCX Translator, that could also be used to translated basic code to C, but used LCC for that (An old and very good C compiler. Sometimes, there is different way to achieve the same goal and when it makes sense, PureBasic offers the possibility to change the used underlying libraries for specific commands, without changing one line of source code. It could be much better developed if it was written in masm, fasm, NAsm, GoAsm or even RosAsm (Although i never had time to build a version that uses lib yet). PureBasic integrated commandset relies on available OS libraries. Why FB developers insists to use gcc to compile this, is something way out of my head.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |