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
BaseFunction.cpp
Package: 1731.rar [view]
Upload User: swkcbjrc
Upload Date: 2016-04-02
Package Size: 45277k
Code Size: 1k
Category:
Game Program
Development Platform:
Visual C++
- #include "stdafx.h"
- #include "basefunction.h"
- void GetCurrentPath(char out_pathName[MAX_PATH])
- {
- memset(out_pathName, 0, sizeof(char) * MAX_PATH);
- ::GetModuleFileName(NULL,out_pathName, MAX_PATH);
- for (int i = strlen(out_pathName) - 1; i >= 0; i--)
- {
- if (out_pathName[i] == '\' || out_pathName[i] == ':')
- {
- out_pathName[i+1] = 0;
- break;
- }
- }
- }
- BOOL IsWin9x(void)
- {
- DWORD dwVersion =::GetVersion();
- if (dwVersion < 0x80000000) // Windows NT/2000, Whistler
- return FALSE;
- else
- return TRUE;
- }