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

import tga custom resource fails

Hi,Using VS2013 C++ project. In Resource View, right-click select Add Resource. Click Import, select All Files. Select tahoma_16.tga, click on Open. I get an error box that says "Cannot load file." The...

View Article


How to set Focus to ScrollBar always?

Hi,I have default scrollbar on the form(Basically form derived from Cdialog) but form has lot of widgets(Controls).When i click empty area of the from i want to set focus to scroll bar so that when...

View Article


reading a bit sql column value using crecordset

Hi all, I'm using Visual Studio 2010 to write some vc++ code. There is some code that I had written and its not working. I'v a method that reads string values from the crecordset just fine, but then I...

View Article

CView OnUpdate behaviour

I have an MDI app. In CChildFrame I have an CPaneDialog from where I want to update the view, like that:void CChildFrame::OnBnClickedButtonUpdate() { // TODO: Add your control notification handler code...

View Article

std::getline and wfstream

std::wfstream f; f.open( L"file.txt", std::ios::in); //error: no matching function for call to 'std::basic_fstream<wchar_t>::open(const wchar_t*, std::ios_base::openmode&)'My compiler is...

View Article


axWindowsMediaPlayer1->mediaCollection-> go through all playlist items

hello, i have a very simple question. i have playlist createdaxWindowsMediaPlayer1->mediaCollection->add(folderBrowserDialog1->SelectedPath+"\\"+fiArr[i]);...

View Article

CPaneDialog to CChildFrame

Is it posible to add CPaneDialog on CChildFrame ? How ?This post is related by this one, I found this workaround to have an dialog to CChildFrame ...

View Article

C++ - Change webcam focus/exposure/rotation.

Hi, how do I change a webcam's focus/exposure/rotation using C++ (provided the webcam supports it). Thanks. :D

View Article


TSE screensaver

Hi,I need to replace WINDOWS screensaver by my own application screensaver.I need, for medical security, to replace the Windows connexion banner by my own after screensaver launch.My app change the...

View Article


unordered_map miss complexity

Good day,we know that search in std::unordered_map has constant or linear complexity whether the key is found or not.here are my questions:1. What is the complexity of unordered_map::find if the key is...

View Article

serious bug: Difference b/w Floating Point Precision in visual c++ 6.0 and...

Here i face a problem that when i am reading a floating point values from a text file (ex: 123.123567) it is reading as 123.12345670000001 like this.I declared variable as :              double a,b,c;...

View Article

Calling a dotNet-based dll from MFC client code

Hello everyone!I just started using the Managed C++ (Windows7/32 bit, Visual Studio 2012). My task was to rewrite a dll to make it dotNet-based, but still callable from my legacy C++/MFC application....

View Article

Visual Studio 14 CTP (Community Technology Preview)

Visual Studio “14” CTPImprovements for Visual C++http://blogs.msdn.com/b/vcblog/archive/2014/06/03/visual-studio-14-ctp.aspxThe Visual Studio BlogVisual Studio “14” CTP now...

View Article


WCHAR, wstring, declaring and getting access

Visual Studio 2008, C++Class C_AR2_Messages processes the data and class C_Configuration_Manager reads a configuration file and performs the setup.  The configuration manager must access data within...

View Article

How to pass address of member function as parameter

Help please,I have created this bit of code to illustrate my problem. I wish to pass the address of a member function as a parameter in the constructor of another class. In my example, I don't want X...

View Article


how do i send mail by winsocket?

hi there,i just very unfamiliar with MFC,but i search a code that from tutorial of MFC that teach me use the winsocket to send email,but i failed,i alway create the socket failed,i just try to build a...

View Article

how to call form2

i created a CLR win form application. i have add new item win form name form2. in form1 there is a button named button1.in win form form2, there is a text box whose text is "hello world" i want to...

View Article


Can I change a variable defined as static const?

I have a variable defined as static const CSomeClass g_SomeAttribute[] = { ... };Can I change the values of g_SomeAttribute during run-time or am I stuck with what I have defined?Ryan

View Article

MDI Feature Pack Tab display speed

With the same logic, when I switch between old MDI and tab display, I observe a major speed performance.  In my sample test program, I created 25, 50, 75, &100 MDI windows.  As more MDI windows are...

View Article

how to dynamically add popup menu as menu item under FILE

In my menu, the default menu items under FILE are:File                Edit  View   -> New   -> Open    ...etc...I want to programmatically/dynamically add a pop menu as a menu item under...

View Article
Browsing all 15302 articles
Browse latest View live


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