Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

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 Article


Encoding.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 Article


How 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 Article

Cannot 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 Article

Can'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 Article


Registering 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 Article

Visual 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 Article

Problem 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 Article


Image may be NSFW.
Clik here to view.

DLL 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 Article


NMAKE 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 Article

Changing 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 Article

Is 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 Article

Can 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 Article


how 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 Article

How 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 Article


Encountered 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 Article

Image may be NSFW.
Clik here to view.

Complie 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 Article


Ribbon 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 Article

LoadTypeLibEx 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 Article

HMONITOR 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
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>