Answer Questions
Mikkel S Overriding System::Generics::Collections::IEnumerable
I've been banging my head all day trying to figure out how to return an enumerator using generics. I would greatly appreciate if anyone can help save my last few remaining brain cells I have 2 C++ managed classes, Parent and Child. Parent is derived from System::Generics::Collections::IEnumerable and has a member that is a Dictionary of type Child (ie. Dictionary<String^, Child^>^). I want to return an enumerator to this Dictionary whe ...Show All
Andrew_J Where are "edit and continue" and refactoring options in Beta 2?
Hi all. C# has edit and continue and refactoring VB has edit and continue and refactoring Classic C++ has edit and continue. Where are edit and continue and refactoring in Beta 2 for managed C++ I cannot find. Thanks in advance. I understand your complains, but from my point of view it is alittle bit different: - MS has done a very huge investment in trying to make the class-designer to work with C ...Show All
4lb3rt Support for dual core and dual CPU
When does Microsoft plan to add support for dual core and dual cpu when compiling C++ code I was asking the same question 8 years ao when I got my first dual CPU machine. Did not get any answer. Distributed compilation like Incredibuild would also be nice to have. Regards Lars Schouw /MP really made the compiler fly.... GREAT... One more realson to upgrade from my 2x CPU Xeon 3Ghz to 2 x dual co ...Show All
wtfskh HOW DO WE GET CONSOLE INPUT USING getch()
HOW DO WE GET CONSOLE INPUT USING getch(). it doesn't work in vc++ 2005 moreover can u please tell which header files to use. also please tell what is problem with this code: #include<iostream> #include<conio.h> using namespace std; struct distance { int feet; double inches; }; int main() { distance d1={4,5.6}; cout<<d1.feet<<" "<<d1.inches; _getch(); } IT gives follow ing error: Compiling... ...Show All
dhum11 multi-languages and Doc/View architecture
Hello all, I am trying to internationalize a previously french-only application that uses a Doc/View architecture. I could see how to make language-specific resources but can't find out how to integrate them in my architecture. Could someone give me a hint, please Jean-Marie Epitalon Mourjou France Hi Jean-Marie, I wanted to know the type of application, console application, winform, mfc, win forms ...Show All
DavidJW How to use other DLL in COM DLL?
First, generate a project by the VS2005 of ATL DLL, and add a simple object into the project, then add the IShellExtInit and IContextMenu interface manually. Well, it is work fine. But if i invoke other DLL's function in the ATL DLL's project, it is will alway show an error as:(and the invoked DLL is surely 64-bit) Linking... Creating library x64\Debug\PWContext.lib and object x64\Debug\PWContext.exp Embedding manifest... Registering outp ...Show All
stu1234 What happened to the debugger?
Maybe it's just my memory that is playing tricks on me again, but I seem to recall that this worked the way I wanted it to in Beta 1. When I debug things and look at variables, their types are expanded so that they look different from in the source, e.g. instead of NET_API_STATUS I see unsigned long and instead of HINSTANCE I see __HINSTANCE* and so on. There are expansions that are a lot worse, but I don't have them in front of me right now. Th ...Show All
bobkat GDI+ : Drawing objects over TabControl
Hi, I've been working my way around GDI+ for a couple of weeks now. I made a little application where user can choose among several shapes and then move/place chosen shape using mouse, building this way a customized furniture set. The area where user can place each shape chosen is delimited by a panel control for which I defined the background color as having transparent. Everything is going smooth but... As second step, I added a tab co ...Show All
Jose Lamas Rios Trouble after installing VS2005 under Windows 2003 R2 x64-Edition
Hi there, I'm currently setting up my new machine (Fujitsu-Siemens Primergy TX300S2 with 2 XEON EM64T-Processors). The OS I have installed is Windows 2003 R2 x64-Edition. After installing VS2005 Professional on the new machine I was somewhat suspected! I created a little "Hello World"-like test-project as a native Console-Application under VC++ 8.0. The first things I missed after starting the debugger with F5 are the Disassembly ...Show All
Cristian386 This is kind of a newbie question but i am stuck
this is my simple hello world program #include <iostream> using namespace std; int main() { cout << "Hello World" ; } The prgram runs in the black command prompt window thing but it flashes on the screen for only a second and closes. Normally, after it runs, the widow should stay open and display "Press any key to continue..." HELP!! Nevermind i figured it out ...Show All
Mauricio Junior Problem with DLL MFC initialization in mixed managed/unmanaged C++
Good afternoon newsgroup, I'm having a MFC initialization problem in my mixed C++ DLL, after switching from VS 2003 to 2005. I've done the migration from 2003 to 2005 by the book, and my DLLs load fine. Anyway, the static CWinApp-Object is initialized, but not filled correctly. I can debug through the constructor, but the m_hInstance member will be NULL. That's a big problem later when I'm calling an exported method on the DLL which should retur ...Show All
syouki Strange error with _fileno
We're in the process of converting from visual studio 98 to 2005 (yes, we were a bit behind the times). Most of the changes are now dealt with, but there's one weird one that we can't figure out - it looks like a bug in the compiler. Here's the error we get: v:\frame\utils\.\preftext.c(104) : warning C4996: '_fileno' was declared deprecated C:\MSDev05\VC\include\stdio.h(219) : see declaration of '_fileno' Message: 'The POSIX name for th ...Show All
Nick DeJacimo show a txt file from ftp in a textbox(edit)
I have this code in c# . but I want it in c++ . what is the codes codes in c#: public static string ReadHttpText( String mURL) { WebClient oWeb = new WebClient (); string s = "" ; s = oWeb.DownloadString(mURL); return (s); } Application .DoEvents(); try { textBox1.Text = ReadHttpText( "ftp://username:psword@www.domain.com/filename.txt" ); } catch ( Exception ...Show All
silverballz Memory: App - Driver
How do I declare memory for use in an application and a driver I want declare a pointer in the app, "int *pData", then call some function so that the driver will allocate the necessary memory, pointed to by *pData, which can be accessed by both the driver and the app. I'm trying to port a Linux driver and Linux app. The Linux app is using mmap() function. Is there a Microsoft equivalent Thanks ...Show All
InvestorDrew porting expression templates to generics
I'm trying to port simple expression template to generics but I get this errors (The code is shown below): (1) left of '.Apply' must have class/struct/union (2) left of '.GetRowNum' must have class/struct/union (3) 'return' : cannot convert from 'Expression<Lhs,Rhs>' to 'Expression<Lhs,Rhs>' Cannot copy construct struct 'Expression<Lhs,Rhs>' due to ambiguous copy constructors or no available copy constructor ...Show All
