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 ArticleHow 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 Articlereading 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 ArticleCView 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 Articlestd::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 ArticleaxWindowsMediaPlayer1->mediaCollection-> go through all playlist items
hello, i have a very simple question. i have playlist createdaxWindowsMediaPlayer1->mediaCollection->add(folderBrowserDialog1->SelectedPath+"\\"+fiArr[i]);...
View ArticleCPaneDialog 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 ArticleC++ - 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 ArticleTSE 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 Articleunordered_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 Articleserious 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 ArticleCalling 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 ArticleVisual 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 ArticleWCHAR, 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 ArticleHow 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 Articlehow 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 Articlehow 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 ArticleCan 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 ArticleMDI 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 Articlehow 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