Quantcast
Browsing all 15302 articles
Browse latest View live

Changing variable and calling in another function

Hi,I can't figure out why the function "dth_ben_defn_used" is not returning a 1, here is my codeI am resetting the value to "ul->dth_ben_defn" to "SPECIFIED_AMOUNT". But the variable...

View Article


The value of lpDrawItemStruct->rcItem.top in DrawItem of custom List control...

Steps-1. Create an owner draw ListCtrl dervied from MFC CListCtrl.2. Set any Extended style which must use LVM_SETEXTENDEDLISTVIEWSTYLE message.3. Override DrawItem and print the value of...

View Article


If I take too many screenshots the pics get black

VOID BitmapDemo (HWND hwnd) { HDC hDC, // Handle to the display device context hDCMem; // Handle to the memory device context HBITMAP hBitmap, // Handle to the new bitmap hOldBitmap; // Handle to the...

View Article

How to change the background of a TabControl created by CContained Window

Hi I have a host window. on top of that host window i create an tab control. this is done by calling Create function. for example Class A : public CComObjectRootEx<CComMultiThreadModel>,...

View Article

How to load an OpenCV Mat image object into Visual C++ Label?

How can I set an opencv Mat image object into a C++/CLI label? I have tried the following.     Mat image = imread("C:/Users/Public/Pictures/Sample Pictures/Desert.jpg");...

View Article


How to read string re-direction from file

 HiI am reading redirected string from registry using RegLoadMUIString APIFor example @%SystemRoot%\System32\intl.cpl,-1 usingI want to read other string like @%SystemRoot%\System32\intl.cpl,-2 ,...

View Article

Converting PCWSTR to PCSTR

HiI'm trying to convert a PCWSTR to a PCSTR.  MSDN says that PCWSTR is the same data type of LPCWSTR, dito for PCSTR and...

View Article

Visual Studio 2010 Controls for Form Apps??

Are Visual Studio 2010 Controls given to developers??If yes, where can I find them??The first 2 words written by beginners "Hello, World". #include<brain.h> :)

View Article


Image may be NSFW.
Clik here to view.

Web Authentication using IWebBrowser2 and IWinHttpRequest interfaces in VC++

I have obtained valid session ID using IWebBrowser2 interface. Using this session ID I wish to download resources (*.jar files) from web server. However downloading resources using IWebBrowser2 pops up...

View Article


Bug with Animation Control

Good afternoon.I have a bug with the Animate Control, when i use :m_Animate.Open("search.avi");m_Animate.Play(0, -1, -1);i use a Sleep(500); in my program,with the multi byte character set, the video...

View Article

difference between & and * operator...

I have a basic question. I have a classex.class A { int n;}and these overloaded functions 1.function(A a) 2.function(A* a) 3.function(A& a)what is the difference between 2 and 3?

View Article

bar codes and qr codes

OK a couple of ideas come to mind, first is to print or display a barcode and/or QR code then how about reading the barcode and/or QR codeLaser readers are less expensive now that they are being mass...

View Article

Providing Plugin Support for an Application

How do I make my application to have plugin support??I have planed a nice set of functions to provide to plugin developers.How do I implement it??Plugins in DLLs possible??How do I load the...

View Article


Image may be NSFW.
Clik here to view.

Suppress download dialog that appears using IWebBrowser2 interface

I am trying to download resources from web server using IWebBrowser2 interface. API Navigate2 is used to download resources. However as soon as the download begins I get a prompt as shown in...

View Article

C++ and ODBC

Since I can't find a forum about ODBC, I'll post it here because C++ can be used to communicate with ODBC. I just have a question: What is the future of ODBC in Windows? Is there gonna be a new and...

View Article


Handle is Valid but is a very small value.

I am successfully getting a handle to a USB Keyboard device, but the actual handle value I get doesn't look right to me. The value is typically like this: 0x0000009a. Also, subsequent use of this...

View Article

Creating Custom Controls in a dialog control

hi all;I'm using vs2005 for my mfc application;i just trying to add my own custom control in place of custom control space provided in dialog box; i want to add  a couple of ownerdraw buttons, edit...

View Article


how can i send and recieve of frame in Visual c++ ?

Dear MSDNHow can i send and recieve of frame in Visual c++ ?

View Article

Reliable way to kill a Dialog Based Application

I have a dialog based application that sends keystrokes to another application. I want to be able to kill the execution of this keystroke sending function very easily. In the ideal case I think that I...

View Article

Picture Control changed visibility after changed focus

Here I am working on MFC dialogue based application,in which there are multiple child dialogues added in tab control;In one child dialogue there are multiple picture controls and I changed bitmap image...

View Article
Browsing all 15302 articles
Browse latest View live


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