How to avoid list control from getting 3D color when control is disabled.
Trying to paint list control when it is disabled. And this list control is placed in a form.Tried using:Onctlcolor, Ctlcolor, DrawItem, SetBkColor I see that these functions will never be called in...
View Articlex64 C++ DLL called from x64 Managed Code Problem
I have a x64-bit managed project that calls into an x64 bit C++ DLL. This worked good in Visual Studio 2010. However if I upgrade the C++ project to Visual Studio 2012 I can no longer call the x64-bit...
View ArticleApplication using SQL
My application creates and uses some databases in SQL. I have SQL in my computer and it works fine in my computer, but will it work on another computer which dosen't have SQL
View ArticleStrange side effect with std::string when using std::thread
HelloThe code line with the console output in the following code block has a very strang side effect: it overwrites the local object m_t. Without the text output it is running without any problems. The...
View ArticleHow to use const TCHAR[] in GetItem() function of ADO recordSet?
Hi,I have a constant defined as below in one header file.const TCHAR FieldName[] = _T("[SomeID]");I am using ADO RecordSetPtr to get the value from the above said filed using VC++ (VS...
View ArticleHow to importe solution from VSC++ 6.0 into VSC++ 2010
Hi all,I did import a solution (workspace) from Visual Studio C++ 6.0 into a solution of VSC++ 2010. After fixing some problem of refernce and converting also all project (dsp files) to 2010....
View ArticleSpeach marks in CEditView
Hi,I am new to C++. I have created a multi-document MFC application, using CEditView. When I use speech marks ("), within CEditView, and open the same file in notepad; the speech marks are two...
View ArticleCControlBar problem fron VS2003 to VS2010
I am working on an MFC application which built with VS2003 and I am trying to migrate it to VS2010. I was able to build the application without changing any of the code, but when I try to run the new...
View ArticleCatalogue files in a folder
HiI'm after advice on the best way to catalogue the files in a large folder inc subfolders.I can search for the extensions I'm interested in [ 16 of them ] and list the files no problem. My issue is...
View ArticleHow put a PrintDialog into a TabControl?
Hi, I want to put a PrintDialog into a tabcontrol. But I find the PrintDialog mustn't be child.If I make PrintDialog's systle child, it won't show.Sorry for my poor english.Regards!
View ArticleIs there any way to creat static splitter windows again in the static...
Hi,everyone:In my program,I wanna creat static splitter views again in the static splitter window of a CSplitterWndEx.For example, I creat 2x2 windows in mainFrm , in each window, I creat 2x2...
View ArticleIn a jam tring to use the DirectoryInfo class
Hi,I'm getting back into C++ coding after a few years doing something else, and I'm trying to use the DirectoryInfo class, but I'm getting the following error: error c2065: 'DirectoryInfo' :...
View ArticleHow Can i turn off screen touch in Win 8?
Is there anyway to disable touch and use the pen as input only in windows 8?I tried to use RegisterPointerInputTarget to implement(win32 app) it . it alway return ERROR_ACCESS_DENIED.BOOL...
View ArticleSetScrollRange vs. SetScrollInfo
Right now I do things likeSetScrollRange (hwnd, SB_VERT, 0, activelist.size()-15)*rowheight, FALSE);the activelist container is simply textI noticed the MSDN manual is now suggesting using...
View ArticleHow to work with credentials providers?
Hi,I am working on windows credential providers and i have problem in accessing the credential providers.I took following fields n that are textbox for user name, textbox for password and combobox for...
View ArticleEfficacy to describe/ classify a Default Printer (conventional or otherwise)...
Hi,The query is generic on Printers classified as default printer from context menu of Start (option) ->Printers and Devices -> ABC Printer1. my assumption in any Windows desktop application we...
View ArticleDo C++/CLI and CLR really support abstract value types?
Hi,I was implementing a static class in C++/CLI, something likepublic ref struct Thing sealed abstract { public: static void SomeFunction() {} };Then, I got a strange idea and changed the "ref struct"...
View Articlewindows 8 credential provider
Hi, i am working for windows 8 wrapped credential provider .i did every thing in document which is provided by Microsoft .i implemented ICredentialProviderCredential2 interface with...
View ArticleMS Chart Control with VC++ 2008
Hello all,I would like to create an application that can display some charts and I would like to try out the MS Chart Controls. I have installed all the packages according to the instructions on the...
View ArticleMFC code GetWindowLongPtr(hDlg, DWLP_USER) on Windows Server 2012
Hello,The following line works on all other windows platforms. However, it fails on Windows Server 2012. In debug, the members of structure shows cxx0030:error: expression cannot be evaluated.pUiData =...
View Article