C++
Author
Zhou Renjian
Create@
2004-02-17 21:39

More code about the C/C++, mainly about MFC
本记录相关记录:
- Simple JNI: Calling C/C++ From Java - 2004-11-17 21:13
1. Write Sample1.java: /** ?* @author Janyckee Jozz ?*/ public class Sample1 { ?public native int getNumber(); ? ?public static void main(String[] args) { ??System.loadLibrary("Sample1"); ??Sample1 s ...
- Run commands using CreateProcess in NT Services - 2004-11-14 13:35
?void CSimpleHttpConn::restartPeanutService() { ??? STARTUPINFO si; ??? PROCESS_INFORMATION pi; ??? ZeroMemory( &si, sizeof(si) ); ??? si.cb = sizeof(si); ??? ZeroMemory( &pi, sizeof(pi) ); ??? // Sta ...
- gethostbyname sample - 2004-11-14 13:32
#include <winsock2.h> ... ???WORD wVersionRequested; ???WSADATA wsaData; ???char name[255] = "www.whizzideas.com"; ???CString ip; ???PHOSTENT hostinfo; ???wVersionRequested = MAKEWORD(2, 0); ???if (W ...
- Event logging - 2004-02-18 13:02
Event logging 0. Create Message DLL (MC): ----------- set path=%path%;E:\Program Files\Microsoft Visual Studio\VC98\Bin;E:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin mc Message.mc rc -r ...
- NT Services - 2004-02-17 22:27
?NT Services Service Control Manager (SCM). Design the Service The codes should have the following codes in main(): SERVICE_TABLE_ENTRY servicetable[]={ ???? {strServiceName,(LPSERVICE_MAIN_FUNCTION)S ...