Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > february 2005

Filter by week: 1 2 3 4

ActiveX Dead? Alternatives?
Posted by Strath-Clyde at 2/28/2005 2:03:06 PM
I'm a die hard c# developer, developing win32 and web based enterprise apps for last few years. The development team I'm on is going down a path I feel is wrong. I scoping out the web to knock their solution but of course, an alternative is needed... 1) We need a complex client application ...more >>

ListBox Item Objects: what is displayed?
Posted by Peteroid at 2/28/2005 12:08:21 PM
I'm going to be using a ListBox in my managed C++ application, and have a question. Why are the Items you Add to a ListBox in the form of generic Object*'s? I believe a ListBox displays a table of selectable options via multiple lines (or columns) of TEXT, so why doesn't Add merely take a St...more >>

System.NullReferenceException on a CString
Posted by Klynt NO[at]SPAM noemail.nospam at 2/28/2005 7:33:03 AM
Project built using /CLR, but code is old and has not been converted specifically to "managed" (__gc or __value). Everything seemed to work great, until I got the following error. I have a class, let's call it CMyLegacyClass, that has some CString (NOT CString*) member variables. Proble...more >>

OOP???
Posted by Dean L. Howen at 2/27/2005 11:04:19 PM
Ex: I have 2 classes like this: class Parent { private string msg; public string Message { get { return this.msg; } set { this.msg = value; } ....... } }; class Child : Parent { ...more >>

Scrollbar of a CComboBox
Posted by Seko at 2/27/2005 6:17:39 PM
Hi, I'd like to know if there's a way to subclass the scrollbar of a CComboBox control? Thanks in advance, David ...more >>

timing performance of code
Posted by ronny at 2/27/2005 3:33:32 PM
Hi I am looking to time the performance of my code, I am currently using the system time "DateTime::Now" however I am finding the results are not very accurate. I have been told that I can use the system diagnostics to use a performance counter. However I have not been able to get any co...more >>

How to integrate an MFC 7.0 DLL into a standard C++ application
Posted by Kjell Arne Johansen at 2/27/2005 5:49:05 AM
Hi How to integrate an MFC 7.0 DLL into a standard C++ application. I'm going to use an OPC Toolkit for C++ and have to interface my MFC DLLs. How do I do this? Any recommendations? Links? Regards Kjell Arne Johansen...more >>

VC project packaging
Posted by Harry Lin at 2/27/2005 4:33:01 AM
Hello there, In VC++6, you can use Installshield for vc6 to create a setup for your project. But how to do so in VC++.NET? Thank you very much in advance. Harry ...more >>



Linking ODBC recordset with dialog fields
Posted by Simon Bailey at 2/26/2005 5:01:18 PM
In VC++6 I used to use the add member variable tab of the class wizard to bind recordset fields with dialog controls simply by specifying the m_pSet-> variable before the variable name. This all appears to have changed in VC ..NET. I have a dialog - IDD_DATABASE_FORM with an edit box IDC_P...more >>

Questions on a Regular Rexpression
Posted by Ioannis Vranos at 2/25/2005 11:44:43 PM
Given the regular expression: S"^([a-zA-Z]+|[a-zA-z]+\\s[a-zA-Z]+)$" 1) Isn't the "[a-zA-Z]+|[a-zA-z]+" part redundant? As far as I can understand it means exactly the same as "[a-zA-Z]+" alone. 2) Isn't the parenthesis grouping redundant? 3) How can we define the parenthesis charact...more >>

C++/CLI property override
Posted by Å krat Bolfenk at 2/25/2005 3:47:02 PM
How can I override property in C++/CLI. Well I know how to override when the input and output types are the same (and number) ..., but I would like the derived (overridden) property to return different type than base. Thanks...more >>

Press any key to continue
Posted by Bob Altman at 2/25/2005 3:10:46 PM
Hi all, I have an unmanaged console app written in C++. I can't figure out how to get C++ to do the standard issue "press any key to continue" thing: cout << "Press any key to continue: "; cin >> <your code goes here>; TIA, - Bob ...more >>

File open dialog
Posted by Lonnie at 2/25/2005 2:01:43 PM
I need to implement a simple file open dialog in my form application (C++ .NET). I know there has to be a canned version of this dialog somewhere that I can simply use, but where? How? All the documentation I've seen involves MFC, and I'm not using MFC. Pre-emptive thanks! Lonnie ...more >>

ISupportInitialize - MC++
Posted by ReMEn at 2/24/2005 10:07:03 PM
I have derived my own class from a UpDownBase. Like so: __gc public class MyNumericUpDown : public UpDownBase, ISupportInitialize {...} I created my own custom controls using my derived class. I go to build, and I receive this error: error C3141: 'System::ComponentModel::ISupportInitialize...more >>

Need Help Fixing GDI Leaks
Posted by Phillip N Rounds at 2/24/2005 6:11:26 PM
I have an application which is heavily graphics intensive, all the graphics being custom. Scattered throughout by app, I have MyView->OnDraw( this->GetDC() ); Apparently, each call to this->GetDC() creates a GDI object and, 16,000 or so calls to OnDraw() results in the Application han...more >>

Using COM within .NET
Posted by Tommy Vercetti at 2/24/2005 3:38:46 PM
I have a very simple COM object that I want to use within .NET. The COM object was written in C++/ATL. The object works but the problem is the COM object never seems to be released and the DLL files can never be overwritten without restarting the computer. MyLibrary.CMyCOMClass netWrappedC...more >>

DLL Troubles
Posted by Tom Andrecht at 2/23/2005 10:16:13 PM
I'm trying to write two managed C++ .DLL files for use in a project, and am running into some trouble that I'm not sure if it's something I'm doing wrong (this is my first time trying this) or if it's something VS .NET 2k3 is doing to me. My problems are this: 1. The projects will not fin...more >>

Unable to use command line parameters
Posted by Rajiv Das at 2/23/2005 10:03:07 PM
Hi, This is the first time I am using managed cpp. However, I am unable to find how to get the command line parameters to the main function in both the console and the Application version. The IDE allows me to set command line values in Project Properties>Debug option. Can anyone give me so...more >>

Holding a file as a resource in a C++ .exe
Posted by Steve McLellan at 2/23/2005 3:58:51 PM
Hi, Many apologies if this is the wrong group; if anyone can suggest a better one please do. I need to write a very small C++ (Win32, not .NET) application that will essentially do a file copy after running some code to decide where to copy the file to. Ideally I'd like to contain the fi...more >>

Possible template parser bug
Posted by Hendrik Schober at 2/23/2005 3:55:42 PM
Hi, this is a cut down version of some some template meta stuff that I have: /////////////////////////////////////////////////////// template< typename TL, typename TR > struct Dummy1 {}; template< typename TL, typename TR , template<typename,typename> class TDummy > struct Ope...more >>

CAtlHttpClient and authentication
Posted by Thy at 2/23/2005 12:56:03 PM
Bonjour I use CAtlHttpClient to send parameters to a Linksys router by HTTP protocol (SNMP not activated by default). HTTP is password protected. I use Ethereal/WinPCap to trace exchange beetween PC and router. When I try to get datas (ATL_HTTP_METHOD_GET) , CAtlHttpClient try first to get ...more >>

Calling of dos.exe
Posted by wayne at 2/23/2005 4:09:19 AM
How do we create a windows user interface to call a dos.exe file? thanks -- wayne ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ ...more >>

MTA vs STA ApartmentStates
Posted by Alper AKCAYOZ at 2/23/2005 2:17:07 AM
Hello, There are MTA and STA ApartmentStates at Thread documentation in MSDN. I could not understand the explanations in MSDN. Can you kindly explain the differences and advantages of using MTA or STA? MTA : Multi Threading STA : Single Threading -- İyi Çalışmalar Alper AKÇAYÖZ ...more >>

Multithreading
Posted by Alper AKCAYOZ at 2/23/2005 2:15:01 AM
Hello, I am developing a TCP/IP Client application in Windows Forms (.NET) template. I use one MDI form as initial form where I connect to server and starts a background thread (thread_A) for receiving data. Here, I use the Socket_A By clicking a toolbarbutton, I send a command to server. ...more >>

Grid
Posted by Sherry at 2/22/2005 7:59:43 PM
½Ð°Ý........... ÂI¥i¥H¦b­Ódialog ¤¤¥[¤@­Ógrid §r ?? «Y«}¥Îcustom control §r ?? §Ú¦³­Ó°ÝÃD§r ........... ´N«Y§Ú¦b²Ä¤@­Ódialog ¤¤¦³¤@­Óbutton pop up ²Ä¤G­Ó dialog, ²Ä¤G­Ódialog ¤¤¦³¤@­Ógrid (§Ú¥Îcustom control). ­øª¾ÂI¸Ñ...... pop up ­ø¨ì²Ä ¤G­Ódialog, °£«D±N­Ó grid remove, ¤§«á´N¥i¥Hpop up ¨ì­Ó2...more >>

Getting File size from network byte order
Posted by Manu at 2/22/2005 4:44:07 PM
Hi, Following code shows how a packet is sent from a client to a server's socket. The file size (fileSizeTemp) is converted to network byte order before sending to the server. *((unsigned short *)&dataBuff[6 + filenameLen + 1]) = htons((unsigned short)(fileSizeTemp >> 16)); *((unsigned sh...more >>

low speed logaritmith calculation
Posted by rogerzar at 2/22/2005 4:41:01 PM
Hi all In my application I am displaying bipmap image I am using the log10() function, but it takes very long time to display the image, the pixel array size is 1272x1003 pixels. I am looking for a some tricks thats helpme to improve the speed of this function below find a pice of cod...more >>

migration from VC6 to VC++.NET Casting Pb
Posted by sergega4 NO[at]SPAM yahoo.fr at 2/22/2005 4:37:03 PM
Hi Trying to compilate my former VC++6 project under .NET, I get this message " 'static_cast' unable to convert (__thiscall CDlgPow::*) (void) in AFX_PMSG " what type are (MSDN not findable) AFX_PMSG ? and how to fix the trouble ? Thanks Xav ...more >>

Interface Copy Policy in dotnet
Posted by zhp80 NO[at]SPAM sina.com at 2/22/2005 4:04:06 PM
My collection need to upgrade to dotnet. It is right in vc6, but is error in vc7.net following is code: template <class ContainerType, class InterfaceType> class InterfaceCopy { public : typedef ContainerType::value_type SourceType; static void init(InterfaceType** p) { _CopyInter...more >>

How to send file over internet using http headers
Posted by spr1te77 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/22/2005 3:47:36 PM
Hi All, I'm new to VC++.net and I searched through the forums and couldn't find anything related to this. I'm trying to send a flat file from a VC++.net program to a PHP file residing on a webserver. I know you can call a website from VC++.net, but I'm not sure how to send a physical file...more >>

Query on vc++.net(Windows Forms Application)
Posted by Sanjeeva Reddy at 2/22/2005 2:07:47 PM
Hai, I am using vc++,net(Windows Forms application). I am able to open image on form. And i am able to draw a shape(line) on the image. Please tell me how to save this image along with the shape as a bmp file. I am awaiting ur response. Thanks&Regards Sanjeev ...more >>

#pragma unmanaged
Posted by Troy at 2/22/2005 12:33:03 PM
Hi, I am working on a mixed native/managed project involving DirectShow and am trying to decide how the modules should be partitioned. I am trying to understand the true affect of #pragma unmanaged in a managed project. From my research it seems that, assuming there are no managed/native th...more >>

Debugger slows down in C++.NET
Posted by Piet Van Vlierberghe at 2/22/2005 7:33:04 AM
We are a software firm developing in C++ and we recently made the step from Microsoft Visual Studio 6 to Microsoft Visual Studio .NET 2003. We are really excited about the quality of the compiler; however there seem to be some issues with the debugger or the combination of our code with the de...more >>

PDB Reader
Posted by Michael Chong at 2/22/2005 12:43:50 AM
How can I view PDB file in nice formatting page. TQ ...more >>

atl programming . help me..plz .. how to use SafeArrary.???
Posted by MakeFeel at 2/21/2005 6:02:03 PM
hi. i made ReverseArrary() and i wanna Get PACKET Struct in ReverseArrary of function but i don't know that's error.. How to Use SafeArrary ??? can u help plz..!!! ------------------DAgent.h---------------------- // DAgent.h #pragma once #include "resource.h" #include "Binding....more >>

Using MS Visual Studio.net to write Ms visual C++ 6.0
Posted by Charlie1 at 2/21/2005 6:01:02 PM
I am a student taking c++ programming I purchased a program Visual Studio.net (2003 ver), The college is using visual C++ 6.0. How can I use my porgram to write programs in Ms 6.0. Do I have to buy C++ 6.0 I allready purchased on program. ...more >>

using C++ visual Studio.net to write programs for c++ 6.0
Posted by Charlie at 2/21/2005 5:39:03 PM
I am a student taking a computer class programmning with ms visual C++. The college is using ms visual C++ 6.0 on it's computers. I purchased ms visual studio.net (Academic) (ver 2003) which is more up to date. How can I use my program to write C++ 6.0 the same way I am be instructed in cla...more >>

How to create a MFC MDI application without initial empty doc/window.
Posted by Frank at 2/21/2005 5:30:08 PM
Hi When creating a MFC MDI application through the wizard, I get an application that starts with a new/empty document/view. How should I edit code so that to start without it ? that is with the situation I get closing the initial empty window ? Thank you Frank ...more >>

VC unmanaged/managed issues for c# programmer
Posted by Dan Diephouse at 2/21/2005 3:37:15 PM
I am attempting to write a DLL which wraps C# code. The issue at hand is a print driver allows you to extend it by writing a DLL. Seeing that VC++ seems to be hopelessly out of my mental reach, I thought I'd write the DLL in C#. Of course, it turns out I can't solely write the DLL in C# man...more >>

Librarian->General->Additional Dependencies adds dependencies twic
Posted by Stevet96 at 2/21/2005 8:37:06 AM
I am building a C++ library using VS .NET 2003. I am adding a library into the Additional Dependencies input box. I then click apply and check the resulting command line. This causes the library to be added twice. The first instance is just the library name, the second instance is the full...more >>

C2300 error : 'System::Enum' : class does not have a destructor called '~TYPE'
Posted by kpinault NO[at]SPAM yahoo.fr at 2/21/2005 6:11:33 AM
I am having trouble trying to compile existing code with the /clr flag. The following error occurs and I can't figure it out how to fix this problem. I have the following declaration: typedef enum t_enEtatListeAuto { enEtatAucun, enEtatCoche, enEtatCroix }; This type is then used...more >>

Characters in a NumericUpDown
Posted by ReMEn at 2/20/2005 4:45:02 PM
Didn't find much documentation on value formatting on a NumericUpDown control. is it possible to separate numbers by a special character. For example, If I wanted to display an option to change a person's height in a NumericUpDown, I would not want them to see 62, I'd want them to see 6'2" ...more >>

Managed Extensions now obsoleted by CLI?
Posted by J at 2/20/2005 1:46:56 PM
I've just been reading a few articles on how Managed Extensions are now obsolete! Tough thing to hear, as I've been spending every spare moment studying them to try to solve a problem. I'd like to get up to speed on this as quickly as possible, and find out how the new CLI approach relates to...more >>

must go faster!
Posted by bill at 2/19/2005 11:16:23 AM
I am trying to figure out if I can use sse to help execute arithmetic operations faster. I have 900 values that must each be scaled with a divide and multiply. This happens repeatedly. Any examples I can be pointed to would be greatly appreciatted. I realize I could do just one multiply (ins...more >>

Still a bug....
Posted by Marty at 2/18/2005 5:10:04 PM
Hi, I'm still playing with this managed/unmanaged code within my VC++ project. I'm sure it's gonna work, need just some tuning that you could help me to find out. Here is below the .h and .cpp I use. socketListener.cpp configuration properties: c/c++ - General : /clr c/c++ - Precompi...more >>

Sorting in a Listview
Posted by ReMEn at 2/18/2005 4:01:02 PM
My question is this: How can I apply some kind of a function to a listview that allows it to sort by both string and numbers whenever a header is clicked? For example: ------------------- INDEX ------------------- 1 ------------------- 2 ------------------- 3 ------------------ h...more >>

C++ Overloading stream-extraction operator - HELP!
Posted by yeutim NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/18/2005 3:53:37 PM
I can't find anything wrong this with this class. Especially, Overloading Stream-Extraction Operator (in blue). Any one know what do I need to fix this problem please reply. Thank you for your help! --------------------------------------------- class MyData{ public: int x; float y; ...more >>

Managed code within unmanaged code ?
Posted by Marty at 2/18/2005 1:07:19 PM
Hi, Can I mix my managed code within my unmanaged code? Just for instance, I have a socket class that is managed code. It is include in my unmanaged VC++ project and it compile. The point is, when I want to instantiate my class, I still get this error: fatal error C1190: managed targe...more >>

Compile a plugin under VC++ win32
Posted by Jacky Luk at 2/18/2005 12:49:08 PM
Hi all I've downloaded desquirr from sourceforge But it has no .vcproj file, it was initially compiled with Borland C++ 5.5. But as the type is a plugin (ple) I need to recreate a new project and hook all files under a project. How do I make VC++ .NET 2002 compile it to a plugin app? is it a d...more >>

error LNK2001: unresolved external symbol _WinMain@16
Posted by jpeters at 2/18/2005 10:21:02 AM
Just installed Service Pack 5 for Visual C++ 6.0. Now I'm getting an error when linking as follows: inking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/HW8.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. what happened? I...more >>


DevelopmentNow Blog