Answer Questions
Jose Fco Bonnin BUG under Multithread Compilation
Hello there, I built a project which has an annoying problem. The DEBUG version works fine and the release version also works if I choose DEBUG Multithread as runtime library. However, it doesn't work if Multithread runtime library is used instead. I followed the code and found that release method of objects doesn't work. Can anyone give some hint why this happened Michael What do you mean by it does ...Show All
Sue_NC MFC portability
I wrote a program and compiled it on my laptop(WinXP Home) using MFC in VS 2003.NET and took it to school and tried to run it on one of their computers(WinXP Pro) and I it said it couldn't run because it couldn't find "MFC71.DLL". Are MFC programs not portable and if not is there a way to write a program in Visual C++ so it is Nathan87 wrote: I wrote a program and compiled it on my lap ...Show All
notnal Problems using _lseeki64, _fseeki64 and _ftelli64
My application creates a large file and I am trying to use _lseeki64() to position the file pointer. I have found that after a write I need to call fflush() to make it work correctly. If I call it after a read it always positions the file at the end. I have found some references on the internet to _fseeki64() and _ftelli64() but I cannot find them in any include file or library. Any assistance would be greatly appreciated &nbs ...Show All
Mark DAlton CRichEdit & UNICODE or UTF8
How can I take the UNICODE or UTF8 text from a CRichEdit streamOutCallback method gives only ANSI codes. For others codes in UTF8 gives " " (63). And allways give only one byte chars. What do you want to stream out If SF_TEXT than you can use the flag SF_UNICODE when using RTF 2.0 control. Do you just want the Unicode text or the RTF opcodes If just the Unicode text, just use EM_GETTEXTEX with 1200 as the code page ...Show All
shiv.s Has casting to int from double changed completely in VS2005?
Has casting to int from double changed completely in VS2005 Numbers that are too big are always -1 now. Which has caused me much pain to track down and is not compatible with code we currently use. Here is an example, it used to be that if you cast a big number to an int, you would some value that was related to it in some way: (int)1.0957837e+011 => -2090779696 But now it is always -1 if the value is out of the range of the int: (int)1. ...Show All
Jon Mikel Inza [setup-project] How to copy external Files (*.jpg)
Hi ! My Application needs besides the executable file a huge amount of images (about 1500, 3 GB). Ok. Since these images change quiet often, I do not want to embed them into my setup project statically. What I would prefer is to make the installer copy a directory into the target directory. Something like "copy .\images\*.jpg [TARGET_DIR]\" where "." points to the location where setup.msi lies. How can this be realized BIG THANKS FOR YOUR HE ...Show All
Priscilla87945 Accurate Timer (ON_WM_TIMER) / Pending Timer Queue
Hi, When using SetTimer and KillTimer, the MSDN reference for KillTimer says this, "Pending WM_TIMER messages associated with the timer are not removed from the message queue." How could I flush pending WM_TIMER messages associated with the timer There is no way to remove them from the queue Thanks, Jason You can use PeekMessage with the PM_REMOVE to search for specific WM_TIMER messages for a window, but with this function y ...Show All
Tino.NB Constructor address as a variable value
In my code I need to set unique variable value to identify class sample. I have constructors with parameter which indicates Name value. If Name parameter is empty string I have to set Name to unique value. Of cause I can use counter or random numbers generator or GetHashCode() but it is not that I want. The idea is to use constructor address as Name value. But I don't know how to do that in C++/CLI. It is not possible to use type casting to S ...Show All
OneDeveloper Add forms at run time in VC++
Hi , i need to add VB forms at run time in VC++ .. how to go about it I got one artilce , it say sned to check DaeDoe Forms in components in VB , but could not see that check box . how to add the form at run time I'm assuming by VB you mean VB.NET and by VC++ you mean C++/CLI, and by "form" you mean a .Net 2.0 Windows Form (System.Windows.Forms.Form). Make sure your VB form is working proper ...Show All
Brett Ryan Like to know correct API to get screen resolution on monitor?????
Hello, I like to know the API that can give me the screen resolution set on the screen display (monitor). Anyone know that API Pls name it for me. Thanks. Thanks. Actually, I want to take screen shot and show them on screen in exact inch for size. I use CImage.Create API where it accepts only pixel for both x (width) and y (height) info. I tried with GetDeviceCaps(HORZRES) and GetDeviceCaps(HORZS ...Show All
Mr Plow Flash in MFC interface
Hello - I've been looking around for some resources on how to integrate some Flash movies into an MFC interface application. Unfortunately, this is my first time using MFC, so I'm not too familiar with either the library or the resources surrounding it. Could someone suggest some places I've checked all around MSDN for the past several hours and can't find anything helpful. Thanks for any help you could provide! ...Show All
Gu Weifeng win32 windows application project template in VC2005 express
Is there a way to add Win32 Windows application template in New project templates list in VC2005 express I downloaded and installed PSDK. solved using informations from this page http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx ...Show All
B.Lee Inside SHGetFolderPath
Hi, I just discovered while running my application with Application Verifier , that a call to SHGetFolderPath causes the application verifier to log an error related to RegCreateKeyExW. That is, a call to SHGetFolderPath , internally calls RegCreateKeyExW for the reg key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders I was wondering why would SHGetFolderPath need to create a registry key All i ...Show All
M. Paydar Creating SxS assemblies with IDE manifest tool
How are you supposed to use the MT tool from within the IDE Specifically, how do I update file hashes and generate a catalog AFAICT, this doesn't work at all when going via the resources. Things work fine when I control the build process myself, invoking mt on an external manifest (i.e. not embedded in a resource). It also works when invoking mt twice. First to create and embed the manifest and then update hashes and create a CDF (even tho ...Show All
jstewart335 VS8 2005 Projects only work on my PC
Until recently I've been using VS.NET 2003, now I have VS8 2005. And none of the project I make work on other computers. They only work on my PC, when i try to run the program on another PC I get this error: C: \FilePath This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem . Why is that How can I fix it Also, when I compile VS.NET ...Show All
