K8055 in C++

How can I use SetCurrentDevice in C++ and OpenDevice() when I have more than one board functioning??? Do I need to put SetCurrentDevice everytime I want it to do something and can I make it work sepperate from the other board???

OpenDevice(0);
OpenDevice(1);

and then…

SetCurrentDevice(0); //Activates card0
SetDigitalChannel(1): //Sets digital 1 on card0
SetCurrentDevice(1); //Activates card1
SetDigitalChannel(2): //Sets digital 2 on car1

How do I do this its not working sepperatly the boards???

I am controlling the boards from my visual C++ express edition

Thank you Siss