Answer Questions
Igor Nikiforov Std pipeline Problem.
I am running into problems while using Console outputs redirection. a common way. using CreateProcess to create a "CMD.EXE" process and redirect all stdin / stdout. using CreateThread to make a pipline listening Thread. every thing works but fine using WriteFile to start my dos commands. but when running CONSOLE programms, cant get realtime stdoutput. must wait till the console programm exit. then all results ...Show All
V-surfer performance VC++ 2005 vs. VC++ 2003
The code below runs in 17 seconds on my machine when compiled under Release mode on VC++ 2005 and in 13 seconds on VC++ 2003. This is an extract of the code so don't worry it does not make much sense. First I though it was because of checked iterators but it does not make a difference if I use #define _SECURE_SCL 0 or not. What else could it be Thanks, Bumbrlik -------------------------- // #define _SECURE_SCL 0 #incl ...Show All
fivefinger Textbox +Only numbers
Hello, I want to control a textbox by pressing a button. If the input is not a number(double) I want to display an messagebox with an error. Sorry if this is a stupid question, I can't find it anywhere. Please help. bye I downloaded the code but I don't understand how the code is implemented. I'm tring to do the same thing but just wondering: If I'm using CFormView ...Show All
Douglas H. Troy Passing an array of structs
I have this struct struct student//Struct layout { char name[30]; char id[11]; float gpa; int age; char gender; }; this is the syntax I have for the function I want to send the array to: void firstmenu(student students[]); student students[5];//Struct Array, this is where I make the array firstmenu(students[]); and that is where I try to call it. I get a compiler error of: error C2059: syntax error : ']' when I try to call the fu ...Show All
Carlos Junquera Cachero scripting method AddToolSettings broken in visual Studio 6.0 ????
There is a bug report on this: Bug ID FDBK45740 I have been trying to write some scripts to automate a build process in VisualStudio 6.0. The build process builds a number of projects. Some of these projects are just library builds, some of them are builds which result in executable code (.xll, .dll, .exe) I need to be able to change the target directory for the various builds. The scripting method to do this would seem to be Proje ...Show All
mahmoodilyas Breaking changes in the Visual C++ 2005 Compiler
Does anyone know of a way to suppress compiler error c3867 (Pointer-to-member now require qualified name and &) in visual C++ 2005 I am trying to convert multiple projects from visual C++ 2003 to 2005. I know this was listed as one of the breaking changes made to the 2005 compiler. I get this error hundreds of times.... Any help or suggestions is greatly appreciated, thanks! I believe you're going to have ...Show All
Felipe Domingues How to read *.txt file contents into CString object????
Hi, I like to read the contents of a txt file into CString object in MFC program. Now, I use ifstream to read the contents, but it can read into char array only. Do you have any ideas Thanks, vcboy Something like this should work: CString str; CFile file; if(file.Open(name, CFile::modeRead)) { int len = file.GetLength(); file.Read(str.GetBuffer(len), len); ...Show All
slips coming from version 6
I have been learning to use version 6, and got 2005 through school. When I try to compile and execute a program that works fine on version 6, I can't get it to work on 2005. I use F7 to compile, and it gives the report: ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== How do I get it to make the program run /****************************************************/ /* File: Assign5.cpp */ /* ...Show All
David_Wilson PRJ0050
Hello, I am building a DLL with ATL8.0 in VS2005. I am getting this error when I build the DLL. error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry. Very next time I build, it goes away and the comes back next time. Sometimes i can build 4 - 5 times without error and then it comes back. Any help will be appreciated. I have full permissions on registry. I never had ...Show All
flagdan Global Functions do not have 'this' pointers
Hello Everyone, I get this Error C2673, what is the way around...I looked up MSDN it doesnt give me any solution... Sugestions, Help..Highly appreciated.. Thanks, Thanks for the honest answer...I'm not expert in OOP but trying too find my way out..... make sure USBClient is also located in the namespace RIM_USBClient. To get rid of your abstract class error, your ...Show All
qoo942 undeclared identifiers
I get an undeclared identifier error when executing this file...why I think it's because I don't have int, or float, or const, etc. in front of it. Is that right int main() { triangle Try; What is triangle It is probably a data type that you need to define. As Jonathan indicated in previous threads, please make sure you have the basic understanding of the C++ language since the forums are not designe ...Show All
Emilis Share Projects in one solution
Dear all, I create two projects, say A and B, in one solution in VC.net 2003. They are basically 2 executable applications, A.exe and B.exe. In project A, it uses some classes created in project B. I include the header B.h in A.h, and add Additional Include Directories to which B.h resides. Compile is OK but when linking it looks like the LINKER does not know where to link obj in B project and gives the error me ...Show All
Mohe conversion never gives up
This is on standard edition (Not express). After I convert a project, the .dsp and .dsw remain in the directory. If I open it later with the .dsp or .dsw (by accident) it wants to convert again. If I open the .vcproj or .sln first, it still sometimes wants to reconvert. I tried renaming the .dsp and dsw, but VS8 gets all confused. Are these 2 files supposed to hang around forever What is the best practice for conve ...Show All
emailAtul Lost WM_DRAWITEM Messages
I have an MFC DLL statically linked MTD project that creates a CMenu adds menu items dynamically and tracks the messages by using an intermediate CWnd object to capture WM_MEASUREITEM and WM_DRAWITEM messages. When moving this DLL to Visual Studio 2005 the WM_DRAWITEM messages stopped coming to the CWnd object. The WM_MEASUREITEM messages still are processed but for some reason the TrackPopupMenu thread simply returns. I can see the actual me ...Show All
binyaz build errors in vc++
Hi, I am new to vc++. I have one vc++ source code. I am running this on vs2005. for me it is giving the following errors. I saved the source file in the following path. "c:\programfiles". The errors are 1)Error 1 error A2022: instruction operands must be the same size the lines where i am getting the error is: TIGERROUNDSSE2 5 TIGERKEYSCHEDU ...Show All
