i think you missunderstand me
i will have lot of dlls wich contains diferent functions of a few kind
lets say kind : input, output, activator ...
so if i call the function whit bool as argument and he tells me he is an input type i can call it next whit the proper arguments
this is the old solution
What::What ()
{
}
array<System:
bject^, 2>^ What::GET_PORT_S()
{
array<System:
bject^, 2>^ Ports = gcnew array<System:
bject^,2>(1,6);
Ports[ 0, 0 ] = "MemoryPhys";
Ports[ 0, 1 ] = "Out";
Ports[ 0, 2 ] = nullptr;
Ports[ 0, 3 ] = int::typeid;
Ports[ 0, 4 ] = "byte";
Ports[ 0, 5 ] = "Installed Phisycal Memory";
return Ports;
}
int What::MemoryPhys()
{
MEMORYSTATUS stat;
GlobalMemoryStatus (&stat);
return 0;
}
so i think woud it by beter --> ( if it works need to try )
array<System:
bject^, 2>^ What::MemoryPhys(bool)
{
//report what i am
}
i just have the feling that there is some automatization for this