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

Calling mouse_event() block on explorer.exe

Hi All,Am developing a remote access application, like teamviewer. Where i will be sending mouse events from client to server (executed at server using mouse_event() function). But for some reason...

View Article


Deleting a array of structures is throwing invalid pointer exeption.

I have a server code written in VC. In the destructor of a calss i am trying to delete a array, system is throwing a invalid pointer exception.This issue is seen in Linux only. The same code is...

View Article


Window Border Button and Contextmenus

Hello,I would like to know how I can change the Context Menu I get when I rightclick on the window border. Windows Media Player seems to have this functionallity. When you are in "Now Playing" mode and...

View Article

CL.exe error MSB6006 on VS2013

Hi,I'm writing a simple console application which use boost test and turtle library All the code is:#include "stdafx.h" #include "Logger.h" #include "SessionFactory.h" #include...

View Article

RegSetKeySecurity not giving correct results.

Hi All,I have a confusing issue.  When using the code below to create a registry key in HKLM and change it's permissions (I want to make it read/write for members of Users) it appears to work...

View Article


VS 2013 error LNK1104: cannot open file atlsd.lib

I'm trying to get a VS 2010 C++ ATL based dll to compile in VS 2013.  I'm getting the following link error: <o:p></o:p>error LNK1104: cannot open file atlsd.lib   I've not been able to find...

View Article

FILE Reading in MFC Dialog and Assigning to button control

Hello,I have created a DIALOG  based MFC and trying to assign the input values to the BUTTONlike01in input file and if input = 1 button colour should be GREENif input = 0 button colour should be REDI...

View Article

GetLogicalDriveStrings and GetDriveType under Windows 8.x

Hi all,GetLogicalDriveStrings and GetDriveType seem to be documented as supported under Windows 8.1 only when CsvFS or ReFS are present:...

View Article


better way to remove duplicated elements in a list

Hi,all, I am trying to remove duplicated elements in a list:list<list<CAdapt<MSXML2::IXMLDOMNodePtr>>> m_ltDataRecGroups;...

View Article


rvalue references. When do they extend the lifetime of temporaries?

I'm playing with prvalues, xvalues, etc... in this snippet.#include<iostream> class A { public: A() : i(1) {} int i; }; A prvalue() { return A(); } A&& xvalue() { return std::move(A()); }...

View Article

printf problem

this is my codewchar_t q[5];q[0] ='a'; q[1] = 'w'; q[2] = 363; q[3] ='z'; q[4] = 0; // Test-String containing a character > 255char p[100];// buffer big enough for everything// sprintfint cnt =...

View Article

fatal error LNK1181: cannot open input file abc.lib

Hi I am migrating my application from vc++6.0 to vc++2008In Google I got one of the suggestion for LNK1181 error.  By following this procedure :  Project properties->linker->general->link...

View Article

VS2013+SP1: OnDragEnter and OnDragOver never gets called in my CMFCTabCtrl...

Hello, I derived a class from CMFCTabCtrl and override the virtual functions OnDragEnter and OnDragOver to do some custom things, but they are never called. I looked / debugged into the implementation...

View Article


FTP Proxy Authentication

Hi Every one, I have a  mini project to download files from FTP server. Currently I'm using WinInet functions. I'm doing an enhancement to support ftp proxy and HTTP proxy with Authentication. As far...

View Article

Memory Leak in C++ STL library - Visual Studio 2005

There's something wrong with the ios_base class in Visual Studio 2005. I was debugging my program and I noticed a memory leak. Since I could not understand what was causing that leak, I've tried using...

View Article


.exe has stopped working.

Several applications I work on have begun to crash with the dreaded ".exe has stopped working" error under varying circumstances.Here is the situation.  These apps are over 20 years old and have been...

View Article

The build tools for v110_xp

I was trying to build the Wix.sln from Wix using the Visual Studio 2012 command prompt. I have typed Path\to\Windows_SDK\bin\dir\sn.exe" -Vr *,36e4ce08b8ecfb17 and after that I opened the project...

View Article


Visual C++ UAC Execution Level requireAdministrator not working

I am building my app with VC++ 2008 on Windows XP. I require my app to be run by users with adminstrator privilige. That is, every time users launch my app, a user level escalation approval dialog is...

View Article

Adding a tooltip in a MFC ActiveX application, in which class is derived from...

I have an activeX application, which is having multiple property pages(inherited fromCPropertyPage)..How to enable tooltips for a control available in the property pages? 

View Article

Toolbar alignment in MFC

Hi, am new to MFC development, Learning the basics, i just create a sample mfc application containing 8 toolbars, i want to appear them as followsT1-T2-T3-T4T5-T6-T7-T8 but they always appear as...

View Article
Browsing all 15302 articles
Browse latest View live


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