Default Avatar

johnw

johnw

About

Username
johnw
Joined
Visits
0
Last Active
Roles
Members

Comments

  • Type-o I meant v=Params.GetElement(0);
  • Is it passed as a pointer or as static? I tried to set a value from my handler function but didn't get back what I thought: //in my handle function I do this: ..... Variant v; v=Params.GetElement(4); int i=99; v.PutElement(&i,0); …
  • I'm assuming that since you don't indicate a type it is a Variant by default?
  • Veeresh, I'm not really sure exactly what you are trying to do but I'll try to help. I'm new at this too. You must first add a handler method that will be called when your function is encountered in script. Then, when you call AddMethod() you must …
  • I've found out the problem. If you use 'procedure' in AddMethod you can't return an int. If you use 'function' any type works. Is this a pascal thing with function vs. procedure? Anyway... fsScript1->AddMethod("function Func(x:Integer): I…
  • See my last reply in the post "Return Values to script methods". If you are still having trouble, e-mail me and I'll send you my code. John
  • Thanks for the reply Alex. I think maybe I led you a little astray. First off the func name = ="func" was just a mis-type by me. I know everything is set to uppercase. As far as the AddMethod...I tried your suggestion and I still get the same thing.…