vc++ 2008 problem

hi all
I'm new to vc++2008 . i have written a Huffman coding class in linux which compiles and works fine and now i want to make a gui for it in windows using vc++2008.
here is what i did:
1.add .cpp and .h file to my solution.
2.write "#include stdafx.h" at the beginning of those files.

i did those 2 step and program compiled well but it doesnt work(let's say it works wrong).
can you guys tell me why? i dont know maybe because of header files in my class or what...
here is my Huffman class files:
http://maroofi.persiangig.com/huffman.h
http://maroofi.persiangig.com/huffman.cpp
Huffman class uses bitio class which is here:
http://maroofi.persiangig.com/bitio/bitio.h
http://maroofi.persiangig.com/bitio/bitio.cpp

you can use huffman class just like this :
add "#include huffman.h" to project.
then write these code :
1
2
huffman instance1("inputFileName","outputFileName");
instance1.encode();

just add above code to for example button clicked action in vc++2008

thx in advance...
Topic archived. No new replies allowed.