I searched using search text: convert decimal to binary string
, I found a couple examples that should give you some help to write your conversion program.
Using .NET Framework method
Convert.ToString Method (Int16, Int32)
Using an algorithm
How to Convert a Decimal Number to a Binary Number in a String
]. You'll have to convert the syntax from VB to C++.
Decimal to Binary Example Program
Decimal to Binary Source Code
]. A previously answered CodeProject.com question. See Solution 1.