|
Post by KlangManipulation on Mar 8, 2014 22:22:52 GMT 1
hi, this is a piece of code i dot know what it is. maybe some can tell me what it is. is it a function?
Km_commandTriggerGui::Km_commandTriggerGui( IMpUnknown* host ) : MpGuiBase(host) ,outputPinCount_(0) // <-------- whats this? i was searching for it but with no luck. what does this "," at the beginning mean? { // initialise pins value.initialize( this, 0 ); }
|
|
|
Post by Rob on Mar 9, 2014 9:38:35 GMT 1
Hey,
When the module is constructed, you can initialise variables used for your module there. They get seperated by the commas.
You can add more variables there if needed, seperated by commas.
Variable1(0.0), variable2(0.0),etc etc
|
|
|
Post by KlangManipulation on Mar 10, 2014 17:02:10 GMT 1
uhhhm, ok but what is it?
,outputPinCount_(0)
float? int?
do you mean its the same like:
float outputPinCount_ = 0;
|
|
|
Post by Rob on Mar 10, 2014 19:28:17 GMT 1
Yes, it's an INT variable. Counters are always integer, never float. It's used to count howmany outputpins are available or need to be created..( haven't seen the rest of the code, but it must be something like that ) And the same as your line basicly, but then right when the module is created. You should be able to see the declaration of that variable in the header .h file.
|
|