add indent spaces to xml nodes with ms IXMLDOM
Hi All, Currently I was update a xml file with IXMLDOM, after add nodes to xml file, we found the new added node was written in one line always. this make it hard to find the differences with merge...
View ArticleVERSIONINFO and custom file extensions
Hello,We embed the version information (VERSIONINFO) into our binaries (.exe, .dll) so that we can read the product version and file version in windows explorer.However, if we register a custom file...
View ArticleAPI Windows and C language
Hi,I'm studing C language and I'll need to learn to do graphic interface in C. I used the Petzold Book: Windows programming. I want to know if the microsoft will assits the way of programming in Visual...
View ArticleCArchive use for writing more than 4gb of data
We're porting our application to run natively on 64-bit Windows. We use MFC and, in particular, the CArchive class to read and write files. If we have more than 4GB to read or write at once it will...
View ArticleVS 2012 Express for Desktop crashes on startup
Hello,I installed Visual Studio 2012 Express for Desktop 06/13/2013 (last week). It worked fine until today. Once the main page opens, after a few seconds, VS crashes, with the message: "Microsoft...
View Articlereading a .txt file into a 2d array
I have level rendering good so far in my game, it like to make it so the game can open a .txt file and read the level from there. Here is the .txt file1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
View ArticleCollision questions
I need some help with precise collision in my game. I already got code working, but somehow it glitches up when I land on the ground. First, here is the collision code:bool check_collision(...
View Articlehow declare global variable?
How do I declare a global variable in C++ ? I thought I declared the variable as static in the .cpp file and then declared the definition of that variable in the .h file. But I get a C2086 -...
View ArticleNewline in TextBox.Text property
I am programatically changing the value of a TextBox's Text property, and I need to be able to create newlines in the text for it to be readable. I can use the /n escape character when I'm creating a...
View ArticleAssigning an adress for an external method using microsoft linker
I am trying to use the microsoft linker to link some of my c code, however I cant figure out how to define addresses for external symbols in the code. ex:externvoid mySymbol(void* data);int...
View ArticleATL COM Icon Overlay dll registering failed for target Win32 under Windows 7...
Hi all,I've created simple icon overlay atl com dll that works fine with target x64 under Windows 7 x64. I want to have icon overlay in x86 applications like Total Commander, I built my project with...
View ArticleHow to open console application in VS2012 Express win8?
Hi,How can i open console application in the VisualStudio 2012 for windows8?I can't see such template, all of them are for "windows store app".
View ArticleATL Composite Control Again
Hello, All!A little time ago I asked a question in "ATL Composite control" topic (http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/019ccf91-52fb-444b-9f47-a79bb2901f36/) about access to...
View Articleevent handling for menu
Hello,I am creating a mfc application. Here I have a menu with the id: IDR_MENU_MAIN_DIALOGHere a menu item id is ID_MTEL_EXIT. How can I handle the message for event handling at mfc.jamil
View ArticleAbout its file structure
Hi, In this approach, http://www.daniweb.com/software-development/cpp/threads/268868/reading-and-writing-binary-file-c I don't see if it is putting any real file structure to the binary file by the...
View ArticleI need help calling Invoke to get a specific prop get method.
I am using ATL and the class wizard to define an interface that has methods and properties. I also am writing test code to use IDispatch::Invoke to test the APIs in the interface. I have one property...
View ArticleCompatibility VS2010 solutions on XP with Windows 8.
I wrote an application with VC++ 2010 on XP. I had a problem. When I was saving a text file, the program was started in the save folder and not in the installation folder. I solved by setting then the...
View ArticleConverting a vector to char *bufferstring
hi how can i convert a vector<string> to char *bufferstringlitu Here
View ArticleGetVolumeInformation() shows CRC error for fresh Blu-ray re-writable
While GetVolumeInformation() API is invoked for a fresh(not formatted) Blu-ray re writable(BD-RE) , it is failed with GetlastError() =23(Data error (cyclic redundancy check) ). I have used this...
View ArticleCreating dynamic PropertyPage DPI aware VC++
Hi all,I have a win 32 application which contains a property sheet with some property pages. Now the problem is that the property pages are dynamically created using the DLGTEMPLATE structure. Now we...
View Article