MAJOR UPDATE 05-19-2020:
Now both BIN2BAS and PIC2MEM generate a non-conflicting function name. To use the BIN2BAS file you generate, INCLUDE it as a BM in the bottom of your program and call the sub elsewhere to generate the file. For instance,
__file 'This calls the sub named "file" that generates the file if it does not exist
'$INCLUDE:'file.ico.BM'
To use the PIC2MEM function output, INCLUDE the .MEM file in the bottom like you would for a BM then use the function name as an image handle in your program. Example:
SCREEN __smiley&
'The function call returns the image handle of the picture "smiley" '$INCLUDE:'smiley.png.MEM'
I'm using the embedded photos from the PIC2MEM function in the buttons of my InForm program by assigning
Control(ControlID).HelperCanvas = __imageHandle&
I've done a whole lot of testing with this program. I decided against using my own WPF Message Boxes since they run slow depending on the startup folder directory and machine speed. Native will just be better for this since this will also not show a message box ever as long as someone doesn't try to open something besides what the filter allows. The generated files and functions should all be compatible with OPTION _EXPLICIT as well.