Another Virtual Function Problem
BlitzMax Forums/BlitzMax Programming/Another Virtual Function Problem
| ||
Another brick wall with interfacing with a C++ class filled with Virtual Functions Here's the definition and the TypeDef of the DataType it returns : typedef DWORD HEFFECT; virtual HEFFECT CALL Effect_Load(const char *filename, DWORD size=0) = 0; and here's my conversion, which causes a memory exception. Method Effect_Load:Int(FileName$z) |
| ||
I fixed it. |
| ||
Yes, Noel fixed it. It was because I just left the optional parameter out. I tried adding an optional parameter initially, but Blitz won't let me define optional parameters in external Methods, so I left it blank instead, thinking that was what Blitz expected. But I was wrong. |