I'm having trouble wrapping the comdlg32.dll GetOpenFilenameA and GetSaveFilenameA into a .decls... I want to have both these dialogs to use in my editor.
Problem is, that the first argument of these funcions is a string you need to pass to it so it can write down the file the user chose to save\open. But I don't think blitz's userlib system can handle functions writing values to it's variables, can it? It would've been so much easier if the functions itselves returned a string value, instead of writing into one.
You can find the description of the OpenFile here:
http://www.sysdeco.no/Doc/Langref/getopenfilename.htm
(I hope this one is right, it's the one i'm trying to use).
It keeps giving a "Illegal Memory Adress" error. Sometimes it gives "Unknown Exception Error" or something like that.
Problem is, that the first argument of these funcions is a string you need to pass to it so it can write down the file the user chose to save\open. But I don't think blitz's userlib system can handle functions writing values to it's variables, can it? It would've been so much easier if the functions itselves returned a string value, instead of writing into one.
You can find the description of the OpenFile here:
http://www.sysdeco.no/Doc/Langref/getopenfilename.htm
(I hope this one is right, it's the one i'm trying to use).
It keeps giving a "Illegal Memory Adress" error. Sometimes it gives "Unknown Exception Error" or something like that.