Hi, guys.
I guess I'm a little stuck here. I have this DLL I've made, no big deal and it has these functions:
I'm trying to make myself a little mod with it (I have .LIB file) so I'm doing it like this:
No matter what I do, I can't make the ComCreate function return anything other than 0. It should return 1 for success and 0 for error. The DLL works in Purebasic and in Visual C++ like this:
Somehow I think there's something wrong with the strings being passed as parameters? Could you guys see what I'm doing wrong. I'd appreciate very much as this is taking me more than one day to understand.
Thanks a lot. :)
I guess I'm a little stuck here. I have this DLL I've made, no big deal and it has these functions:
ProcedureDLL comInit() ProcedureDLL.l comCreate(name.s, progID.s)
I'm trying to make myself a little mod with it (I have .LIB file) so I'm doing it like this:
Module byo.com Import "mfxCom.lib" Extern Function comInit() "win32" Function comCreate:Int(name:String, progId:String) "win32" End Extern
No matter what I do, I can't make the ComCreate function return anything other than 0. It should return 1 for success and 0 for error. The DLL works in Purebasic and in Visual C++ like this:
comCreate("byo", "Word.Application")
Somehow I think there's something wrong with the strings being passed as parameters? Could you guys see what I'm doing wrong. I'd appreciate very much as this is taking me more than one day to understand.
Thanks a lot. :)