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

how to get shutdown notification

I want to know how come my application get notified for shutdown/log-off event but it does not have UI, so I think WM_ENDSESSION may not work please confirm.I have also tried SetConsoleCtrlHandler but...

View Article


The meaning of the " istringstream is" statement ?

An open source code, use the following loop to the user input:while (token != "quit") { if(!getinline(cin,string X)) string x="quit"; //code for user input.. istringstream is(string X); //go code in...

View Article


Direct3D. Something wrong with texture sampling in pixel shader on ARM device.

Hi!I'm working on ARM version of my project. Project uses pixel shaders for image processing. x86 version and x64 renders everything correctly but when using the same shaders on ARM version causes...

View Article

When are the November 2012 CTP features going to be available in an official...

I saw an answer at one point I believe at Brian Harry's blog (link blocked), but I think it has since been redacted (this was listed as the answer to a similar question (link blocked) asked 2 months...

View Article

UI fonts

Hello, how do I get a handle to the default UI font of windows 7 or 8? GetStockObject () is not advisable according to msdn. 

View Article


Detecting user of a network connection

Hi AllHow can we detect the windows user from whom a network connection(web request) is originated if there are multiple users logged on at same time. I want to get the user information in user level...

View Article

Things need to care while setting WS_CLIPCHILDREN

What are the main things when WS_CLIPCHILDREN is added to a control. Try below sample1. Create a dialog based application and set dialog border resizing.2. Handle WM_SIZE message with below code...

View Article

Record an audio file; USB AUDIO CODEC

Hello, I am trying to write an api to record  & play audio files to an usb audio codec. I've been able to play a file using PlaySound(). Is there an equivalent function to record? If there isn´t do...

View Article


Solution for Linker warning in Visual Studio 2010

I am developing a Visual C++ Win32 Console Application in Visual Studio 2010. When I build the project I get the following warning: warning LNK4067: ambiguous entry point; selected...

View Article


App does nos start.... on customers computers

Hi,I have a software developed with VS2010 (64 bits). This one run fine on my computer and on another development machine.But once I start it on a customer machine... nothing happend !!!!!!It seems...

View Article

using c library functions in a .cpp file

In my application, I use many c library functions. And the main source file is a .cpp file. what are the things I need to consider these type of approach? the application works fine but I want to make...

View Article

Convert Regular dll to extension dll

Hi allHow do convert extension dll to regular dll ?I have found many the way to implement this problem but I can not resolvedCan the member of forum help me ?Damme88

View Article

VB6 exe calling VC++ Windows forms application

I should make VC++ Windows Forms Application and VB6 program(exe file) will call it passing some parameters, for example, gain(integer), offset(integer), min(integer), max(integer).VC++ WFA should run...

View Article


C++/Net SerialPort->Read losing bytes

 Working in VS2008 C++/NET.I have a SerialPort (spSIE) from which I am reading data at 921600 baud.  I have the following code:private: System::Void spSIE_DataReceived(...) { array<unsigned...

View Article

read specific parts of a .txt file with ifstream

void scene::sceneplay( string text_file_name ) { //Render the text string line; ifstream myfile ( text_file_name.c_str() ); if ( myfile.is_open() && rendered_text == false ) { while (...

View Article


Class design

I'm making a device interface program using Windows Forms Application.User interface is simple, have one [cancel] button and one Label.1. Other VB6 program invoke this VC++ execution program. 2. VC++...

View Article

VS2012 C++ debugger does not show the correct line of code which caused...

I recently moved a large C++ project from VS2005/XP to VS2012/Win7. Lots of great new stuff, but there is one problem with the VS2012 debugger that is not only very annoying, but also very...

View Article


Issues with RasGetProjectionInfo

I am trying to setup a VPN connection programmatically. Everything works fine in XP/Vista/7 but in one particular situation, it fails under Windows 8.In my code, I check if a given Ras entry exists. If...

View Article

CMFCPropertyGridCtrl not being painted in "Release" mode

In a C++ MFC feature pack UI solution (using the Visual Studio style UI template), my CMFCPropertyGridCtrl "properties" style pane in the CDockablePane is not being painted in "Release" mode only i.e....

View Article

Issue with hiding an App

Hello  All,              Had installed an application named as App1 on my window 7 64 bit machine with admin privileges. Now i have another Application named as App2 through which i am using...

View Article
Browsing all 15302 articles
Browse latest View live


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