Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: c++ problem  (Read 6083 times)

0 Members and 1 Guest are viewing this topic.

mylesblasonato

  • Developer
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 265
  • "Give up is to fail as sacrifice is to succeed"
    • View Profile
    • Royal Wins
c++ problem
« on: November 02, 2010, 11:28:48 AM »

Hi guys :)
I have a different kind of problem then we are used to seeing. It's a c++ problem. I am creating a dll implementing Huffman Compression.
The thing is that the compression is working but the decompression is not.
If anyone can help as to why that would be awesome.
I have linked a zip file which includes my visual studio express edition 2008 solution file.
The debugger options are also set up with the right arguments.
All you have to do is run the program from within visual studio and take a look inside of the project folder to see the result.

Cheers  ::beer
Myles Blasonato.
LINK: http://www.mediafire.com/?g5471qwq3x4vve5
Logged
Lead Game Designer, Royal Wins.
@mylesblasonato
@royalwins
http://au.linkedin.com/pub/myles-blasonato/26/600/a38

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: c++ problem
« Reply #1 on: November 02, 2010, 06:29:35 PM »

Wouldn't it be easier to use some existing compression library, such as zlib?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: c++ problem
« Reply #2 on: November 03, 2010, 08:43:04 PM »

LZMA is free too and has best compression as far as I know :)

http://www.7-zip.org/sdk.html


Greets, Spellbreaker
Logged

mylesblasonato

  • Developer
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 265
  • "Give up is to fail as sacrifice is to succeed"
    • View Profile
    • Royal Wins
Re: c++ problem
« Reply #3 on: November 10, 2010, 02:29:51 AM »

Hi guys :)
Yeah I would love to use the other compression libraries but it's for learning purposes.

Cheers  ::beer
Myles Blasonato.
Logged
Lead Game Designer, Royal Wins.
@mylesblasonato
@royalwins
http://au.linkedin.com/pub/myles-blasonato/26/600/a38
 

Page created in 0.035 seconds with 23 queries.