Another Virtual Function Problem

BlitzMax Forums/BlitzMax Programming/Another Virtual Function Problem

Gabriel(Posted 2006) [#1]
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)



N(Posted 2006) [#2]
I fixed it.


Gabriel(Posted 2006) [#3]
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.