VISUAL C++, VISUAL C#

Talk about your favorite PC games, Steam and building awesome custom rigs!

Moderator:Moderators

Post Reply
Gennady46
Posts:1
Joined:Thu Oct 22, 2009 4:15 pm
VISUAL C++, VISUAL C#

Post by Gennady46 » Thu Oct 22, 2009 4:37 pm

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?

Post Reply