[C/C++] Unrar ou Unace OpenSource

Unrar ou Unace OpenSource [C/C++] - Programmation

Marsh Posté le 07-01-2002 à 14:44:04    

Salut,
Je recherche une source qui contient une fonction en C qui dézippe les .rar ou .ace (unrar ou unace) en opensource pour l'intégrer dans mes applications.
merci

Reply

Marsh Posté le 07-01-2002 à 14:44:04   

Reply

Marsh Posté le 07-01-2002 à 15:48:08    

gratuitement !? à mon avis, tu rêves... (pas sur, ms bon...)

Reply

Marsh Posté le 07-01-2002 à 16:19:42    

Les deux editeurs fournissent une DLL gratuites pour faire ça, certe t'as pas le source mais ça marche ;)


---------------
A+++ Bruce - http://www.bheller.com
Reply

Marsh Posté le 07-01-2002 à 16:21:24    

Reply

Marsh Posté le 07-01-2002 à 21:08:00    

http://www.rarsoft.com/rar_add.htm (site officiel)
ftp://www.rarsoft.com/rar/UnRARDLL.exe
 
J'ai téléchargé "UnRAR dll module", c pile ce qu'il me faut. Seulement, impossible de compiler l'exemple avec VC++. J'ai bien ajouté le .lib, le .h et voila les erreurs :
 
Compiling...
UnRDLL.c
f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : error C2143: syntax error : missing ';)' before '*'
f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : error C2143: syntax error : missing ';)' before '*'
f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : error C2143: syntax error : missing '{' before '*'
f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : error C2059: syntax error : ';)'
f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : error C2059: syntax error : ';)'
f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : error C2143: syntax error : missing ';)' before '*'
f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : error C2143: syntax error : missing ';)' before '*'
f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : error C2143: syntax error : missing '{' before '*'
f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : error C2059: syntax error : ';)'
f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : error C2059: syntax error : ';)'
f:\microsoft visual studio\myprojects\unrar\unrdll.c(15) : error C2373: 'ChangeVolProc' : redefinition; different type modifiers
        f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : see declaration of 'ChangeVolProc'
f:\microsoft visual studio\myprojects\unrar\unrdll.c(16) : error C2373: 'ProcessDataProc' : redefinition; different type modifiers
        f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : see declaration of 'ProcessDataProc'
f:\microsoft visual studio\myprojects\unrar\unrdll.c(72) : warning C4013: 'RARSetChangeVolProc' undefined; assuming extern returning int
f:\microsoft visual studio\myprojects\unrar\unrdll.c(75) : warning C4013: 'RARSetProcessDataProc' undefined; assuming extern returning int
f:\microsoft visual studio\myprojects\unrar\unrdll.c(229) : error C2373: 'ChangeVolProc' : redefinition; different type modifiers
        f:\microsoft visual studio\myprojects\unrar\unrar.h(65) : see declaration of 'ChangeVolProc'
f:\microsoft visual studio\myprojects\unrar\unrdll.c(242) : error C2373: 'ProcessDataProc' : redefinition; different type modifiers
        f:\microsoft visual studio\myprojects\unrar\unrar.h(66) : see declaration of 'ProcessDataProc'
Error executing cl.exe.
 
Unrar.exe - 14 error(s), 2 warning(s)
 
Quelqu'un peut-il me venir en aide ?

Reply

Marsh Posté le 08-01-2002 à 00:14:20    

Ben le source de UnRar il est là :
ftp://www.rarsoft.com/rar/UnrarSrc.rar


---------------
Laissez l'Etat dans les toilettes où vous l'avez trouvé.
Reply

Marsh Posté le 08-01-2002 à 18:52:37    

oui j'ai vu mais je préfère utiliser la DLL mais j'arrive pas à compiler l'exemple, personne peut m'aider SVP ?
Il y a un .def que je ne sais pas quoi faire...

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed