hope now it works... i have edited the above post![]()
hope now it works... i have edited the above post![]()
I had already tried your suggestion. I had added [8] for this error message:
error: cannot convert ‘MatrixModule::PinConfiguration (*)[8]’ to ‘MatrixModule::PinConfiguration*’ in assignment
you have to remove the [8] and bring back the *... take a look at the post again..
Qt Code:
//! Set the widget values from the PinConfiguration structure provided void IOPortConfig::setConfig(MatrixModule::PortConfiguration &config) { MatrixModule::PinConfiguration *ports[2]; ports[0] = &(config.port0); ports[1] = &(config.port1);To copy to clipboard, switch view to plain text mode
error: cannot convert ‘MatrixModule::PinConfiguration (*)[8]’ to ‘MatrixModule::PinConfiguration*’ in assignment
oh.. man... i should have read your first post carefully... my mistake my mistake.. sorry.. give me a minute..
EDIT : ... remove the & now.
Qt Code:
port[1] = /*&*/config.port;To copy to clipboard, switch view to plain text mode
PaceyIV (27th July 2009)
hope it works now
EDIT: i was all the time confusing Port and Pin as same Configuration![]()
Last edited by nish; 27th July 2009 at 10:48.
It works! Good.
Yes, sure! config.port is a pointers to config.port[0]. I should have used the & with config.port[0].
Now I can also re-add the const.
Thanks!
Bookmarks