~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to tools/gsoap/gsoap-linux-2.7/mod_gsoap/gsoap_win/isapi/samples/calc/.svn/text-base/winstuff.cpp.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// calc.cpp : Defines the entry point for the DLL application.
2
 
//
3
 
 
4
 
#define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
5
 
#include <windows.h>
6
 
#include <winsock2.h>
7
 
 
8
 
#if _MSC_VER > 1000
9
 
#pragma comment(lib, "wsock32")
10
 
#endif
11
 
 
12
 
static struct WSAInit { \
13
 
        WSADATA WsaData; \
14
 
        WSAInit() {WSAStartup(0x0101, &WsaData);} \
15
 
        ~WSAInit() {WSACleanup();} \
16
 
} WsaInit;
17
 
 
18
 
 
19
 
BOOL APIENTRY DllMain(HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved) {
20
 
    return TRUE;
21
 
}
22