i've a ask, can anybody tell me who i implement the follow C ++ Routine
in Prograph for Windows V 1.2
void MyClass::TestProc ()
{
class Test * frm ;
frm = new Test () ;
frm->Func ( "true" ) ;
}
but i do not implement the variable frm from class Test als global or
local attribute, i will only use the function Func from class Test in
this Procedure
thank.
Friso
I'm assuming you're trying to find the Prograph equivalent of this C++
code, and not trying to call a C++ class' function from Prograph:
It looks as if you are only instantiating an object of type Test, then
calling its class method Func with a Boolean argument of value TRUE. If
you have defined the class Test and its methods (including Func)
somewhere else, this is trivial:
1. Generate an instance of class Test by selecting "Instance" from the
Opers (operations) menu, and name the instance Test.
2. Create a class method by selecting "Simple Method" from the Opers
menu and naming the new method "/Func". The initial "/" indicates that
this is a class method. Give this new method two input nodes. Connect
the output node of the instance generator to the first input node of
"/Func". This will pass the class reference from the instance generator
to the class method. Pass a constant with the value TRUE to its second
node.
I hope that I've interpreted your problem correctly and this helps.
Scott Steinman
In article <1104175585....@z14g2000cwz.googlegroups.com>,