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

[closed] Trying to use Thread pool api in a Class

I'm trying to handle thread pool in a class. below is my code.#include <Windows.h> class ClassA { public : // user API ClassA() { } ~ClassA() { } public : //my muiti-thread func void init() {...

View Article


Modal dialog box hangs with multiple keyboard languages in Window 7

My VC++ application is a multi-thread .Threads within the application communicate with each other using SendMessage() .Inside Thread 2 :SendMessage(WM_OPEN_FILE)Inside Thread 1:...

View Article


CryptoAPI key permissions

Hi, I'm doing some studies on CryptoAPI. When I create session keys (with or CryptoGenKey DeriveKey) I can set (function CryptSetKeyParam) and get (function CryptGetKeyParams) the parameters of the...

View Article

count # of characters in a line of a .txt file while excluding some characters

I have a .txt file1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1...

View Article

Graphing Points through a textbox in Chart Control

Hi! private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { double^ XValue; double^ YValue; chart1->Series->Add("Series1"); chart1->Series["Series1"]->Color =...

View Article


Events with event data

I want to send extra datas to  an event.my code is Linklabel^ll = gcnew Linklabel();ll->Click += gcnew EventHandler(this,&Form1::myevent);// ll is a link labelmy event isvoid myevent(Object^...

View Article

How to set the default platform toolset

I'm in the process of migrating projects from visual studio 2010 to 2012 and having a problem with the platform toolset setting.Each of my projects (all 170 of them) have got explicit setting of...

View Article

CryptoAPI setting initial hash value

I have a requirement to hash some data using MD5.  What I am needing the the ability to set the initial value of the MD5 has prior to the first CryptHashData call. This should be a simple process but I...

View Article


How can I add a spin control to a ribbonbar

Hi, I'm using a ribbon style application and I can't seem to find a way to add a spin control to my ribbonbar. In the list of controls of my toolbox there seems to be a spinEdit control but when I add...

View Article


Micro Controllers & Development Boards

To whom it may concern,I have a question about micro controller & development boards like Arduino, Raspberry, BeagleBone black, CubieBoard and so on.Is it possible to run & compile the codes on...

View Article

error LNK1104: cannot open file 'ÿþ/.exe on Visual Studio Express 2012

I know there are several similar posts but few are being answered, and the solutions i found doesnt work for me.This problem only started after i repaired windows. I was using Visual Studio Express...

View Article

What is the safe and proper way to read a registry key?

I tried running code that worked fine on Server 2003 before, to run on Server 2008.DWORD result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\MyPath\\MyKey", 0, KEY_READ, &key);return 2.I read up...

View Article

out parameters vc++

Hi I am beginner in vc++; i have stored procedure/****** Object: Stored Procedure dbo.CheckForOrders Script Date: 2/21/2005 10:51:22 PM ******/ CREATE PROCEDURE CheckForOrders @DBNo int, @LocaleNo int,...

View Article


Struct member alignment when deriving a class from an MFC class

Is it possible to change the struct member alignment of a class which derives from an MFC class ? How is this resolved by the compiler, since the base class's member variables are aligned differently...

View Article

Visual Studio/C++ 2010 SP1 and NO_DEPENDENCIES tag in headers files not working

Hello, We make use of the //{{NO_DEPENDENCIES}} tag in some of our headers to avoid large rebuilds in incremental builds. This tag was broken in the initial release of Visual Studio 2010 (as...

View Article


Directx and Surface Pro.

Hello, I've recently acquired a Surface Pro and I'd like it to be an "experimental development environment" for the mean time. Since I'm a University Student I've acquired a free copy of visual studio...

View Article

Why warning C4279 happens?

Hi,I met the warning C4279 recently. The warning looks like;warning C4279: 'value': identifier in type library 'msxml6.dll' is a keyword; use the 'rename' qualifierI have read the MSDN from below...

View Article


Print Job notifications on remote printer (runs as service)

Hello!I want to monitor print jobs on remote (shared) printers from service. I have impersonation access token for user who connects printer (e.g. \\PC-PRINTER\Canon Printer).After impersonation as the...

View Article

The Scope of the CLI Enum Type

I was going through topic - "Translation Guide: Moving Your Programs from Managed Extensions for C++ to C++/CLI".But do not understand sub topic - "The Scope of the CLI Enum Type" because we can not...

View Article

Advantages and disadvantages of desktop Window Manager

Can anybody explain me the advantages and disadvantages of desktop Window Manager, any link or information?

View Article
Browsing all 15302 articles
Browse latest View live


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