View Full Version : Build with VC++.NET
February 24, 2005, 06:17:59
How to create the MontiVision Integration ActiveX Control with the VC++ .NET?
..then I got error..
Or, now we can't build but with VC6or7?
February 25, 2005, 15:37:29
If you are running C++ BufferAccessSample and getting error RPC_E_Changed_Mode in the trace output and are running VC++ 7.0 or 7.1,
then this might help: add this test to BufferAccessSample.CPP
"& __WIN32_WINNT !-0x0501" as you see below. This worked for me.
m_bATLInited = TRUE;
//#if _WIN32_WINNT >= 0x0400 // old line
#if _WIN32_WINNT >= 0x0400 & _WIN32_WINNT != 0x00501
HRESULT hRes = CoInitializeEx(NULL, COINIT_MULTITHREADED);
HRESULT hRes = CoInitialize(NULL);
m_bATLInited = FALSE;
February 28, 2005, 01:09:10
It works.Thats a great help.Thanks!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.