Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
beosmain.cpp
Package: unzip540.zip [view]
Upload User: andy_li
Upload Date: 2007-01-06
Package Size: 1019k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
MultiPlatform
- // -*- C++ -*-
- //
- // WARNING: This is C++, not C! GNU C is not supported here!
- //
- // beos_init.cpp
- //
- // BeOS-specific C++ routines for use with Info-ZIP's UnZip 5.30 or later.
- //
- // This is necessary because we need to have an app_server connection to be
- // able to ask the system to assign a MIME type to an un-typed file. Strange
- // but true (the update_mime_info() call needs to send/receive messages).
- //
- // If you're writing your own Zip application, you probably DO NOT want to
- // include this file!
- #include <app/Application.h>
- #ifdef SFX
- const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZipSFX";
- #else
- const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZip";
- #endif
- extern "C" int main_stub( int argc, char *argv[] );
- int main( int argc, char **argv )
- {
- BApplication app( unzip_signature );
- int retval = main_stub( argc, argv );
- app.PostMessage( B_QUIT_REQUESTED );
- app.Run();
- return retval;
- }