visual-c++

Windows XP WinAPI support for CheckBox controls

坚强是说给别人听的谎言 提交于 2021-02-08 05:40:22
问题 I was having a look at the documentation for BM_GETCHECK and it seems that this functionality is only supported on Windows Vista and above. That is, this is not a supported message in Windows XP. A quick search online doesn't immediately yield an alternative way of getting the control state. Several other messages (this for example) that I would also expect to work on Windows XP are reported to not be supported. Does anyone have any insight into this? How does one generally handle Windows XP

Getting: error C2668: 'sqrt' : ambiguous call to overloaded function [duplicate]

蹲街弑〆低调 提交于 2021-02-08 05:32:32
问题 This question already has answers here : C++ compiler error: ambiguous call to overloaded function (4 answers) Closed 6 years ago . Trying to build the source code below from an example given in a textbook. I'm using visual studio 2008. The compiler doesn't seem to know what to do with sieve: 1>------ Rebuild All started: Project: fig21.40, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'fig21.40', configuration 'Debug|Win32' 1>Compiling... 1>fig21_40

How to check whether the tlb file is registered in registry using C++?

陌路散爱 提交于 2021-02-08 05:15:31
问题 I have created a class library using c#.And i have registered the class library using regasm.. RegAsm.exe Discovery.dll /tlb: Discovery.dll /codebase Now i want to know whether the assembly is registered or not using c++. I need because I have to check the registry for this dll if it is not registered I have to registered it programatically if it is registered then i simply skip it. so How can i know whether the assembly registered or not using c++... 回答1: Why do you need to bother at all?

How to check whether the tlb file is registered in registry using C++?

一曲冷凌霜 提交于 2021-02-08 05:14:35
问题 I have created a class library using c#.And i have registered the class library using regasm.. RegAsm.exe Discovery.dll /tlb: Discovery.dll /codebase Now i want to know whether the assembly is registered or not using c++. I need because I have to check the registry for this dll if it is not registered I have to registered it programatically if it is registered then i simply skip it. so How can i know whether the assembly registered or not using c++... 回答1: Why do you need to bother at all?

Is it possible to integrate C++ code inside Wix Project

吃可爱长大的小学妹 提交于 2021-02-08 04:47:33
问题 Is it possible to include C++ code inside a Wix Project. For example either 1. Have C++ inside a file with extension ".wxs" (Wix source file) 2. Or Create ".cpp" file inside the Wix project and run it from Wix. ( I tried this, but Visual Studio doesn't allow me to create .cpp file in the project ... but only wxs & wsi files ) 回答1: No, you cannot directly include C++ Code/File in WIX project. You can write your own C++ Custom Action and then call it from your wix project. NOTE You should not

BitBlt a bitmap onto a splash screen

£可爱£侵袭症+ 提交于 2021-02-08 03:34:45
问题 I am working on a splash screen for a simple Direct3D game and although the screen itself is created and destroyed properly, the BITMAP meant to be projected onto the splash screen isn't showing up. I have this so far: //variable declarations HWND splashWindow = NULL; BITMAP bm; //window procedure LRESULT WINAPI SplashProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg ) { case WM_DESTROY: PostQuitMessage(0); return 0; case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint

BitBlt a bitmap onto a splash screen

帅比萌擦擦* 提交于 2021-02-08 03:32:15
问题 I am working on a splash screen for a simple Direct3D game and although the screen itself is created and destroyed properly, the BITMAP meant to be projected onto the splash screen isn't showing up. I have this so far: //variable declarations HWND splashWindow = NULL; BITMAP bm; //window procedure LRESULT WINAPI SplashProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg ) { case WM_DESTROY: PostQuitMessage(0); return 0; case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint

Microsoft Visual C++ 10.0 required to install Python package in virtualenv

℡╲_俬逩灬. 提交于 2021-02-08 02:06:13
问题 I was trying to install the bokeh Python package via pip but I was thrown this error: error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). I fixed that error by installing Microsoft Visual C+ and installed successfully after that. However, now I want to install bokeh inside my virtual environment which I created with virtualenv. My intent is to build a Flask app. I got the same error again, but this time I have no idea what to do. Any help would be greatly appreciated.

How to set MSVC Target Platform Version with CMake?

杀马特。学长 韩版系。学妹 提交于 2021-02-07 20:31:51
问题 I'm searching for way to set Target Platform Version of MSVC project generated with CMake. I found the following ticket in CMake issue tracker which is now closed. I'm with latest 3.9.1 version of CMake . But the solution described there seems to not work. I tried set (CMAKE_SYSTEM_VERSION 8.1) in my CMakeLists.txt . How to set Terget Platform Version when using CMake? Afterwords: Now I checked that setting CMAKE_SYSTEM_VERSION from command line when generating solution works but I want if

How to set MSVC Target Platform Version with CMake?

北战南征 提交于 2021-02-07 20:30:55
问题 I'm searching for way to set Target Platform Version of MSVC project generated with CMake. I found the following ticket in CMake issue tracker which is now closed. I'm with latest 3.9.1 version of CMake . But the solution described there seems to not work. I tried set (CMAKE_SYSTEM_VERSION 8.1) in my CMakeLists.txt . How to set Terget Platform Version when using CMake? Afterwords: Now I checked that setting CMAKE_SYSTEM_VERSION from command line when generating solution works but I want if