Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007


all groups > visual c > january 2004 > threads for january 22 - 28, 2004

Filter by week: 1 2 3 4 5

bug in VC++2003
Posted by Vladimir Petter at 1/28/2004 10:02:46 PM
Hello, I am not sure if this bug was noticed before so please ignore posting if it was. I was playing with sample from "C++ Templates The Complete Guide" chapter 8.2.4 #include <iostream> using namespace std; template <typename T1, typename T2, typename T3=int> class C; template <...more >>

Compiler Upgrade
Posted by ndessai at 1/28/2004 7:11:43 PM
Hi, This seems to be confusing but let me know if anyone has encountered it before. I am presently working on a compiler upgrade of a huge source code. The code did not give any errors on VC 6.0 compilation. But in VC 7.1 compilation I got a message that "private members cannot be accese...more >>

Problem with remote IP
Posted by Taptu¶ at 1/28/2004 11:54:53 AM
Hello I have problem with determining remote IP. How can I get IP of remote machine if I had them name like: //Comp1 Thanks Taptu¶ ...more >>

Bug in VS 2003.Net - Template parameter deduction
Posted by Henrik Ullerichs at 1/28/2004 9:19:40 AM
The following gives you two bugs. Just create a default console project, and paste it at the bottom of the file with _tmain. e:\Src\C\BlobHolderTest\BlobHolderTest.cpp(44) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) e:\Src\C\BlobHolderTest\B...more >>

Problems with PCH on Windows 2000 SP4
Posted by ptongue NO[at]SPAM deloitte.co.uk at 1/28/2004 9:17:05 AM
Dear world, We are having issues with Windows 2000 SP4 and Pre-Compiled Header (PCH) files that have been previously compiled on Windows XP using ..NET 2003. Recompiling the PCH files on Windows 2000 SP4 using /Yc does work, but we really want to ship one PCH file to our customers that will ...more >>

Probably me being stupid - fstream
Posted by kjervis NO[at]SPAM blueyonder.co-dot-uk.no-spam.invalid at 1/28/2004 9:00:20 AM
I'm new to C++ and have been chucked in at the deep-end. I have a C++ console app that works fine. All I want to do is write to file however as soon as I include the fstream library and try to compile VS .net chucks out errors, lots of them: c:\Program Files\Microsoft Visual Studio .NET 20...more >>

Handling WM_INITMENUPOPUP; now what?
Posted by Steve at 1/28/2004 8:01:08 AM
I need to perform some special initialization of a menu when it is displayed, so I am looking for the WM_INITMENUPOPUP so that I can modify my menu before it appears. Unfortunately WM_INITMENUPOPUP doesn't provide the most basic information that you would need with this function - the menu being di...more >>

Problem : Usb Time Outs by SetCommTimeouts
Posted by Ebrahim at 1/28/2004 7:21:07 AM
Hello NG I’m developing software for my hardware which is connected via USB to my computer, I already have written the necessary firmware and a mini driver (by Windws2000 DDK) which both works The Problem I want to define communication time outs for non-overlapped read and write operations us...more >>



CxxCallUnwindDtor?
Posted by Eugene Lerner at 1/28/2004 6:56:06 AM
I have an abstract class that inherits from 'MarshalByRefObject' which is also abstract. When I add a destructor to my class Link errors with message error LNK2001: unresolved external symbol "void __cdecl __CxxCallUnwindDtor(void (__thiscall*)(void *),void *)" (?__CxxCallUnwindDtor@@$$J0YAXP6EXP...more >>

Virtual destructor causes LNK2001 !
Posted by balkanese NO[at]SPAM web-dot-de.no-spam.invalid at 1/28/2004 4:00:05 AM
Hi everybody! I encountered the following problem: I created a "class library (.NET)" project and made a first build, which produced a warning: > nochkclr.obj : warning LNK4099: PDB 'libc.pdb' was not found with 'C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\lib\nochkclr.obj' or ... ...more >>

Would it be possible?
Posted by Brian at 1/27/2004 9:02:24 PM
Dear Visual Studio .Net IDE development team: Please, if it is at all possible, bring back the old Visual C++ IDE we had with version 6. I know that it had some short comings, but it works very well for what it is needed to do. I have been doing a trade study for the company I work for re...more >>

VC++
Posted by boxesbox at 1/27/2004 7:15:15 PM
i'm using VC++ to create a handwriting recognizer.. just the recognizer.. is there anyoe have any idea on this?? i want to create my own gesture as the default recognizer cannot detect a pi symbol.. or is there any method which i can add this symbol to the library?? and how can i create t...more >>

[?] Querying for C# methods from unmanaged C++ via COM
Posted by Quinn Tyler Jackson at 1/27/2004 5:16:35 PM
Hello: This question relates both to C# and to unmanaged C++, but is not really "C# specific" at the C# end. Let us suppose that I have a C# class such that: using System; using SomeCOM_Lib; namespace Foo { class Bar : SomeCOM_Lib.ISomeInterface { public ...more >>

Having __value class instance variables in __nogc classes
Posted by Edward Diener at 1/27/2004 2:58:38 PM
Why is it impossible to have a __value class instance variable in a __nogc class when it is possible to have a built-in type instance variable in a __nogc class ? __value class X { int a; }; __nogc class Y { X b; int c;}; // compiler error __nogc class Y { int c;}; // OK ...more >>

Using Clipboard Class
Posted by Nithi Gurusamy at 1/27/2004 12:51:23 PM
Hello everyone: I am new to .NET world. Someone please show me how to use the Clipboard class in an unmanaged code. Assume I have a MFC CString variable strText. How to put the value in strText into the clipboard using the managed extension class Clipboard. Thanks Nithi ...more >>

a bug invoking base class's property?
Posted by Huihong at 1/27/2004 12:46:55 PM
I found when invoking the same property of a base class, the MC++ compiler seems to emit incorrect IL code, and causes causes stack overflow: class Child : public Parent { __property void set_Text(String *s) { Parent::Text = s; } }; It emits: call instance vo...more >>

"All public methods should be virtual" - yes or no / pros & cons
Posted by Ken Brady at 1/27/2004 9:04:43 AM
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me...more >>

Porting existing code from VB.NET to Managed C++
Posted by anupam_mukherjee NO[at]SPAM persistent.co.in at 1/27/2004 3:56:23 AM
Hi, I have some existing code in VB.NET and have to port it to Managed C++. Is there any existing tool which lets me do this job? If not, hwat would be a better approach to doing this, line by line translation or rebuilding the code from scratch Regards and thanks, Anupam...more >>

CMimeMessage
Posted by SunFire at 1/26/2004 1:36:01 PM
Hi can I use this ATL classes with standard Win32 application? Regards, Robert ...more >>

Problem on defining Multiple Level Namespace (Company::Application::Components)
Posted by Sai Kit Tong at 1/26/2004 12:25:48 PM
How can I define a multiple level namespace for my class? I got compilation error using the "::" as separator: namespace MyCompany::GenericApp::CommComponent { public __gc class WordReader { .......... } } However, I could define MyCompany.GenericApp.CommCompon...more >>

Menu not showing hot keys at runtime
Posted by Joe Thompson at 1/26/2004 11:11:04 AM
Hi Using VC++ 2003/winform app I added a menu to my main form and then added "&File" as the text of the first item. At design time it appears as expected (the F in File is underlined). At runtime the F is not underlined. I don't see any settings for enabling/disabling this. What am I missing...more >>

Working with Forms in MC++
Posted by Tim at 1/26/2004 8:51:06 AM
Hi, I have a simple form in my Managed C++ application that has a textbox on it that is meant to act like a console. The textbox is updated with information as the program runs. My problem is that a VB textbox does not recognize C++ escape characters and I want to display a newline in the t...more >>

Resources
Posted by Bonj at 1/26/2004 6:06:06 AM
H When creating an SDK program using VC++.NET 2002, it seems that the icon with the lowest ID seems to be the icon that the executable file gains when it is shown in Windows Explorer. Furthermore, you can edit the resource.h file, to change which icon has the lowest ID in order to determine this, ...more >>

Slow link times
Posted by Rudy Ray Moore at 1/25/2004 9:51:52 PM
Why is "Visual Studio .net 2003 7.1 c++" so much slower than VS6 at linking? It looks like "Visual Studio .net 2003 7.1 c++" doesn't even do incremental linking! I make one very minor change in a .cpp from one of my thirty projects and the whole thing links! (I turned on verbose linking to ve...more >>

excpt.h error
Posted by Dave at 1/25/2004 8:17:25 PM
When I build my project I get an error in the excpt.h header file. The build error tells me that there is a missing ';' before 'string' at the line in excpt.h that reads extern "C" { Is this library file included for exception handling? I'm just trying to set up a simple program to experi...more >>

Using NMAKE to build C++ app - Falling over
Posted by kjervis NO[at]SPAM blueyonder.co-dot-uk.no-spam.invalid at 1/25/2004 2:31:53 PM
Hi all, I'm new to C++ and .Net but I have been giving the task of building a C++ application using NMAKE. Simple huh? I have visual studio .net installed and therefore VC++7.0. However when ever I try to run NMAKE from the dos prompt it is unable to find any header files that have been i...more >>

COM <-> .Net Exception handling
Posted by Mark at 1/25/2004 2:11:05 PM
I have a COM object that calls into a C# Forms library. The library can throw exceptions and I want to handle the exceptions in COM. Adam Nathan wrote a Microsoft sponsored book titled .Net and Com the complete interoperability guide which shows examples of how to do this. Below please find the...more >>

VC++.NET ????
Posted by borhan NO[at]SPAM boun.edu-dot-tr.no-spam.invalid at 1/25/2004 12:33:11 PM
Hi folks, I am using vs.net 2003 for a time, however since last week I was using MFC. Now, I am into managed C++ and windows forms. I can say that I am very much confused with it, and I have some questions I hope I can find some answers here... 1. First of all, I got the answer to t...more >>

Forced Path for Project/Solution is incompatible.
Posted by David F. at 1/24/2004 11:51:05 PM
In VS6 I could override where it created a project simply by editing the location to be saved in after typing the project name. VS.Net is forcing me to put it in d:\somepath\projname .. I want it in d:\projname\mak\win32, how do I get it there Also, what is the newsserver for these groups. I don...more >>

C++ Managed and Unmanaged and the New Command
Posted by Ofer Achler at 1/24/2004 9:14:43 PM
I'm having horrible, headache inducing problems trying to make a wrapper, or just a c++ class to interact with a managed class. I mimiked a managed wrapper to an unmanaged class as showin here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_overview.asp b...more >>

mixed-mode C++ and the Out attribute
Posted by Chris Ellis at 1/24/2004 12:08:14 PM
Hi, I'm not sure if this is the right newsgroup for this question. I'm not sure if the problem lies in C# or in C++, but I am working on a project that uses a mixed-mode C++ dll to wrap some API's into classes. I am then using those classes from a library in C#. In one of my C++ functio...more >>

Decompiling EXEs to C++ source
Posted by S.J. at 1/24/2004 7:21:03 AM
Does anyone know how I may decompile EXEs to C++ source code? Please reply to my email....more >>

Good tutorials for String class?
Posted by Nathan Young at 1/24/2004 6:07:43 AM
Hello all, I am a newbie to C++ (but have been writing C for a while). I am trying to write a simple TCP/IP program in C++, and am really struggling with string manipluation. I would appreciate any pointers to good web tutorials on the String class and manipulating strings. For example. ...more >>

/AI option and the References folder
Posted by Jon at 1/24/2004 5:04:05 AM
Does the "Resolve '#using' references", the /AI option, automatically use the dll's in my project's References folder? ...more >>

beginners question...
Posted by Jase250 at 1/24/2004 12:44:08 AM
hi folks, i'm a beginner to programming in anything beyond BASIC and would like a (probably simple) question answered. i am wanting to write a program with similar interface to the music programs which have small instruments and effects which can be dropped onto a large form. these can the...more >>

out parameters in C++
Posted by Markus Minichmayr at 1/23/2004 6:12:47 PM
Hi! I want to implement a class in C++ and use it in C#. There are Methods with Parameters that I want to declare as "out" parameters. Would look like this in C#: void MyMethod(out int myOutPar) How would this declaration look like in C++? Thanks for any help - Markus PS.: I found...more >>

std::auto_ptr error
Posted by Guido Forthofer at 1/23/2004 1:56:25 PM
Hello, I convert my VC6 C++ project after VC7 (7.1) and have now an compiler error d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\vector(810): error C2558: class 'std::auto_ptr<_Ty>' : no copy constructor available or copy constructor is declared 'explicit' with ...more >>

.NET newby: IDE query
Posted by Arnold the Aardvark at 1/23/2004 1:53:25 PM
I'm completely new to .NET, but not C++, and have bought VC++ .NET to learn with. I've created a minimal GUI application to get started. My first question is a simple one about the IDE. Why is all the code generated in the header? Is this an option I can turn off? It seems to me that t...more >>

how to add any dotnet component in vc++
Posted by Kanaiya at 1/23/2004 11:14:29 AM
hi how to add any dotnet component like we add in c#. and what path to set. bye -- With regards, Gangani Kanaiya. ...more >>

Wierd Unicode problem in converted 6.0 project
Posted by Andreas Magnusson at 1/23/2004 10:28:53 AM
Well this is strange... I have some old projects in VC 6.0 form, which all use _MBCS as "string encoding". I converted them with VS2003 and compiled OK. After that I decided to change _MBCS to _UNICODE (through the selection in Project Settings [of course]). Imagine my surprise when the change d...more >>

Unmanaged C++.Net calling Managed C#.Net
Posted by Zapbbx at 1/23/2004 9:41:05 AM
I have a 3rd party application that can reference external dll's. The dll's have to be written in unmanaged code with an exported function I can reference and call. I would like it to call a C# dll file but it cant call a managed C# dll. I need to create an unmanaged C++.net wrapper for a Managed...more >>

Please help with managed array syntax
Posted by Roy Chastain at 1/23/2004 8:01:53 AM
I have a C# module that defines a type and then makes several arrays of that type. public class ArrayEntryType { byte member1; .... ]; public static ArrayEntryType[] array1 = { new ArrayEntryType(1), new ArrayEntryType(2)}; public static ArrayEntryType[] array...more >>

stuck on a very simple c++ program
Posted by jesse_basketball NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/22/2004 7:31:04 PM
i am a very beginner programmer and am stuck on a very simple problem. I am trying to make a game where the user is presented with a scenerio and options. ie you are standing in the parking lot a.run b.go home c.stay there when a option is selected a new option is presented. How do i do ...more >>

Project build order
Posted by Rudy Ray Moore at 1/22/2004 4:48:00 PM
How can I modify the project build order of a multi-project workspace under "Visual Studio .net 2003 7.1 c++"? I tried to modify the .sln by hand to influence the build order, but it didn't seem to help. It looks like it's in reverse alphabetical order with upper case characters winning. Cont...more >>

Jump to errors using F4
Posted by Rudy Ray Moore at 1/22/2004 3:14:30 PM
Hi all, Occasionally I make mistakes when programming in c++. Visual Studio 6 catches most of these when compiling and stops the compiling process. Pressing F4 jumps to the first error. With "Visual Studio .net 2003 7.1 c++", I have found that pressing F4 does something different. It open...more >>

Service pack for VC2003
Posted by Robert Krt at 1/22/2004 2:13:24 PM
Hello! I've hit the ICE (msc.cpp line 2701) compiling a solution in VSnet2003(VC7.1). It worked in previous releases. Reading the newsgroups I've found it is a bug. When is to be expected a service pack or a fix? Bye, Robert Krt. ...more >>

bug: stack overflow in std::auto_ptr
Posted by Bronek Kozicki at 1/22/2004 2:03:24 PM
Hi Please try this code. I think that it's perfectly legal. However when compiled under MSVC71 stack overflow happens in first line of main, thus second line is never executed. B. #include <iostream> #include <memory> using namespace std; struct A { virtual ~A() {} }; s...more >>

How to enable Windows Forms toolbox in VC.Net 2003?
Posted by Microsoft at 1/22/2004 12:01:15 PM
Hi, I am newbie for Visual studio .Net. I had .Net 2002 installed on my system. Now I have installed .Net 2003 under the pretext that Windows forms would be available for use in VC.Net. But in my MFC Application, i try to access the winforms, they are all greyed out. How do I enable them ...more >>

Using the "Find" tool in the text editor
Posted by Rudy Ray Moore at 1/22/2004 10:56:13 AM
Hi guys, I often use the "Find" (aka CTRL-F) tool in "Visual Studio .net 2003 7.1 c++". I noticed that that dialog box does not go away when I perform a search (it stays on the screen). This is different from the behavior of VS6. I find this frusterating because a mouse click is required...more >>

Text editor hangs while compiling
Posted by Rudy Ray Moore at 1/22/2004 10:49:11 AM
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One annoying behavior is that the text editor often "hangs" (doesn't let me type) while compiling. Is there ...more >>

is it possible to use the forms designer w/o a namespace?
Posted by Scott Yost at 1/22/2004 12:30:56 AM
I would like to remove the namespace from my project. But if I do, the forms designer stops working - it says the forms cannot be designed. They work perfectly once again once I restore the namespace. Is there any way to work around this? VS .NET 2003 thanks! ...more >>


DevelopmentNow Blog