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 > october 2007 > threads for october 22 - 28, 2007

Filter by week: 1 2 3 4 5

Porting from unmanaged to managed
Posted by Dipesh_Sharma at 10/28/2007 11:41:01 PM
Hi all, I have a Dll code written in VC++ having lots of structures, classes etc and exporting 100s of APIs. I have to port it to VC.Net to make it managed. How can i port the whole code to make it managed. I have heard of IJW & wrapper. But please guide me how can i migrate to VC.Net. Th...more >>

changing a project from Win32 DLL to an ATL DLL (i.e. containing a simple ATL object)
Posted by Anonymous at 10/28/2007 2:15:57 PM
I have a Win32 DLL project that needs to be refactored to support ATL. Specifically, I need to expose one COM object, that makes use of the library functionality. I tried adding a 'Simple ATL object' class directly to the project - but that (unsuprisingly), failed. I then changed the projec...more >>

ScrollBar colors
Posted by Peter Oliphant at 10/27/2007 11:25:02 PM
Although the ScrollBar class has BackColor and ForeColor properties, these properties don't seem to have any effect. Is this correct? If so, is it possible to change the color of a ScrollBar? [==Peter==] ...more >>

Commercial target screen resolution
Posted by Peter Oliphant at 10/27/2007 2:58:57 PM
In today's market, what's a good screen resolution that I can pretty much count on as being the minimum? This is kind of a 'fuzzy' question in that I'm interested in the biggest screen resolution that I can be pretty sure most people who buy a computer today (within the last year or two) wi...more >>

"This OS is not supported"
Posted by maelbe at 10/27/2007 2:18:00 AM
For the last few days, 5 to be exact, I have received a popup window when I have turned on my computer. The message in the popup says "This OS is not supported." I got a virus via MSN about a week ago, but successfully removed it with the help of a friend (we used programs such as Hijackthis, ...more >>

Why does this code work?
Posted by xmail123 NO[at]SPAM yahoo.com at 10/26/2007 3:09:19 PM
I am new to C# and have been studying this piece of code. It loops through an Adjacency Matrix table to populate a tree view. I have two questions about why this code works. 1. initTreeView(TreeNode N) creates a new "temp" table to hold the children for each node. Each time the table is c...more >>

how to monitor exe and dll interactions?
Posted by George at 10/26/2007 2:29:01 AM
Hello everyone, Are there any tool or other methods which could be used to monitor which class/method exe is accessing a DLL? Now I met with an issue that when I provide the DLL I developed to a 3rd parth application, it will crash sometimes and I suspect the 3rd party application is i...more >>

Generate tlh/tli from a tlb?
Posted by Skirmish at 10/26/2007 12:33:33 AM
Long story short: I've been able to load a C# dll in C++ by having the C# project generating a type library (tlb) and #importing that in C+ +. The #import directive looks like a compiler shortcut that generates a tlh and tli locally. Now what I want to be able to do is generate the tlh and tli...more >>



Expiry date for microsoft support on vc++?
Posted by Rajeshaz09 at 10/25/2007 8:32:01 PM
I heared that microsoft give technical support to vb upto this year end. Can any one microsoft stops techinical support for vc++(6.0)? was microsoft announced any official date?...more >>

How to statically linking 2 files for 32 bit and 64 bit in VC++ 2005
Posted by pranab.salian NO[at]SPAM gmail.com at 10/25/2007 3:07:36 PM
I am trying to statically link a xyz.lib file to my 32-bit VC++ 2005 MFC app in order to use a .sys file. I have two xyz.lib files, one for win32 and one for amd64. I know I should add the .lib file to ['Property Pages' > 'Linker' > 'Input' > 'Additional Dependencies'] But which file do I...more >>

Possible Bug: name of directory inhibits execution?
Posted by Peter Oliphant at 10/25/2007 9:08:25 AM
I have written a program using MS VS VC++ 2005 Express, /cli pure. Upon compiling it it works fine in the GUI development environment. It also works fine as a Debug stand-alone. ut I had an odd behavior when it comes to the Release varsion when I renamed its project directory name it was in! ...more >>

nullptr for VS2005 but what about VS2003?
Posted by Charlie at 10/24/2007 7:43:00 PM
Hi guys, I'm using delegates to execute a group of methods using the BeginInvoke, that works fine; I'm waiting for the asynch thread to return the response using the EndInvoke, that works fine also. The point is, I didn't find the way to pass a null value to the BeginInvoke method for the As...more >>

Placing a Form on a particular Screen
Posted by Peter Oliphant at 10/24/2007 6:44:41 PM
I'm programming using MS VS VC++ 2008 Express (Beta 2) in /Cli pure mode. I've found the Screen class. With it I can very easily get the count and all the data on the various Screens attached to a system, whether it be a single screen or multiple screen system. I believe the FromControl me...more >>

vcproj translated into Makefile
Posted by Ed at 10/24/2007 4:40:30 AM
Hello, guys, Here I have a VC project. I used to build it in VS.Net IDE. But because of cross platform requiremment, it need to be ported into Linux. First I need to consider the build environment. I need a tool to translate the vcproj or solution file into some other common build file, suc...more >>

Printf %d and %ld
Posted by George at 10/24/2007 2:17:00 AM
Hello everyone, I think printf %d works fine with signed, unsigned and negative integer values, and the same as %ld for long. Is that correct? If not, do we need to special conversion? thanks in advance, George...more >>

Assemblies in VS 2005
Posted by rk at 10/23/2007 8:09:22 PM
I'm confused about C++/CLI assemblies in Visual Studio 2005. I want to create a C++/CLI assembly in Visual Studio 2005. I know, that I can get one by using the command line compiler. I don't know, how to get one with the VS2005 IDE: - Is a library created by File|New|Project|CLR|Class Libr...more >>

arrays
Posted by xontrn NO[at]SPAM yahoo.com at 10/23/2007 2:38:25 PM
Hello, I am building a .net control in C++/CLI, and it will be hosted by a C# form. The form will load some data from file and pass it to the control (an array of bytes): byte[] data = new byte[length]; .... // load the data from file mMyControl.Load(data, length); // pass data into t...more >>

Form size differs in different OS's?
Posted by Peter Oliphant at 10/23/2007 7:46:17 AM
I'm developing a program at home on a Windows Vista computer. In it I create a form with a few buttons on it that fill up the form's visible area. So, I took the application to work, where I use a Windows XP PRO computer. When I ran my program, the form visible area is different! Not very muc...more >>

Launching one CWinFormsDialog from another
Posted by James at 10/23/2007 4:49:02 AM
What I'm basically trying to do is show one form from another when an event occurs. This is obviously straightforward in c#, but I'm struggling in c++ where each is wrapped in a CWinFormsDialog. The event is in the control in the CWinFormsDialog. I need the dialog to handle it and show the o...more >>

fatal error C1001: An internal error has occurred in the compiler
Posted by Anonymous at 10/23/2007 2:50:21 AM
My code has suddenly stopped compiling after some refactoring I carried out last week. I am using VC8 on W2K professional I get the following cryptic error: Error 77 fatal error C1001: An internal error has occurred in the compiler. c:\program files\microsoft visual studio 8\vc\include...more >>

message localization
Posted by George at 10/23/2007 2:39:02 AM
Hello everyone, I want to print out and log localized message according to current locale of machine. For example, if I am always use MESSAGE_ERROR macro in my program, and I want to replace it with "Error" when the locale is en_US and be replaced with French if the locale if Fr. I am ...more >>

Need some advice!
Posted by Robert at 10/22/2007 11:45:01 PM
Hello, Okay, after a few searches on Google such as, "what is .NET" and "what is C#" I am now starting to see what all this means... C++ is a language, and so is C#. You can get these languages in Visual Studio. We can somehow program in C# and when we require the power of C++, we can c...more >>

DLL property
Posted by George at 10/22/2007 10:48:01 PM
Hello everyone, I am wondering how to set DLL property (when we select the DLL and using right click to choose properties), like version, language, company, etc.? Do we need to write some code or just need to configure something in Visual Studio 2005? thanks in advance, George...more >>

Simple question!
Posted by Robert at 10/22/2007 9:23:01 PM
What is the diffrence between C++, C#, VC++ and .NET? And what is this CLR that everyone is talking about? So if I want to use the .NET frameworks, do I have to learn C#. And how does Visual studio tie into all this? And can C# do every thing that I used to do in VC++? And where can ...more >>

.NET Framework versions
Posted by Peter Oliphant at 10/22/2007 8:34:07 AM
If I tell the compiler to target .NET Framework 3.0 (one of the References options in VC++ 2008 Express), does it still work if they only have a higher version (say 3.5) of .NET Framework installed? Or does it look for and only work with the specific version? The various various versions (e.g....more >>

How to update 'Edit Control' text from Timer Callback.
Posted by IdleBrain at 10/22/2007 8:17:26 AM
Hi, I need a way to update an Edit control control in MFC from a timer callback function. How can that be done as we cannot reference dialog box controls from callbacks? Even the following code gives me problems: VOID CALLBACK TimerProc ( HWND hParent, UINT uMsg, UINT uEventID, DWORD dwTi...more >>

The various levels of /CLI
Posted by Peter Oliphant at 10/22/2007 8:13:40 AM
My program works great in 'vanilla' /CLI, so I tried both '/CLI pure' and /CLI 'safe'. My program continues to compile and run fine in 'CLI pure' (I also use error level 4 and don't even get warning errors), but generates almost 400 compile time errors in '/CLI safe'. So, more out of curio...more >>

virtual inheritance
Posted by George at 10/22/2007 5:49:01 AM
Hello everyone, I have learned public/private/protected inheritance, but what is virtual inheritance? Here is the sample, class Usable : public virtual Usable_lock http://www.research.att.com/~bs/bs_faq2.html#no-derivation thanks in advance, George...more >>

assert
Posted by George at 10/22/2007 1:40:04 AM
Hello everyone, I saw a couple of form of assert in code on Windows, 1. ASSERT; 2. assert; 3. _ASSERT; 4. _assert. Which one is the most correct to use? I saw people always define this to that, and I want to find the root one which is defined by Windows. I also saw people manually...more >>


DevelopmentNow Blog