WinIncBin , any chance ?

BlitzMax Forums/BlitzMax Programming/WinIncBin , any chance ?

skn3(Posted 2005) [#1]
Any chance for a command similar to incbin, that lets you include external files with your app, in a format that can be used with winapi ?


Perturbatio(Posted 2005) [#2]
do you mean like windows resources?


skidracer(Posted 2005) [#3]
If you mean like fopen (which is stdc not win32) then there maybe a way to seek a filehandle to the correct position of the exe so it will start reading from the start of the incbin. If you mean resources you can import the obj files output by the mingw tool res2obj.


ImaginaryHuman(Posted 2005) [#4]
Max wouldn't be cross platform if it was windows specific like that?


Russell(Posted 2005) [#5]
True.

But doesn't Linux and Mac have resource-like objects as well (icon data, etc). If so, I think it could be done in a cross-platform sort of way.

We definitely should REALLY try hard to keep BlitzMax crossplatform compatible.

Russell


FlameDuck(Posted 2005) [#6]
Max wouldn't be cross platform if it was windows specific like that?
Being cross-platform does not automatically disqualify platform specific functionality, so long as it is made clear how it works on respective platforms. That way people who do not have cross platform capabilities as a priority, can still use more powerful functionality, without sacrificing cross platform capability for those that wish it.

An example: USB support in Java is mostly limited to the Linux platform.