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

program that converts a monetary value to paper bills and coins

Write a program that converts a monetary value to paper bills and coins. The user should be able to enter a floating  point value (e.g. 52.76) and the program should convert it to the minimum number of...

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


CPaneDialog inside CDockablePane question

I try to put 2 CPaneDialog inside CDockablePane (just like CFormView), but somehow, I don't see the splitter between 2 dialog panes.  Is anyone has any idea why?Here is sample code, that create 2...

View Article

error C2664: '_com_ptr_t::_com_ptr_t(int)' : cannot convert parameter 1 from...

Hi, I'm migrating a project from vs 6.0 to vs 2008, I get the following error, I am not able to fix this issue and I could not understand why this is throwing a bug in vs 2008 while the same is working...

View Article

Animation problem using double buffering

Hi, I am trying to animate a car in a graphic scene. It was working but now i have lost that code. When it runs a window starts developing from right bottom of screen and captures my entire background...

View Article


ATL OLEDB Cosumer Templates - caching of CDataSource and CSession

Hi,I have a native service on Azure and I'm using ATL for the DB connection.I have created a connection manager which basically creates and caches a DB connection for each thread (every connection is...

View Article

Image may be NSFW.
Clik here to view.

Synthesis STK tool kit unable to connect it with the linker

Hello i have problem with connecting stk libraies in linker so any one did it befor plz help me how to do it . and i imported the libraries  https://ccrma.stanford.edu/software/stk/

View Article

How to play a video (wmp) on a Win32 application (VS 2012)

I managed to play a video on a Windows Forms application (VS 2012). Is it possible playing a video on a Win32 application (via a dialog box maybe)? The reason I 'm asking is because I have already a...

View Article


WM_CTLCOLORSTATIC does not always work for a dialog created by an injected DLL

When I inject my DLL into one version of a Win 7 app, a dialog is created by my DLL.  For a control, whose background color I want to change, I can see with Spy that the dialog's window gets a...

View Article


Installshield professional for 2008

HiI am migrating my application from vc++6.0 to vc++2008When application was build in vc++6.0 successfully i created the package using intallshield professional for vc++6.Now my application is working...

View Article

Bug in Compiler?

I seem to have found a bug in the MS C++ 2010 compiler. It doesn't occur in the debug version, but does in the release version with or without theoptimizer turned on.Here is a short program that...

View Article

Creating a Desktop Game Using Current Technology

I currently operate a very small Video Game Studio out of my garage (well not really my garage but you get the picture).We would like to develop an Massively Multiplayer Online Game for DESKTOP release...

View Article

Should I check that a Port is open, before trying to connect?

Hello folks,I have an MFC application which among other things, will allow my Clients to pick up the latest application version via FTP.My question is should I query Port 21 to see if FTPing is really...

View Article


Linker errors in VS2010 after today's Windows updates

Yesterday everything was building file on my Windows 7 PC with Visual Studio 2010. Today I can't build anything after Windows automatically updated itself with some security fix.If I follow the Wizard...

View Article

error C2440: 'initializing' : cannot convert from 'int' to 'ATL::CStringT

Hello smart people! :-) I'm kind of new at using Visual Studio but I have code that I need to compile. I have knowledge that it had compiled fine in the older versions of VS but I haven't been able to...

View Article


How to Show XML content inside CRichEditCtrl

Hello All i have a XMl File for example .<XML><parent_First><First> Hello Parent First How are you </First></parent_First><parent_Second><Second> Hello Parent...

View Article

cl.exe failing with "application was unable to start correctly 0xc000007b"

just trying to run cl.exe from the command line and get this error.  I've run dependency walker on it, and if I'm interpreting the output correctly, I've got a 32-bit cl.exe trying to link to 64-bit...

View Article


MSVCR80.dll

I am having trouble getting my computer to start and have to run startup repair. Once I am in, I get a message that says:"APS Daemon.exe system errorMSVCR80.dll is not installed. Install now."how do I...

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

declaring a proper safearray OF VARIANTs (populating it with an array of bytes)?

I have the following code that I am trying to get working in c++:STDMETHODIMP CMMEmulator::sendinputreport(BYTE inputreport[5]) { // Step through the SAFEARRAY and populate each variant with a Byte...

View Article
Browsing all 15302 articles
Browse latest View live


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