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

MDI OpenGL Flicker

I would like to get rid of the flicker that seems to be caused by Windows Aero.  I have a sample project so that everyone who attempts to solve this problem can see exactly what I'm seeing.  You can...

View Article


COM/ATL Registries in 64 bit maching with VS2005 Driving Me Insane

ok, after few days and tons of online research I am ready to post my question:I am studying COM/ATL from a book written in 2000 using VC 6.0. This is the second readfor me on this book and this time...

View Article


RegisterDeviceNotification Returns 0x42A (ERROR_SERVICE_SPECIFIC_ERROR)

So I'm trying to create an empty Window in a DLL and use it to receive device notifications, however, when I try to register for device notifications, the notification handle is NULL and GetLastError...

View Article

Uisng Windows MFC class in windows console application

Hi,I am using visual studio 2005. i am developing a windows console appliation. i added new classes that use MFC to my application. in order to compile i had to add mfc in shared dll. when i tred to...

View Article

How to Update a text box froma serial data recieved event handler

I've written a piece of code (Visual C++)to read from the serial port and update the text box. But the update wont work. The following does not seem to work! How do I fix it?...

View Article


Issues building with multi-processing (/Mp) enabled in upgraded C++ project

Hi,I'm in the process of upgrading a large MFC/C++ project from Visual Studio 2005 to Visual Studio 2012.  After completing the upgrade process I'm noticing that builds take about twice as long to...

View Article

Screen shot

I am trying to capture an image using screengrabber{     // Capture the window to a bitmap.        COXScreenGrabber ScreenGrabber;                CWnd m_wndMDIClient;...

View Article

mciSendString

I am an amateur and have been studying Visual C++ for a few months.  I have Visual Studio 2010 Express.  I have written a programme (Form) which needs sound.  First version used Windows Media Player...

View Article


SDL - double-size a surface's pixels?

I am looking for a way to double-size (which actually means quadruple-size, I suppose), an image using SDL (SDL_Surface*). I have a surface which starts as 400x300, but I'd like to display it to the...

View Article


windows can not show a dialog, it looks like GDI error

I write one app with VS2012 in windows 7, if the app runs over than 1 day, now just click a button to show a simple dialog, it becomes very slowly, it shows the window after more than 30 seconds. But...

View Article

MSflexgrid vc++2010

I am using VC++ 2010 and have inserted a Flexgrid,I want to recieve serial data in one of the columns of flexgrid.please provide with a code ,as how to establish a serial communication and read data in...

View Article

How to remove the top and bottom arrow on a scroll bar

Hi all,How to remove the top/bottom left/right arrow on a scroll bar ?I would like to remove the scroll bar top/bottom arrows on controls like listbox, treectrl, ListCtrl, etcThank You.MCunhaMCunha

View Article

why doesn't ratio equal work?

* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and Reference, 2nd Edition" * by Nicolai M. Josuttis, Addison-Wesley, 2012 * * (C) Copyright Nicolai M....

View Article


why doesn't ratio equal work?

* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and Reference, 2nd Edition" * by Nicolai M. Josuttis, Addison-Wesley, 2012 * * (C) Copyright Nicolai M....

View Article

I need code for a basic window

I'm starting to build up my reference library and I was wondering if anybody could show me the code for making an empty window in C++ to put the program in.

View Article


need to call sqlfetch twice to get one set of records

I have legacy mfc project i am building in vs 2010; I have a stored proc which I  am assuming returns one set of records: there is only one select block that is actually executed; but when i run...

View Article

error C1190: managed targeted code requires a '/clr' option_

I'm trying to compile a legacy mfc application using /clr. I followed the steps outlined in  the link below, but i still get error C1190 even thought i have set it up to compile using /clr in the...

View Article


/clr:oldSyntax to /clr conversion

Hi I was converting VC++ project from Common Language Runtime Support, Old Syntax (/clr:oldSyntax) to Common Language Runtime Support (/clr). 1) I got an error saying "error C3699: '*' : cannot use...

View Article

Issue with producing fFeatures of 2194 for safearray

I have another question which got clotted over here:...

View Article

how to get the intersection of two vectors

Hi, all, I have two vectors and I wonder how to get the intersection of them, in case they have some common members. My code is like the following:struct Styles{ wstring styleVal; wstring styleName; };...

View Article
Browsing all 15302 articles
Browse latest View live


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