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 > march 2007 > threads for march 15 - 21, 2007

Filter by week: 1 2 3 4 5

Int 13h
Posted by EndTime at 3/21/2007 11:36:55 PM
I'm fairly good with VB6, and as far as I know there is nothing in the reference books that allow manipulation of Int13h. There must be a way using VC++, but I have no documentation. Could someone lead me in the right direction? Thanks. -- EndTime -----------------------------------...more >>

static linking (GDIPlus.dll) with an VC++ application
Posted by Ramendra Kotharkar at 3/21/2007 9:47:03 PM
Hello, I want to know how to statically link GDIPlus.dll with VC++ application that should be able to run on W2k machine without the existence of GDIPlus.dll on the target machine. Currently, when i statically link the dll and run the application on target (W2K) machine it throws an exce...more >>

Vista Icons
Posted by Yuri Martsynovskyy at 3/21/2007 12:17:40 PM
I get this error message in VS 2005 when compiling Vista icon: ..\File.rc(623) : error RC2176 : old DIB in res\main.ico; pass it through SDKPAINT Using VS 2005 with latest SP1 for Vista ...more >>

Temlate member of class, LNK2028 and Static Library.
Posted by pkoniusz NO[at]SPAM gmail.com at 3/21/2007 8:23:40 AM
Hello everyone. The problem may be obvious, though I'm a bit puzzled by the error LNK2028 when attempting to utilize my static library. The all methods of the class defined within that library do not pose any troubles, but template based methods. Let's say this is a header: class LooseFunc...more >>

Automating VS2005 builds
Posted by 2b|!2b==? at 3/21/2007 12:50:50 AM
I am working on a largish project (about 40 modules). I have created a solution that builds all 40 modules/projects. However, I want to be able to automate the build process - and kick it off without having to start the IDE etc. I fiddled around with NAnt for a while but it seems VC8 dosent...more >>

Linking Between Two Projects in a Solution
Posted by Sami Lakka at 3/21/2007 12:00:00 AM
I have a solution with a two projects. The first project contains my classes and an executable using those classes. The second project contains unit tests for the classes. Because the unit test framework that I use requires a main function I have to keep the tests in a separate project. Now wh...more >>

/EHa vs. /EHs
Posted by PLS at 3/20/2007 5:27:56 PM
If I understand the difference correctly, when compiling with /EHs "catch" will only catch objects that were "throw"n. With /EHa, "catch" will catch thise plus will catch things like addressing exceptions. When compiling with /EHa, can exceptions like addressing exceptions be caught as a sp...more >>

sharing unmanaged object across managed borders
Posted by DaTurk at 3/20/2007 1:56:04 PM
Hi, I'm trying to have a unmanaged object contatined in a a managed class. THis is no problem, but I need access to this object in other managed classes. I'm not sure how to do this. I mean, it wouldn't really make sense to be able to pass in a unmanaged object into a managed anything beca...more >>



top-level const-ness inhibits override
Posted by Ben Voigt at 3/20/2007 8:54:53 AM
Found another variation on my previous bug (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=100917) I would welcome validation and votes. class ISkewEstimator { virtual void get_Sum(double* const pdRetval) const = 0; }; class CSkewEstimator : ...more >>

Return ref struct
Posted by Maxim at 3/20/2007 12:46:24 AM
Hi all, Why is the following code doesn't work? public ref struct MyType { .................. }; MyType GetMyType() { MyType result; ...................... return result; } The compiler says Error 3 error C2440: 'return' : cannot convert from 'MyLib::MyType' to 'MyLib::MyT...more >>

ListView/Process Questions
Posted by Newbie Coder at 3/20/2007 12:00:00 AM
In C++.NET 2003 Windows Forms App I fill a ListView control with process name & second column is the Process ID. I would like to kill the selected process, which is simple in VB.NET or C#, but cannot work it out in C++. In VB.NET, I'd do the following: Dim intProcID As Int32 Dim Proc ...more >>

VS2005 SP1 crashes
Posted by Norman Diamond at 3/20/2007 12:00:00 AM
After VS2005 SP1 crashes enough times, it stops offering to send crash dumps to Microsoft. But it doesn't stop crashing. When VS2005 SP1 reloads a project after a crash, it still displays a reminder "ha ha, you forgot to spend 30 minutes doing an Analyse in SourceSafe". Then it still proc...more >>

Experts please: defining DllMain in static library
Posted by Sean Connery at 3/19/2007 9:45:29 PM
Hi, Is it possible to define DllMain in a static library for use in dlls? The reason is that I am defining a platform abstraction for being loaded as a shared library and I figured the simplest way is to implement DllMain in a static library, which then calls mydllmain. I define this lib...more >>

Call COM Object by VC++
Posted by EricLun at 3/19/2007 8:55:15 PM
Dear All, I am a NewBie in Visual C++. I would like to know how to call a "Active X Dll" COM Library created by VB 6.0 At this moment, i am using a simple hello world console program and a customized VB 6 COM as the client. Should i use something like ?: #import "D:\testing.dll" htt...more >>

WndProc Help
Posted by Newbie Coder at 3/19/2007 8:36:40 PM
I am trying to override WndProc like I would in this VB.NET sub. How do I do it? <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissi ons.SecurityAction.Demand, Name:="FullTrust")> _ Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m....more >>

Previous Existance (Managed C++.NET 2003)
Posted by Newbie Coder at 3/19/2007 8:34:22 PM
Can anyone convert this to managed C++.NET 2003? Private Function PrevInstance() As Boolean If UBound(System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Proc ess.GetCurrentProcess.ProcessName)) > 0 Then Return True Else Return False End If End Fun...more >>

Question about showing a form from unmanaged code
Posted by Tao at 3/19/2007 1:48:57 PM
hi.. Group Some unmanaged code invokes my code to show a form. If I use ShowDialog() to show the form, form shows but main application stops running. If I use Show() to show the form, main application runs but my form does not get shown. Does anyone have experience on how to handle th...more >>

sizeof() on members
Posted by Michael Bauers at 3/19/2007 11:24:45 AM
I am trying to migrate code to MSVS 2005. I found some code trying to take sizeof a member in a nested struct, see below. I know the typedef is wacky, probably a C coder who did not know C++ well. Now, to me, neither sizeof() looks right, I thought there were restrictions on that kind of th...more >>

How to write a program to track the value of a certain variable at run-time using debug features???
Posted by trungthanh78 NO[at]SPAM gmail.com at 3/18/2007 10:22:54 PM
Hello everyone, I'm totally new to the group and I would like to learn from you. Thank you in advance! I need to write a program to track whether a mathematical function has changed during run-time or not. The program should work with any mathematical function provided by users. Let's ta...more >>

Equivalent to CSharp's IS and AS
Posted by Maxim at 3/18/2007 9:13:32 PM
Hi all, What is the equivalent construction in managed C++ to CSharp's IS and AS keywords? Thanks. ...more >>

C++/CLI redistribution
Posted by StuartJSmith NO[at]SPAM gmail.com at 3/16/2007 7:18:49 AM
Hi, I'm trying to deploy an application written in C++, C++/CLI and C# on pc's that do not have VC2005 installed. I am having issues with assemblies loading, in particular the C++/CLI one and am getting FileLoadException when it tries to load the dll. I know I can get round this problem by ru...more >>

CFileDialog Does not show mapped files in system account
Posted by CrimeMaster at 3/16/2007 6:21:50 AM
I have write some simple code,this code does not shows network mapped drives when we run it under system account, otherwise under user account it shows them correctly. Any body tell me why did its behaviour change under system account, and how we can do it under system account. CFileDialo...more >>

Is there 'is' keyword in C++
Posted by Tao at 3/15/2007 12:01:03 PM
hi. Group, C# has a keyword "is" to determine if a object is a given type. Does C++.NET has something simliar? thanks. ...more >>

What dlls needed to deploy C++/CLI app
Posted by Joachim at 3/15/2007 3:52:03 AM
What dlls do I need to redistribute with an application made using C# and C++/CLI for a Windows XP Pro SP2 PC? As far as I have understood the following are needed: msvcm80.dll msvcr80.dll msvcp80.dll msjava.dll Is that right? What else do I need? I'm not able to run my application su...more >>


DevelopmentNow Blog