|
#10
|
|||
|
|||
|
just use cmake(check attached archive), i used it with msys2 and msvc
PS: for using the boost in msvc, I have handwritten the paths in CMakeList.txt, you probably have to change it according to your environment, it works just fine with msys2(use pacman) also remember the arc is 32 bit so you have to use 32 bit environment for both msvc and msys2 in C++ you just need to inherit from ClsCompressor class and overwrite compress and decompress function f.e: Code:
class ClsLzhamCompressor : public ClsCompressor {
public:
template <typename... Types>
ClsLzhamCompressor(Types... Args) : ClsCompressor{Args...} {}
protected:
// overwrite this method for your compression
// see ClsCompressor defination in cls.h and use read_exactly(...) and equivalent functions for required operation
void decompress() override;
};
Code:
extern "C" int __cdecl ClsMain(int operation, CLS_CALLBACK callback,
void *instance) {
return ClsLzhamCompressor(operation, callback, instance).run();
}
Last edited by Gupta; 15-07-2018 at 10:21. |
| The Following 2 Users Say Thank You to Gupta For This Useful Post: | ||
Simorq (17-08-2018), TheGeekyGamer (15-07-2018) | ||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inno Setup: Additional Libraries | altef_4 | Conversion Tutorials | 50 | 21-10-2020 09:59 |
| ISComponent libraries | Jiva newstone | Conversion Tutorials | 16 | 13-06-2018 05:00 |
| Compiling patches to CD | rambai | PC Games | 3 | 17-05-2009 13:05 |
| Compiling | jmaverick101 | PC Games | 1 | 04-04-2004 17:34 |
| Problem with compiling seperate files.. | esong2k3 | DC Games | 1 | 01-07-2003 08:34 |