m***@gmail.com
2006-04-13 23:47:26 UTC
Hi -
Trying to implement a Macromedia Director Xtra that calls some directx
functions and sends the results to director (namely XInput ).
Quesion: Has anyone ever worked with MOA (Macromedia Open Architecture)
to interface and DirectX with Flash or Director ?
Following the excellent tutorials here:
http://mxdj.sys-con.com/author/3540Julius.htm
...I've been able to implement a trivial Xtra that passes values back
to Director as the result of a Lingo command. Now I'd like to pass
back some XInput results instead of my test values. (Let me say up
front that I am new to COM-style development like MOA.)
I'm getting compilation errors when I call XInputGetState() in my
method - "cannot resolve symbol." I've included the proper header file
(<XInput.h>), but the methods implmented don't recognize the function.
Error:
Script error LNK2019: unresolved external symbol ***@8
referenced in function "private: virtual long __stdcall
CScript_IMoaMmXScript::XScrpGetControlState(struct MoaMmCallInfo *)"
(?***@CScript_IMoaMmXScript@@EAGJPAUMoaMmCallInfo@@@Z)
"CScript_IMoaMmXScript::XScrpGetControlState" is my MOA method.
XInputGetState is called from within this method.
I'm using the XDK skeleton file found in the example folder of:
http://www.macromedia.com/support/xtras/xdks/xdk.html
Is this just a fundamental misunderstanding of how COM-style interfaces
can work with libraries like DirectX? If I want to implement arbitrary
C++ function calls in the MOA / COM style of development how do I go
about it?
Thanks!
Matt
Trying to implement a Macromedia Director Xtra that calls some directx
functions and sends the results to director (namely XInput ).
Quesion: Has anyone ever worked with MOA (Macromedia Open Architecture)
to interface and DirectX with Flash or Director ?
Following the excellent tutorials here:
http://mxdj.sys-con.com/author/3540Julius.htm
...I've been able to implement a trivial Xtra that passes values back
to Director as the result of a Lingo command. Now I'd like to pass
back some XInput results instead of my test values. (Let me say up
front that I am new to COM-style development like MOA.)
I'm getting compilation errors when I call XInputGetState() in my
method - "cannot resolve symbol." I've included the proper header file
(<XInput.h>), but the methods implmented don't recognize the function.
Error:
Script error LNK2019: unresolved external symbol ***@8
referenced in function "private: virtual long __stdcall
CScript_IMoaMmXScript::XScrpGetControlState(struct MoaMmCallInfo *)"
(?***@CScript_IMoaMmXScript@@EAGJPAUMoaMmCallInfo@@@Z)
"CScript_IMoaMmXScript::XScrpGetControlState" is my MOA method.
XInputGetState is called from within this method.
I'm using the XDK skeleton file found in the example folder of:
http://www.macromedia.com/support/xtras/xdks/xdk.html
Is this just a fundamental misunderstanding of how COM-style interfaces
can work with libraries like DirectX? If I want to implement arbitrary
C++ function calls in the MOA / COM style of development how do I go
about it?
Thanks!
Matt