why fread can't read .bmp image file properly?
I used fread to read .bmp image file into buffer based on code below://Open an Image File pImageFile = fopen("D:\\SampleBitMap.bmp","rb"); //Get Image File Size fseek(pImageFile,0,SEEK_END); lSize...
View ArticleI get: mlde32.obj : fatal error LNK1107: invalid or corrupt file: cannot read...
Hi all,I'm trying to compile a project I found here: http://vx.netlux.org/vx.php?id=em24, but using both VS 2010 and 2008 I get the error: mlde32.obj : fatal error LNK1107: invalid or corrupt file:...
View ArticleCan I install Windows 8 SDK on Windows 7 to compile C++ desktop app?
I need to compile a C++ desktop app in VS2010 that uses definitions available only in Windows 8 SDK (no Metro stuff). I can't seem to find a definitive answer. Can I install it on my Windows 7...
View ArticleNative API for Native Apps
I want to know how to make a Native Application that runs before the OS gets loaded, I mean, Is there a way in Visual Studio 2012 to build Native Apps that uses the "undocumented" Native API?
View ArticlePanel XY to Form XY - Move with Mouse
How do I make the parent form move when the user drags a panel inside the form??Can I do something like Form>Location>X attach to Panel>Location>X or something??Or use the panel mouse...
View ArticleFolderBrowser Control like in Visual Studio 2010
The usual FolderBrowserDialog gives me a TreeView of files.I want to have a folder browser like the one in Visual Studio which is actually more user-friendly.Is there any special component for that or...
View ArticleLNK1318 issue with PDB flags
Hi,We are getting a strange error at link time for optimized builds due to PDB flags. The error we get is -LINK : fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'We support VS 2008...
View Articlecopy string function to non const char buffer
I'm trying to copy a string to buffer for further processing. I used the instructionchar*buf = line.c_str(); but buf type should be const char*, However If I'm going to useconstchar*buf =...
View ArticleVC 2012.2 unhandled exception (ntdll.dll): The operation completed...
I've been experiencing this for the past day. It's a little odd.The application is crashing in mainCRTStartup with the instruction pointer at __security_init_cookie();Call...
View ArticleAvoid using eof of istream in C++
I'm trying to avoid using eof of istream in my code which suppose to process textual files. The following code trying to read line by line, however with each step the code read two lines instead of...
View ArticleSetWindowRgn() painting issue
I have a CustomListCtrl which is placed inside a static container.As part of customization, the region of ListCtrl and static container is set.But after setting region there is a painting issue in...
View Articleteam foundation et al
in this age of virtual machines all manor of options are available that did not exist or were too expensive for shops to considerfoundation server is a package for windows server to check-in and...
View ArticleCTreeCtrl custom draw not working Windows 8
Hello,I've been updating an MFC app and have encountered custom draw or paint issues with a ctreectrl in windows 8 where it paints correctly on Win xp and a win 7 machine. I have managed to knock up a...
View ArticleAccess violation reading location 0, due to source file path ?
I am wondering if you have some tips on how I can debug a very strange problem?I have C++ application which crashes or runs fine depending on the path of one of its source files.I can work around it by...
View ArticleVC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h
Hello everyone,so I'm using VC++ 2008 and I've got a large solution made up of several different interconnected projects, some of which are DLL's (no CLR). In one of these DLL's I'm trying import an...
View ArticleError Happen When Trying to Build a vcxproj - error MSB4025
Hi all,The error looks like below. It happened even when I just tried to build a "hello world“ console application in both VS2010 and VS2012....
View Article_wchmod returning error no 121. i.e.ERROR_SEM_TIMEOUT
While using the method _wchmod getting an error 121. i.e. Semaphore Time out period has expired.I would like to know Under what circumstances this error will be returned.Used the method like...
View ArticleDirect2D pixel format mismatch error
I'm trying to load an image and show it on my render target device. But when I'm trying to convert it with Redertarget->ConvertWicBitmap(), I get the same error code everytime: 0x88982f80 which is...
View Articleemails
my home page comes up with errorseverytime i open this stupid new system i sign in and out and it does nothing i have important emails to get to whats up
View ArticleC# var equivalent in vc++
I added webbrowers to new tabs in tabcontrol during runtime. Now ican't select these webbrowsers and navigate them using codes.In C#the following code can be used. var webb =...
View Article