I have a created a class in visual C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.SharpZipLib.Zip;
namespace SharpZip
{
public class Zip
{
public void Unzip(string fileName, string path)
{
FastZip fz = new FastZip();
fz.ExtractZip(fileName, path, "");
}
}
}
now, I have a small program in visual c++ to use this class:
#include <windows.h>
#include <WinInet.h>
#include <iostream>
using namespace std;
#using "unzipfile.dll"
using namespace SharpZip;
int main()
{ char ch;
Zip file;
BOOL BSuccess;
DWORD DWFlags;
BSuccess = InternetGetConnectedState(&DWFlags, 0 );
if ( BSuccess ) cout << "Online. ";
else cout << "Offline. ";
file.Unzip("c:\\windows\\system32\\streams.zip","c\\windows\\system32");
cout << "Press Any Key To Quit: "; cin >> ch;
return 1;
}
Everythings compiles and builds and then when I run, it gives an error:
"THE EXCEPTION UNKNOWN SOFTWARE EXCEPTION (0XE0434F4d) occured in the application
location 0x7c812afb".
Can you tell me why is this happenning? Anyone?
VISUAL C++, VISUAL C#
Moderator: Moderators