Answer Questions
Uindex A problem with ATL::CTime.GetLocalTm()
I have a projiect in vs2003.net,which use ATL::CTime.GetLocalTm()function with default parameter. But in vs2005 the function was defined without any default parameter. And the MSDN tells that we can use it with a NULL paramenter,so I do this.But there comes a breaking when I debug the project after I building it. Then I step into the ATL source code to see the definition of GetLocalTm,and I found that there is a macro definition o ...Show All
AlexInAustralia Advice on Language Selection
Hello, I am in need of developing an application on Windows XP and I'm new to this development environment. I am active with C++ on unix. I was wondering if I should attempt MS Development in C++ or in C#. I would rather not have to learn a new language but I am told that the C# development environment will enable an easier and faster time to deploy/market. Also if any can recommend a good book on getting started with Vis ...Show All
digioso _kbhit() memory uasge
Hi, I've noticed that _kbhit(), and kbhit() too, use an abnormal considerable amount of memory. Same problem also whit this simple code.... while( !_kbhit() ) { //do something... } pier! Hi, It looks to me you have found a bug in how kbinit allocates memory internally. It is my initial guess from lo ...Show All
Jason Maronge Debug in Windows NT
Hi, I am using Visual Studio 2005, How do I debug my MFC application in Windows NT Regards Manoj Jangid can you suggest me how do i use error log Manoj Ooops - I just gave the .NET answer :-) You have to add try/catch blocks to your code where you think there could be a problem. If you add an ofstream object as a global variable, you can also provide a global method which writes to this stream, and flushes ...Show All
clr77 C++/C#
What's the difference between C++ and C# Jean In what way is it more productive Is it high performance or quick development Is it easy to learn or richly featured Thanks, Erik V. (I am considering migrating to either VB or C#.) It's a more productive language than C++. I'm sure people who wrote BASIC for much of their software careers would find C/C++ confusing. :) ...Show All
Pete Newman XML reader for native C++
Hi! I'm looking for a small C++ XML SAX reader, similar to XmlTextReader in .NET. The most important thing is that the library is small can be statically linked. Can anybody recommend me anything Thanks in advance! As far as I know, if I link my app against version 2.x of MSXML it will require the very same version to be installed on the machine. So my question actually is, whether the old MSXML 2.x is still shipped with newer systems. ...Show All
SurfDude length of input
Don't know where my last post went, but I finally got it to reverse the words. What do I use to determine the length of the user input to get rid of it printing every element in the array The words are reversed but I still get garbage from the rest of the array elements being shown on the screen as well. #include <iostream> #include <string> using namespace std; int main() { char string [50], newstring [50]; int i; &nb ...Show All
Mathieu Cupryk changing file path for a project
Hallo, 1) Suppose in my project, i have added c++ files from location c:\c++. Now if i have moved the files from c:\c++ to c\proj\c++, ofcourse when i open the c++ file in the project i will get the error "file not found" . one solution i know is to delete the files from project and add from the new location. but this is not always practical. is there any way to change the path without deleting the files from the project and adding from n ...Show All
Dale57 a reference failure
<Placed this post in C# by mistake first> Starting using CppCodeProvider versus VBCodeProvider I got a compiler error that the path could not be found. I dutifully attached the file CppCodeProvider.dll to the project treeview--same error. It says that it cannot find it. Error 1 fatal error C1107: could not find assembly 'CppCodeProvider.dll': please specify the assembly search path using /AI or by setting the LIBPATH environme ...Show All
MD2000 Class inheritance in Visual C++ .NET
I was reading the following article in the December 2004 issue of MSDN Magazine, http://msdn.microsoft.com/msdnmag/issues/04/12/CustomFormsDesigner/default.aspx entitled, "Tailor Your Application by Building a Custom Forms Designer with .NET." It's pretty interesting stuff, and the code download is written in C#. There are several classes that inherit from numerous interfaces. I have the 2003 version of Visual Studio C++ .NET standard, in which ...Show All
awake COM DLL, regsvr32 and manifest - blech!
I have a COM DLL that relies on MSVCR80.dll and when I try to register it with regsvr32.exe I get a "loadlibrary failed -2147220473" error. If I create a regsvr32.exe.manifest file and place it with regsvr32.exe, then it works. There has to be a better solution though. I can't count on target PCs having regsvr32.exe.manifest installed (and I'd rather not install it if possible). but this does ...Show All
Giles Copnell How to fix up this problem?
When I first run a simple 'hello world' program from recently downloaded Visual C++ 2005 Express Beta 2 like the following: #include <iostream> using namespace std; int main() { cout << "Hello, World" << endl; return 0; } There was an error message appearing that doesn't make sense to me: ------ Build started: Project: Hello, Configuration: Debug Win32 ------ Embedding manife ...Show All
Guy Harel Conversion of projects from Visual C/C++ version 2.0
Hi In the msdn library there is an article describing serial communications in Win32. This article includes the complete source code of a sample program called MTTTY . I use Visual C++ 2005 (beta 2) and would like to compile the source. When I run the convertion wizzard on the sample makefile I get the following message: Conversion Issues - MTTTY: Unable to open file. This appears to be a project file from a version of ...Show All
Philip Lee Complier error C2666
I am porting an app from VC6.0. The VC++ 2005 compiler doesn't seem able to disambiguate between the following overloads (I've shown an explicit cast at the call site for emphasis): class Y { public : void foo( bool b) const { return ;}; void foo( double v) { return ;}; }; int _tmain( int argc, _TCHAR* argv[]) { Y y; bool b = true; y.foo(( bool )b ); return 0; } However, if I remo ...Show All
Hydra20010 Isolated Application? What is it?
Hi, plz allow me to ask all of you a very simple question. What is an isolated application Who isolates our apps from who Some docs start with the following sentence; An application is considered an isolated application if all of its components are side-by-side assemblies. Do you understand this Me No, I do not. I suspect that these days Microsoft is encouraging us to write manifest-based apps. If I am right, y ...Show All
