Access template class parameter from lambda
I'm writing a simple universal pool. The template class takes a parameter in the constructor that is a factory function to instantiate objects in the pool as neededtemplate <typename T> class...
View ArticleEncoding.Unicode.GetString In VC++ without using CLI
Hello everyone,Is there any samples of converting bytes to char*/String in C++?Just like the function "Encoding.Unicode.GetString(bytes)" in C#, however, i want to have this function in c++(Note: I...
View ArticleHow to include other application inside my application view/frame
Hi,I'm currently developing my application using Visual Studio C++ 2010.Is it possible to launch other applications and display it in my application view/frame (include other application inside my...
View ArticleCannot Find Samples
I would like to find the sample "WMPHost" referred to in the documentation "For a complete sample that illustrates how to host the Windows Media Player ActiveX control by using theCAxWindow class, see...
View ArticleCan't get line numbers on Visual Studio 2010
I have recently upgraded to VS2010 and followed instructions to show line numbers in code with no luck. Tools/options/text editor/Then I don't have a languages choice. Only VB and HTML although I'm...
View ArticleRegistering a COM class object with CLSCTX_LOCAL_SERVER and getting this...
Hi,I am writing a COM dll, say First.dll which will load in a process, say First.exe. First.exe will call a method in First.dll, which will do the following:IUnknown *pUnk = NULL; MyClass obj = new...
View ArticleVisual C++ Runtime Error,VS2012
Hi, I am trying to load a graph. I am getting the following error message. I am upgrading my app from VS2005 to VS2012. I did n't get this error in vs2005. Am i missing something? Microsoft Visual...
View ArticleProblem building with a perl script line ,,,,
HiFor one of my files I have a custom build event:perl -ne "print if s/^(#define ID)C?(_)/\1H\2/" "%(FullPath)" >help\cshelp.hIt should be making a file cshelp.h but it is not working.
View ArticleDLL file is missing after successful BUILD
Hello everybodyI have a small problem and I would like to ask for some help.I inherited a small VS solution which has 2 sub-projects. The first sub-project should return an executable file and the...
View ArticleNMAKE file error during Linking in Visual Studio 2010
Hi ,I have been facing an error when i try to compile an application source code for debugging in Visual Studio 2010. Everything used to work fine in Visual Studio .NET 2003. But now when i try to...
View ArticleChanging the cursor to wait cursor
Hi All,My application is Client/Server based. In Client application, I have to change the cursor to wait cursor when the control enters into function1() till the execution of function 2() completes....
View ArticleIs enhanced C++ optimizaitons in VS2013 Update 2 RC a real story?
[File size is our concern]We are using gifsicle in a VS extension; Web Essentials (https://github.com/madskristensen/WebEssentials2013/).We tried compiling gifsicle (https://github.com/kohler/gifsicle)...
View ArticleCan I use NotifyChangeEventLog() to report changes in...
I am able to use NotifyChangeEventLog for application, system and service that are under windows logs. When ever there is a change in any of these event logs I am getting notification for that but...
View Articlehow to write logs for SQL Server.
hi i want to generate logs for sql server. i try implement event viewer logs from http://msdn.microsoft.com/en-us/library/aa394226(v=vs.85).aspx and it working properly..this logs only give logs which...
View ArticleHow do you dynamically change the font size at runtime in a ATL dialog?
I need to change the font size in my ATL dialog templates at runtime (so that the entire dialog gets rescaled). What is the best approach to do this? The only solution I've found in the forums does...
View ArticleEncountered an improper argument CMFCMenuButton and CMFCButton with image
Hello, We have customers that are experiencing the intermittent error message "Encountered an improper argument". The call stack for the CMFCMenuButton was CMFCMenuButton::OnKillFocus .. then...
View ArticleComplie with visual 2010
Hi,I write a program with visual 2012.and i now complie with visual 2010.I change "Platform toolset" to visual 2010(v100) and show the below error.Please help me.
View ArticleRibbon QAT shortcut keys for splitbutton
Using Visual Studio 2008For a splitbutton on the ribbon (i.e. the main button can execute a command, but also has a dropdown, for example, the Print button, where clicking does a Print, but it also has...
View ArticleLoadTypeLibEx is failing while running an application in session 0 (service...
Hi,In my Application, I am loading a type library as followsITypeLib *typelib = NULL;tlbpath = "some path"hr = LoadTypeLibEx(tlbpath ,REGKIND_REGISTER,&typelib);hr =...
View ArticleHMONITOR and Related definitions
I am trying to migrate a sample from the the SDK for Windows 7 to Visual Studio 2013. I successfully migrated it from Visual Studio 8 to Visual Studio 2012, but when opening the Visual Studio 2012...
View Article