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 > october 2003

Filter by week: 1 2 3 4 5

Drag and Drop
Posted by MT00KSTN - Hai Ly Hoang at 10/31/2003 7:20:52 PM
I want my application to show a window (named W1). When the user drag an icon from Window Explorer to window W1, my application will do certain thing on that file. How to implement the drag operation ? ...more >>

Calling C++.NET code from C#.NET code
Posted by David Elliott at 10/31/2003 4:11:02 PM
I have source code for a 3rd party product. The product is written for traditional C++. There was a VS .NET Solution File that was provided for compiling the DLL. I have compiled the code using the VS .NET 2003 C++.NET and am now trying to build some demos to test the features. My quest...more >>

Drawing a line using Graphics class
Posted by Coralin Feierbach at 10/31/2003 2:02:52 PM
I created a Windows Form Project using VS.net. I'm trying to draw a line between two points. (Plotting a graph, dynamically) This is the code I have so far: What do I have to do to actually see the line painted on my form? private: System::Void button1_Click(System::Object * sender, ...more >>

Compiler error
Posted by Jens Thiel at 10/31/2003 11:52:34 AM
....or what am I doing wrong with the the i++ increment operator? /* compile with /clr Output (compiled with VS.NET 2003, Framework 1.1) is: r=0, i=0 r=1, i=0 r=2, i=0 */ #include "stdafx.h" #using <mscorlib.dll> using namespace System; int _tmain() { ...more >>

How to write these functions?
Posted by JS. at 10/31/2003 8:29:57 AM
Hi, all I use VS .NET 2003. How to write these functions ? For example, I have tried this. But, I have got LNK2001 because of Func_1. This: // Func.h void Func_1 (void); // Func.cpp #include "Func.h" void Func_1 (void) { // Do something } // CA.cpp #include "CA.h" #include...more >>

C1001 INTERNAL COMPILER ERROR - VC7
Posted by CB at 10/31/2003 1:40:23 AM
I'm upgrading our product from VC6 to the VC7 compiler and came across the C1001 error: fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\CxxFE\sl\P1 \C\toil.c', line 6931) I've managed to reliably reproduce it using the few lines of code below th...more >>

BUG: covariant return types
Posted by Rob Grainger at 10/31/2003 1:36:37 AM
Hi, When compiling the following code under VC .NET, template <typename T> class IBaseCollection { public: virtual T Get() const = 0; }; template <typename T, typename Base> class IDerivedCollection : public Base { public: virtual T Get() const = 0; }; class Element { ...more >>

Export Makefile
Posted by dmille45 NO[at]SPAM hotmail.com at 10/30/2003 3:27:21 PM
Does the new VS.Net allow an Export Makefile as the old VS6 did under 'Project | Export Makefile'? If so, where is that in VS.Net for C++? I could not find it. Thanks, Dave...more >>



Question about v2 managed c++ compiler
Posted by Chris Wundram at 10/30/2003 12:29:54 PM
When the next managed c++ syntax is implemented (in whidbey or orcas?), will it still support legacy code written in the v1 syntax (e.g. "__gc class" instead of "ref class"), or will this older code have to be rewritten to use the newer compilers? ...more >>

Calling a class in C# in a dll from C++.net
Posted by Kenric Li at 10/30/2003 10:50:31 AM
Hello, May I know how I can call a calss from a dll implemented by C#, from Visual C++.net? There is no header file that comes with it. But a documentation with the list of the class methods is available. Regards, Kenric ...more >>

Howto make a TreeView readonly above item no 5
Posted by Lars Grøtteland at 10/30/2003 10:30:48 AM
Hello! I would like this to happen: In my treeview - I have 4 main group, and about one hundred items under these four. Are there any way of making the selection under the fourth item, item number 5. How can I set everything above this "read only"? And everything below available to be selec...more >>

Knowledge Base Article (814472) - Need clarification
Posted by Sai Kit Tong at 10/30/2003 10:04:50 AM
In the article, the description for "Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports or Managed Entry Points" suggests the creation of the class ManagedWrapper. If I need to build multiple mixed mode dll's used by a consumer application, do I have to implement mu...more >>

Hyperthreading & VC7.1
Posted by Andrew Maclean at 10/30/2003 9:31:52 AM
Does VC7.1 support hyperthreading? I looked in the documentation but I could find no reference at all. ...more >>

WSE for ATL Server?
Posted by John Sparrow at 10/30/2003 8:17:37 AM
Are there any plans for a Web Services Enhancement release for ATL Server, so that webservices developed using ATL Server can use features such as WS-Security as easily as ASP.NET webservices? JS...more >>

how to do in vc.net---include *.h
Posted by ultrabar at 10/30/2003 1:33:14 AM
Please question, how to include *.h in vs.net 2003? thanks...more >>

Problems with afxdb.h
Posted by Tim at 10/29/2003 4:23:08 PM
Hi, I am writing a console app in C++ that is going to be communicating with an MS SQL Server Database. I was going to use ODBC to do this and read that I need to include the afxdb.h header. When I do this, I get the following linker errors: nafxcwd.lib(afxmem.obj) : error LNK2005: ...more >>

VC7.1 vs. VC6 C Compile time
Posted by Ys at 10/29/2003 3:23:18 PM
Hello, I have just migrated my project from VC6 to VC7.1. The project is mostly written in C, and some in C++ without MFC (Console application). I am on Win2k. I am not using managed code in VC7.1. I am experiencing VC7.1 C compile time taking about 4 times of VC6, though interestingly ...more >>

erroneous 'unreachable code' warning in a throw statement?
Posted by Hovik Melikyan at 10/29/2003 9:31:13 AM
This code produces a 'unreachable code' warning at line 16 (throw new X ...) with no visible reason: #include <string> class X { std::string msg; public: X(const std::string& imsg): msg(imsg) {} std::string get_msg() { return msg; } }; void f() { throw new...more >>

Trouble with DataViews in VC++
Posted by slickvicky NO[at]SPAM hotmail.com at 10/29/2003 7:04:05 AM
hi, this is my first post here. i'm in desparate need of resources for VC++.NET; the code in MSDN is only directed for VB/C#.. for C++ its very few and faar in between!! the web is no good either!! :'( now that my rant is over, here is my question: i have applied 2 dataviews on a datatab...more >>

But I'm not trying to run it in DOS mode!
Posted by john_smith_nmrn NO[at]SPAM hotmail.com at 10/29/2003 6:02:15 AM
Greetings, I am running XP Professional. I have an exe file written in VC++. When I try to run it it flashes a command window at me and shuts down. I created a shortcut for it so I could set it not to close the window right away and I see the message: "This program cannot be run in DOS mode...more >>

Overriding CSoapHandler::InitializeHandler in ATL Server webservice ?
Posted by john sparrow at 10/29/2003 1:47:37 AM
Hi There! I have an ATL Server Webservice created with the VS Wizard. In that service I wish to Initialize an ISAPI service (through a call to the m_spServiceProvider member) for that handler. I figure the place to do it is in an override of the InitializeHandler () member function but a...more >>

Help with C++ assignment
Posted by Diane Ch at 10/28/2003 11:35:29 PM
I have the following assignment: For this assignment you are to design and implement a program that will be used to generate a customer billing report from item information input by a user. The input for your program consists of the name of the customer, which can be up to 25 characters long...more >>

Can someone point me in the right direction?
Posted by John Osborne at 10/28/2003 11:18:41 PM
I'm a beginner at this programming thing (C# and VB/VB.Net) but I have been given a task that I don't even knwo how to start to accomplish. I'm not asking anyone to write the code or anything, just to point me in the right direction if you can. The situation is this... My boss w...more >>

Using VC++ to read raw bytes from hard disk
Posted by Shrirang Ballal at 10/28/2003 8:05:46 PM
I am doing a project which requires to read the raw bytes from hard disk. It rrequires to access the partition table and then the individual partitions. I want some material related to these issues. If someone can suggest of a book then that is also good. All the books I have seen are rela...more >>

Can it be done??
Posted by Morten Overgaard at 10/28/2003 7:45:46 PM
Hi I have a C# component which fires events. I want to catch these events in my MFC app compiled with the /clr. I know I can define a managed class in my MFC app which traps the events - but I need to catch the event in an unmanaged class inside my MFC App. Can this be done. regards Mort...more >>

about c# , com and vc.net
Posted by ultrabar at 10/28/2003 7:43:49 PM
can a control written in c# convert into com and be invoked in unmanaged vc.net?...more >>

VC++ .NET 2003 Standard Edition
Posted by Wally at 10/28/2003 12:07:50 PM
Does it include an optimizing compiler?...more >>

What type of c++ should I use?
Posted by ilPostino at 10/28/2003 11:48:05 AM
Hey, My experience with c++ is limited to ATL and for the past 3 years it's just been c#. I need to write a UI intensive application that is just too slow in managed code. So I'm re-doing it in unmanaged c++, what should I use in vc++ 7, ATL, MFC or Win32? thanks Craig ...more >>

C++ Installer
Posted by Rob Reagan at 10/28/2003 6:06:15 AM
I need to write an installer bootstrap program for my Visual Basic .NET application. This installer program needs to compile to native code. I will use this installer to check to see if the .NET framework, MDAC, and an existing instance of my MSDE database is already installed. If these co...more >>

Local struct causes Internal Compiler Error (VC++ 7.1)
Posted by jgresula NO[at]SPAM seznam.cz at 10/27/2003 11:27:24 PM
struct A { }; void fn() { for( int i=3; i--; ) { struct Local { Local( const A& a) {} }; } } BTW, is this group the proper place where to report VC++ related bugs? -- Jarda...more >>

vc++ 7.1 #include problems
Posted by www.espiredreams.net at 10/27/2003 10:32:21 PM
I recently started using vs2003 from vc++ 6.0. I am having the starngest of problems. I cannot include any files into my code (string.h or iostream.h). I installed vs '03 after a clean install of windows (no problems with prior versions of vs). I have checked to make sure all the inclu...more >>

Problem getting Visual C++ to work
Posted by new to VC++ at 10/27/2003 6:32:41 PM
i've been developing code in turbo C++ in a DOS based environment . Now that i've finally shifted to Visual C++ , i really can't get my old programs to work . I realised everything has changed . Even most of the libraries have changed . specifically how do i clear a window once the user ...more >>

TAPE
Posted by ZhangZQ at 10/27/2003 4:45:19 PM
Hi, does anybody now is there some API to control the TAPE device in Windows? If yes, can you show me what are they? if no, do I need to write a device driver? Thank you. ...more >>

CDHtmlDialog::OnLButtonDown
Posted by Don at 10/27/2003 3:08:49 PM
I'm trying to capture the left-mouse button down event in a CDHtmlDialog window (the body of the HTML document). I'm trying this but nothing's happening: HRESULT OnHtmlMouseDown(IHTMLElement *pElement); DECLARE_DHTML_EVENT_MAP() BEGIN_DHTML_EVENT_MAP(CMyApp) DHTML_EVENT_ONMOUSEDOWN(_T(...more >>

<auto_ptr> inside <map> problem in VC 7!??
Posted by Evgeny at 10/27/2003 2:58:53 PM
Hi, all! I didn't find yet solution for this problem! Somebody knows where is a catch? Looks like "operator =" or copy constructor not implemented in one of internal templates.... Thanks in advance class CMyBase; typedef auto_ptr<CMyBase> MyBasePtr; typedef map<int, MyBasePtr> MAP_BASE...more >>

Scaling application
Posted by sb_1974 NO[at]SPAM hotmail.com at 10/27/2003 2:26:22 PM
Hi I have a application that connects to an ftp server and downloads documents. The application is multithreaded to bring in concurrency for downloading files from different source locations (not downloading files from one source location). I am unable to scale the application, while running ...more >>

assertion problem in Mixed mode DLL
Posted by Craig Klementowski at 10/27/2003 11:20:34 AM
Pardon the cross post, but I'm not sure where exactly to post this question. We have MFC application using many MFC extention DLL's. We started using a new MFC extention DLL that is mixed mode so we could use some .Net components we have built. We are getting an assertion in ~CCmdTarget when...more >>

List Of running processes
Posted by Leonid at 10/27/2003 10:59:41 AM
Hello, How to get the list of running processes in VC++ (Similar to Task Manager->Processes window) Regards Leonid...more >>

Calling managed component from MFC application
Posted by JoeZ at 10/27/2003 10:45:07 AM
Hi, Can some one point some samples of calling managed code from unmanaged code. Here is basically what I need: I have an MFC application with several MFC dlls, and I have a new .net component, I need to find a way to call the .net component from either the application or from one of exis...more >>

Class
Posted by anonymous at 10/27/2003 8:15:08 AM
I have a function get with 3 parameters Get(par1,par2,par3). This function is called i main: main {.... Get(par1,par2,par3); ....} I would like to put this function in class. Class {Public: Get(par1,par2,par3) {....}; } But now when I call this function:Get(par1,par2,par3); I get t...more >>

Linking problem - bug? please help.
Posted by Gary Hughes at 10/26/2003 6:55:12 PM
Hi all, sometime I posted a problem in here where I was getting the following error from the linker in VS C++ 2003. Linking... GCClass.obj : error LNK2022: metadata operation failed (80131188) : Inconsistent field declarations in duplicated types (types: GCClass; fields: m_blah): (0x040000...more >>

Help, please!! <auto_ptr> & VC7 problem!
Posted by Evgeny at 10/26/2003 5:42:59 PM
Hi, all! I try to convert my existing code written in VC6 to VC7 and have some problem with stl auto pointer template. class CColumn; #include <memory> typedef auto_ptr<CMyBase> CMyBasePtr; class CMyBase { virtual CMyBase* Clone(void) const { return MyBasePtr(new MyBase()); } } ...more >>

Cryptography and Compression
Posted by Tom at 10/26/2003 8:14:35 AM
Hi, I have a project involves in file compression and encryption (generate asymmetric key for file transfer). Which API should I use in C++? Which good book or online material for this topic? If there are C, C++, VC++ and C# for selection, which programming language is the best in ...more >>

How to write with VC++ and convert the final code to gcc
Posted by write vc++ code with intetion to convert the final code to gcc at 10/26/2003 4:24:41 AM
Hello, I need to write a program in VC++. I would like to know how can I write it in such a way that once I will finish it, will be easy to convert it to gcc. If you have any general guidenss or good references please let me know. Thank you in advance. ...more >>

Internal Compiler Error using temporary object containing gcroot
Posted by Vladimir Kouznetsov at 10/24/2003 5:38:26 PM
#using <mscorlib.dll> #include <vcclr.h> public __gc class A {}; struct B { void f(A* e); gcroot<A*> e; }; int main() { B().f(new A()); // note that B b; b.f(new A)); works fine return 0; } ...more >>

LNK1120 when compiling a C++ library to .NET managed code
Posted by Aaron Queenan at 10/24/2003 4:39:18 PM
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error LNK2020: unresolved token (0A000007) memset LINK : error LNK2020: unresolved token (0A000008) free LIN...more >>

Linking managed code with VC6 dll (IJW) - unresolved external symbol (weird bug??)
Posted by Sai Kit Tong at 10/24/2003 1:03:50 PM
I try to utilize an old native code class library for my managed C++ application, and experience a weird problem. I used IJW approach and included the header file for my native class definition. I compiled my application. The compiling phase was successful but I had a linker problem on just one...more >>

string
Posted by miya at 10/24/2003 12:26:11 PM
it is any function for string simular to isdigit()?...more >>

what a file after acmConvert
Posted by Dirk Reske at 10/24/2003 2:11:44 AM
Hello, I've tried to convert a MP3 file to WAVE using the Audio Copression Manager. my Destination format is: WAVE_FORMAT_PCM All works fine what a file Type do I get then? When I try to open it with media player, it says that it is an unknown format ...more >>

Opening a file within Visual.NET IDE as a Post-Build Event?
Posted by Ramen at 10/23/2003 8:45:36 PM
After my Build, a file gets generated "a.txt". I want to open "a.txt" as a Post-Build Event on Visual.NET window (like doing a File>Open>File). I know I can launch wordpad or notepad as a Post-Build Event, but I want it opened within Visual.NET. Anyone have any ideas? ...more >>


DevelopmentNow Blog