Tips on Posting Good Questions – dead link
This is neither a question nor a discussion, just a note that the link in the posting Tips on Posting Good Questions appears dead. I would have replied directly to that posting but the forum system...
View ArticleCannot open include file: 'winapifamily.h': No such file or directory
I am just setting my my environment to build an existing project. We are using VisualStudio2010 + WDK 8.0. After installing both ( in that order ) and trying to build the project, I get that error...
View Articlechar * and CString only become True or False?
Hello!I am pretty new to C++. Right now I am trying to write a program (CLR-Console) that reads out codes from transponder-cards. There is a demo-program with source code. While I managed to include...
View ArticleHas anybody been able to make the "View Call Hierarchy" feature work in C/C++...
The "View Call Hierarchy" feature works perfectly in C# projects but it doesn't work at all in C/C++ projects.Regardless of what function name I right click on, I invariably get the error message:"A...
View ArticleWill debug version of static lib disclose source code info?
Hi,I am writing a C++ static library with Visual C++ 2008 and will sell it to developers. I find it is necessary to provide two versions for the static library, that is, release version and debug...
View ArticleHow to create MFC applications that do not have a menu bar in Visual C++
I would like to remove the menu bar from an MFC SDI application created with the app wizard. I found a Microsoft support page with the exact title of this post which was also article Q131368. This...
View ArticleC access violation when using scanf_s() to fill a Set value
Hi there, I have an assignemt to implemet Union(), Intersect() and Devision() of sets of strings in C. As I understand it's going to be something like equivalent of HashSet<T> class in C#. At...
View ArticleCOleDateTime crash on a call to Format - using a valid time - no exception...
If we use a COleDateTime (say, freshly instantiated) and we call the Format method, something very ugly happens:There is a crash, but no exception is being thrown. In the windows event log, the...
View ArticleX64 exceptions and assembly coding
I've been writing windows programs for about 12 years now, as a hobby. I enjoy writing assembler code to mix in with my c++ code. I know that most of the time, the compiler will probably generate...
View ArticleWhy does 64-bit MASM not accept an entry point address on the END directive?
In 32-bit MASM, the END directive optionally allows us to set the entry point by specifying an address ( http://msdn.microsoft.com/en-us/library/vstudio/wxy1fb5k(v=vs.120).aspx ). But in 64-bit MASM,...
View ArticleCFileDialog questions
Hi, I have two questions for CFileDialog:1. How to specify a default file location for when using CFileDialog, e.g.,/* don't know how to specify a default file location for CFileDialog to look up...
View ArticleCOleDataSource clipboard method is crashing in Widows XP after closing the...
Our project(MFC Active X project) is developed using VC++ 2010.We are using COleDataSource methods to copy data to clipboard. We are using the below code snippet to copy data on...
View ArticleSHChangeNotify () call ends the entire application
I am usingSHChangeNotify (SHCNE_DRIVEREMOVED, SHCNF_PATH, "d:\\", NULL);before unmounting a drive from my C++ program, but the program ends immediately after calling SHChangeNotify. The same call is...
View ArticleWarning C4278: 'GetCurrentDirectory': identifier in type library...
I'm migrating a VC++ 6.0 application to Visual studio 2008. I've fixed all the migration errors, now I'm fixing the warnings. The following warning occurs in almost 40 instances, Even after so much...
View ArticleIncorrect conversion function result [C]
I am new to C programming language, so apologize if I do something totally wrong. :)I want to convert byte string to wide string to use it in CopyFileW. When I do everything in main function, all works...
View Articletransmit pointer to native code - C++/CLI
I have project which uses native c++ library, I included this using C++/CLI stub project. One of the export routines is processing for a long time, so i need to transmit from C# managed code to C++...
View ArticleLINK : fatal error LNK1104 cannot open file 'Debug\FIRST.obj' | Unable to...
I am encountering problems in attempts to build a solution for my project, ordebug my project on Microsoft Visual C++ 2010 Express.I am using a computer with Windows Vista Home Premium running on...
View Articleerror LNK1104 cannot open file Debug\TestPCMDLL_Impt.obj
I'm working on my project using VS2010 Premium with Administrator rights. The project is built using C++, every time I build the project I receive the out put error's. Also I've searched online for...
View ArticleExcel 2010 automation with MFC
Hi everyoneI am new in MFC.I am working on a MFC projects that use excel 2003 wrapper classes, so excel9.h header file is included in all .cpp files.I would like to use excel 2010 instead of excel 2003...
View ArticleWhat if a DLL contains resources of different languages?
Hi,I am using Visual C++ 2008 and I notice it is possible to add resources of different languages to a DLL. In that case, when a DLL is invoked, the resource of which language will be used?ThanksAlan
View Article