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
rwexe_m.cpp
Package: win2ksrc.rar [view]
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 2k
Category:
Windows Develop
Development Platform:
Visual C++
- /*************************************************************************
- **
- **
- ** File : RWExeMain.cpp
- ** Product :
- ** Date : 05/07/97
- ** Author : Suresh Krishnan
- **
- ** Registration Wizard Exe programs main file
- ** The Exe version of Registration Wizard is implemented using the Active X
- ** component
- ** Modification History
- ** 07/20/98 : The RegWizControl is changed from Button control to an IE object,
- ** some of the properties like Text, HWND of the button no longer exists.
- *************************************************************************/
- #include <stdio.h>
- #include <tchar.h>
- #include "rwexe_m.h"
- #include "regwizC_i.c"
- #define STRCONVERT_MAXLEN 256
- OLECHAR* ConvertToUnicode(char FAR* szA)
- {
- static OLECHAR achW[STRCONVERT_MAXLEN];
- MultiByteToWideChar(CP_ACP, 0, szA, -1, achW, STRCONVERT_MAXLEN);
- return achW;
- }
- int LoadAndUseRegWizCtrl(TCHAR *lpCmdLine)
- {
- HRESULT hr;
- IRegWizCtrl *pRegWiz;
- hr = CoCreateInstance( CLSID_RegWizCtrl,
- NULL,
- CLSCTX_ALL,
- IID_IRegWizCtrl,
- (void**)&pRegWiz);
- if(FAILED(hr) ){
- //printf("n Error Creating Interface...");
- return 0;
- }else {
- //printf("n Created Interface (IExeTest)...");
- }
- // Invoke register
- #ifndef _UNICODE
- hr = pRegWiz->InvokeRegWizard(ConvertToUnicode(lpCmdLine));
- #else
- hr = pRegWiz->InvokeRegWizard(lpCmdLine);
- #endif
- return 0;
- }
- int APIENTRY WinMain (HINSTANCE hinst,
- HINSTANCE hinstPrev,
- LPSTR lpCmdLine,
- int nCmdShow)
- {
- CoInitialize(NULL);
- LoadAndUseRegWizCtrl(lpCmdLine);
- CoUninitialize();
- return 1;
- }