Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: usb connection Pin
Cedric Moonen13-Jul-07 23:49
Cedric Moonen13-Jul-07 23:49 
GeneralRe: usb connection Pin
HOYAM14-Jul-07 3:51
HOYAM14-Jul-07 3:51 
Questioninsert image in Ms-word using MFC Pin
saravananr_mca13-Jul-07 20:51
saravananr_mca13-Jul-07 20:51 
QuestionCan i import jpeg images into workspace of visual C++ Application Pin
vipin_nvk13-Jul-07 20:15
vipin_nvk13-Jul-07 20:15 
AnswerRe: Can i import jpeg images into workspace of visual C++ Application Pin
Hamid_RT14-Jul-07 1:04
Hamid_RT14-Jul-07 1:04 
Question[Message Deleted] Pin
hkwj8813-Jul-07 19:20
hkwj8813-Jul-07 19:20 
AnswerRe: input file Pin
Cyrilix13-Jul-07 20:16
Cyrilix13-Jul-07 20:16 
QuestionHelp needed with LiteUnZip ! Pin
Fritzables13-Jul-07 17:48
Fritzables13-Jul-07 17:48 
Hi to all,

I am using VC++ 2005 and trying to employ LiteUnzip a series of ZIPPED files but once I retrieve the file names within the ZIP I would like to decompress them using an alternate path, so I am trying to override ze.Name and give it a path which has been defined within a String.

Take a look at the code below to get an idea where I'm coming from:

private: void UnZIP(String^ file,String^ source, String^ target)<br />
{<br />
HUNZIP hz;<br />
ZIPENTRY ze;<br />
String^ inFile;<br />
String^ outFile;<br />
String^ fileName;<br />
DWORD numitems;<br />
<br />
inFile = source + file;<br />
pin_ptr INFILE = PtrToStringChars(inFile);<br />
UnzipOpenFile(&hz,INFILE,0);<br />
<br />
ze.Index = (DWORD)-1;<br />
UnzipGetItem(hz,&ze);<br />
numitems = ze.Index;<br />
<br />
for(ze.Index = 0;ze.Index < numitems + 1;ze.Index++)<br />
{<br />
UnzipGetItem(hz,&ze);<br />
<br />
// Convert to a System::String<br />
String^ systemstring = gcnew String(ze.Name);<br />
fileName = Path::GetFileName(systemstring);<br />
delete systemstring;<br />
<br />
outFile = target + "\\" + fileName;<br />
ze.Name = outFile;
<---- Need to find a way to convert a String to an acceptable type.

UnzipItemToFile(hz,ze.Name,&ze);<br />
}<br />
<br />
UnzipClose(hz);<br />
}



Cheers
Fritzables.
Questionerror in VC 2005: 'Stack::Link' : dependent name is not a type Pin
jpucnpczjx13-Jul-07 17:29
jpucnpczjx13-Jul-07 17:29 
AnswerRe: error in VC 2005: 'Stack::Link' : dependent name is not a type Pin
Arman S.14-Jul-07 2:35
Arman S.14-Jul-07 2:35 
GeneralRe: error in VC 2005: 'Stack::Link' : dependent name is not a type Pin
jpucnpczjx15-Jul-07 2:29
jpucnpczjx15-Jul-07 2:29 
QuestionLinker Pin
Bram van Kampen13-Jul-07 15:14
Bram van Kampen13-Jul-07 15:14 
AnswerRe: Linker Pin
DevMentor.org14-Jul-07 9:46
DevMentor.org14-Jul-07 9:46 
GeneralRe: Linker Pin
Bram van Kampen14-Jul-07 13:04
Bram van Kampen14-Jul-07 13:04 
AnswerRe: Linker Pin
Mark Salsbery14-Jul-07 11:41
Mark Salsbery14-Jul-07 11:41 
GeneralRe: Linker Pin
Bram van Kampen14-Jul-07 13:06
Bram van Kampen14-Jul-07 13:06 
QuestionDefault values in prototypes Pin
mrchips0513-Jul-07 14:20
mrchips0513-Jul-07 14:20 
AnswerRe: Default values in prototypes Pin
Paul Conrad13-Jul-07 14:31
professionalPaul Conrad13-Jul-07 14:31 
AnswerRe: Default values in prototypes Pin
Bram van Kampen13-Jul-07 15:29
Bram van Kampen13-Jul-07 15:29 
Questionnew problem Pin
kcynic13-Jul-07 12:35
kcynic13-Jul-07 12:35 
AnswerRe: new problem Pin
Michael Dunn13-Jul-07 13:14
sitebuilderMichael Dunn13-Jul-07 13:14 
GeneralRe: new problem Pin
kcynic13-Jul-07 13:24
kcynic13-Jul-07 13:24 
GeneralRe: new problem Pin
Mark Salsbery13-Jul-07 15:39
Mark Salsbery13-Jul-07 15:39 
GeneralRe: new problem Pin
kcynic13-Jul-07 19:42
kcynic13-Jul-07 19:42 
GeneralRe: new problem Pin
Mark Salsbery14-Jul-07 7:07
Mark Salsbery14-Jul-07 7:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.