why visual c truncate int64 value in initializing ?
hi all can you tell me how to represent 64 bit constants ? i try to compile with warning level 4 and i get this warningswarning C4309: 'initializing' : truncation of constant valuewarning C4305:...
View ArticleCArray::SetSize() throwing exception
Hi all,I am using CArray in my MFC application. Before adding items in CArray I am calling SetSize(). If my new size is greater than 61ooo then it is not giving me memory, otherwise it is working fine...
View ArticleUsing ChangeDisplaySettingsEx
Detaching the monitor work with this but im facing a problem after the monitor is detached. I don't see it anymore in the windows screen resolution dialog , everytime the monitor detached is hidden...
View ArticleHow identify specific control in OnCtlColor() and how set colors for...
I have two related OnCtlColor() questions:1. How do I identify a specific control? I want to change the colors of just one control. I have tried checking pWnd->GetDlgCtrlID() == ID_MAIN_ORGNAME but...
View ArticleEnumFontFamiliesEx() not working correctly
I just need the exact set of fonts and font styles that show up in Notepad. I am pretty sure that this is also the exact same set that shows up in CFontDialog. Apparently it is not quite possible to...
View ArticlePgDn key in a ListView
Hi all,I am developing in Native C++ in a Win32 API environment using Visual Studio 2008. I have a ListView with (say) 20 items and seven items per page. If the cursor is on item 0, and the PgDn key is...
View ArticleOffice 2010 web components
Hello, I'm a C++/MFC developer.My company's MFC application works with Office 2003 web componentsThe application uses mainly the Excel componentsWe were upgrading our Office system from 2003 to 2010...
View ArticleSince Visual C++ 2013: D8050 error appears when executing "cl.exe".
Since Visual C++ 2013 the compiler didn't work when startet from our Antmake Build Environment. This error appears:"cl : Command line error D8050 : cannot execute 'D:\...": failed to get command line...
View ArticleProblems compiling with Microsoft Visual C++ 2010 Express
HiI am programming C Win Api in Windows 7 using Microsoft Visual C++ 2010 Express. However, more and more often I get the following error: 1>LINK : fatal error LNK1168: cannot open C:\User etc. I...
View ArticleVARIANT_BOOL and BOOL
Hi, I wonder what is the difference between VARIANT_BOOL and BOOL, in specific, can I use the following code:bool CMyDlg::LoadResultXML(CString strXMLPathName) { HRESULT hr =...
View ArticleXML file failed to load
Hi, I am trying to load XML files using MSXML as follows:void CMyDlg::OnBnClickedTrainingFileButton() { // TODO: Add your control notification handler code here // Create an CFileDialog instance...
View ArticleHow do I attach an image to a post? ( wrong?)
An explanation from another post. The <> is wrong. The rightmost icon seems right. I got this. HmmmPress the <> button at the bottom of the reply window then type in <img...
View ArticleNothing really exceptional is happening here
I took this example from B.Stroustrup new book "TCPL", pages 115 and 116.#include <iostream> #include <thread> void f() { std::cout << "Hello "; } struct F { void operator()() {...
View ArticleHow do I find my posts?
See Subject. Another question. When I post does the post continually move downward in the list?
View ArticleDebug Watch window will not display correct value of static pointers.
Hello, I'm ThomasTrying to debug my class. It has a static int pointer which is assigned to in the constructor with "new" (it's a dynamically allocated array that all instances of the class require...
View ArticleHow to use OnCtlColor for edit box with selected text
I have an MFC app where I want a dialog box to color the background of the edit box of a combo box control. I implemented OnCtlColor to do so. I return my color brush and presto! My edit box has the...
View ArticleHow to run Visual C++ Express 2010 Window Form Application on another compute?
Hi AllI have visual c++ express 2010 on my desktop and made a small window forms application. I copied from the debug folder the exe file and took it to my laptop and put it on the desktop(laptop...
View ArticleWhere is Exception coming from?
I am receiving a NULL String exception. This happens only on x64/release build, not x64/debug build nor win32.This is caught by our own Catch (char* str) in the main program, so this could have been...
View ArticleDeployment Issues on Computers with Chrome/Firefox Browsers
Our company produces products which are distributed to our customers as MSI files. The TARGETDIR is set to the [ProgramFilesFolder][Manufacturer] (or [ProgramFiles64Folder][Manufacturer]) in the File...
View ArticleVisual C++ IDE Basics
Is there a solid manual or tutorial for Visual C++? I'm not talking about learning C++. I use it with another non-MS C++.The only thing that comes close to explaining how the IDE works is...
View Article