source: trunk/Utilities/VbsCallback/dllmain.cpp @ 937

Last change on this file since 937 was 88, checked in by roman, 10 years ago
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2012
3// Created by Roman Ryltsov roman@alax.info
4//
5// $Id: dllmain.cpp 88 2012-08-11 11:44:30Z roman $
6
7#include "stdafx.h"
8#include "resource.h"
9#include "VbsCallback_i.h"
10#include "dllmain.h"
11
12#if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
13#error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."
14#endif
15
16CVbsCallbackModule _AtlModule;
17
18extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
19{
20        hInstance;
21        return _AtlModule.DllMain(dwReason, lpReserved); 
22}
Note: See TracBrowser for help on using the repository browser.