I am trying to make a program to extract the contents of a .rar file. Here is what a converted from C to C++. (I am still using the unrar.lib from the example in the WinRAR example, should that be good for C++?)
%