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

Filter by week: 1 2 3 4 5

#.NET and C++.NET
Posted by Eric at 9/30/2003 4:09:57 PM
what's difference between visual studio C#.NET and visual studio C++.NET...more >>


linker /ignore option no longer supported
Posted by Zarnywoop at 9/30/2003 12:17:39 PM
Hi, Could someone offer a solution to the following issue I have with vc7.1. With VC6 it was possible to turn off linker warnings with a #pragma comment( linker, "/ignore:4049" ) line in the source. With VC7.1 the linker now reports that /ignore is unrecognised, and sure enough when co...more >>

gdiplus.h
Posted by Espen_Løke at 9/30/2003 7:26:04 AM
I am using VS.NET 2003 to created a mixed mode exe. I am not using any gdi functions and it compiles fine. If I just include gdiplus.h the linker forces me to link in gdiplus.lib although I am not using any gdi functionality. Could somebody please explain this to me ?? I thought the linke...more >>

old iostream in vs2003
Posted by paulm at 9/30/2003 6:23:28 AM
there is no iostream.h in vs.net 2003 includes using iostream.h from vc6 header fails to link (limcimtd not found) So how do I compile code with old iostream header in it...more >>

How to use in C++ a DLL written in .NET
Posted by Marco at 9/30/2003 2:39:48 AM
I wrote a DLL in VB.NET using .NET Framework library, to access a Crystal Report. Then I registered the DLL using regasm.exe. Now I need to use this DLL from an executable that: 1) is written in C++ 2) Is based on MFC classes This is a part of my executable code: CLSID clsID; HRESULT hr...more >>

About LNK2001 in VC++ 2003
Posted by Irakli Lomidze at 9/30/2003 12:41:44 AM
Dear Sirs plz Help me I'm Trying compile in C++ .NET 2003 (VS 2003 Enterprise Arcitech) This Code (From MSDN) And Gives LNK2001 Linker Error When i remove "new" operator form constructor all works fine plz help me what happand and how slove this problem This code has no problem in vc++2002 ...more >>

Still no 256 colors in 7.1?
Posted by Stefan Slapeta at 9/29/2003 6:49:32 PM
At the moment, I'm rather surprised that it seems still not to be possible to edit graphics with more than 16(!) colors in VS 7.1. Is there something I do wrong? IMHO, there hasn't been invested anything to improve the ancient resource editor since 6.0. Even some primitive "My-first-paint-pr...more >>

7.1: How to specify delayload in cpp file?
Posted by Stefan Slapeta at 9/29/2003 5:24:41 PM
Hi all, I wonder how to specify the delayload option for the linker in a cpp file. In VC 6 this was possible by writing #pragma comment (linker, "/delayload:some_lib.dll") When I do the same in 7.1, I get the message abc.lib(xy.obj) : warning LNK4229: invalid directive '/DELA...more >>



Runing Program
Posted by Gabriel Hernandez at 9/29/2003 3:42:43 PM
Well I am just getting started with C++ and I am having a problem. I created a very simple program and when I try to compile it I receive this message Cannot compile the file 'C:\Program Files\Microsoft Visual Studio\MyProjects\Gabriel\Text1.txt'; no compile tool is associated with the fi...more >>

legacy dll callback and pinning pointer
Posted by Sai Kit Tong at 9/29/2003 2:41:25 PM
I have to interface managed application with my legacy dll. I have employed the wrapper approach but I have to deal with the asynchronous callback from the legacy dll, which likely goes through a thread other than the initial calling thread. I got the idea from MSDN and other articles on using t...more >>

Populate array from text file - help
Posted by Marcelo at 9/29/2003 1:18:50 PM
Hi, I have to do the following, and would like you suggestions on how I could achieve it the best way: I have a text file in the following format: 12345 54321 98765 56789 (3 spaces between numbers) Those are reference numbers for monetary values. They are associated with value...more >>

problems linking legacy code into my managed app
Posted by trashcan67 NO[at]SPAM hotmail.com at 9/29/2003 12:58:49 PM
I'm trying to use some code that's roughly 20 years old with my C++ ..NET app. I get a boatload of errors when trying to compile it - stuff like C2692 for the old-style function declarations, also C4027 and C2197. The code compiles okay without the /clr switch. I've tried putting #pragma unmana...more >>

warning C4355: 'this' : used in base member initializer list
Posted by Andrew Maclean at 9/29/2003 11:55:29 AM
Please look at the sample code below first. I understand the problem but I don't know how to get around it. I can see that I am passing a pointer to an unconsructed object to another constructor. How can I ensure that all construction is complete before using the "this" pointer. Can someone gi...more >>

Why this is failing to compile.
Posted by Jack at 9/29/2003 10:06:29 AM
I'm new to Visual C++ for .NET and during learning I encountered the following: In Form1.h file inside class Form1 following the book example I defined fuction that looks like this: (file Form1.h) void function() { ... some code ... MessageBox::Show(....); ... some code ... }...more >>

Potential Managed C++ bug - missing return statement allowed
Posted by brikelly NO[at]SPAM hotmail.com at 9/29/2003 9:58:43 AM
Hi all, The following code unfortunately compiles fine with VC++ 7.1 and the /clr switch: System::Type* foo() { if (0) { throw 1; } } Rather than throw a syntax error of "foo() must return a value", it instead compiles fine and has the less-than-desirable implic...more >>

why waveoutreset doesn't work in win2000
Posted by prasanna at 9/28/2003 10:44:26 PM
hi, i am developing an activex control for IVRS system on windows 2000 professional platform... the function waveOutReset does not work properly... whenver the system encounters the function call, it hangs and does not respond... but the same works well with windows98 on same system ...more >>

won't compile projects stored over network
Posted by david NO[at]SPAM dreamdynamics.com at 9/28/2003 7:14:21 PM
I just installed VC++.NET and haven't had much luck. It just won't compile anything that isn't stored on a local hard drive. Local projects are fine (well, other than my stupid mistakes) and compile without a problem. Below is the error log generated from a wizard-created project -- I didn'...more >>

Help on the order of #includes in C++
Posted by Webster at 9/28/2003 6:22:14 PM
Hello, I am having a problem with the order of the #includes in C++. When I compile it in VC++ 6.0 it gives me no problems, but when I try it out in VS.NET, it gives me a redefinition error: c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdlib.h(251): error C2381: 'exit' : rede...more >>

Invoking the Replace Dialog from code
Posted by Dan at 9/27/2003 3:56:24 PM
Anyone know how to invoke the .NET Replace dialog thorugh code (say, from within an addin)? More specifically, I'm trying to open the replace dialog with some pre-set parameters (such as FindText and ReplaceWith) for the user. I've tried executing Edit.Replace with just about every option but it ...more >>

Managed C++ destructor bug?
Posted by Mark at 9/27/2003 3:47:18 PM
I am having a problem using destructors in managed C++ and would appreciate help in finding a solution. Thanks Mark ----------- Error and Test Code ------------------------- The linker throws this error when the code below is built: testmanagedCxx error LNK2001: unresolved external...more >>

native 64-bit compilation on Win64 and .NET
Posted by Dennis Landi at 9/27/2003 11:04:05 AM
Hello, I have three questions: 1) I have been perusing the MSDN VC++ pages. Everything seems to be geared towards .NET integration. Will MS continue support natively compiled code or will they be pushing developers to do everything as "managed" C++? 2) Also, on 32-bit platforms we can c...more >>

Microsoft Visual C ++ Runtime Library
Posted by Fran L. Brooks at 9/26/2003 11:31:58 PM
While I am on the internet, no matter what I am doing, all of a sudden I get this message: (at the top) Microsoft Visual C ++ Runtime Library (in the body) Program: C:\ProgramFiles\smconnecta\wwm.exe This application has requested the runtime to terminate in an unusual way. Plea...more >>

Function question
Posted by TRINIX at 9/26/2003 5:48:00 PM
How do you use a function, that uses a parameter, inside another function?????? ...more >>

Console Programming in C++
Posted by Robert Shull at 9/26/2003 5:22:35 PM
I am taking a class in C++. We are creating console applications using Visual C++.NET 2002. The assignment is to create a "mailing label" using information coded into the program. My code looks like this: #include <iostream> using std::cout; using std::endl; void main(void) { co...more >>

Mouse driver for universal and intelligent scrolling behaviour with wheel
Posted by gicio NO[at]SPAM web.de at 9/26/2003 4:24:31 PM
Hi! I develop an application and I need a mouse driver for universal and intelligent scrolling behaviour with wheel. Something like the Microsoft IntelliMouse has. Is something like that anywhere availabel? regards, gicio ...more >>

std::hash_map consumes excessive memory?
Posted by chazind NO[at]SPAM yahoo.com at 9/26/2003 2:25:59 PM
I have simple hash_map<int, int>. When I insert 1000 entries my memory grows by about 2 MB (or almost 2k per entry). Anybody have any ideas on whats going on here? This is a real problem because I need to store about 1.3 million entries. I am using Visual C++ 7.0. David Chazin...more >>

Easy casting question (hopefully)
Posted by Chad Silva at 9/26/2003 1:49:23 PM
I'm getting a boolean property through reflection. That part works fine. Since PropertyInfo->GetValue returns Object*, to use it I need to cast it to a bool. This seems like (and likely is) the simplest thing, but i've been looking far and wide but can't seem to find the answer. The ...more >>

TCP/IP server - Windows Service vs. application
Posted by Josh Salit at 9/26/2003 1:39:53 PM
Hi, I'm working with a TCP/IP server (Mixed C/C++, built with VC++ .NET 2002) that can be run as either an application or as a Windows Service. The problem we are facing is that when running as an application, the server can handle 15+ connection attempts at relatively the same time. When...more >>

Bug in VC 7.1
Posted by emild NO[at]SPAM collectivestudios.com at 9/26/2003 11:34:01 AM
This code causes the compiler to allocade a *lot* of memory *very* fast, and even when I hit ctrl+break it still takes about a minute for my system to recover and start responding to user input again. What is more strange is the workarounds that prevent this compiler bug from occuring. For ...more >>

Singleton design pattern implementation for VC .Net
Posted by Ken Cattanach at 9/26/2003 9:22:02 AM
Hi, Does anyone have a good implementation of the singleton design pattern for VC .Net 2003? Thanks. Ken. ...more >>

where is the first page?
Posted by franco at 9/26/2003 12:46:49 AM
please I've a problem with visual c++.net. I'm new in this environment and I can't understand how I can tell to c++.net which is my first form to display and ho attach to it new forms. where is the "main"? I hope someone could help me...more >>

Expanding strstreambuf
Posted by Mihajlo Cvetanovic at 9/25/2003 7:14:12 PM
Hi all, I'm writing a winsock app and I want to recv bytes in C++ way. How can I expand (grow) strstreambuf once it's created? Is there a better class instead of strstreambuf? Now I have a CBuffer class with a char* dynamic buffer, the size of the buffer and the length of useful data in ...more >>

.NET ListView with MFC.
Posted by Bob Jones at 9/25/2003 12:53:24 PM
I've got a large MFC app with simple dialogs of edits and buttons. The program runs ok as managed (/clr). Is there a way to use the .NET Forms::ListView class on existing windows (ListView has many more built in features than CListCtrl) or do we have to rewrite to only use .NET classes. T...more >>

Dodgy string conversion (please help)
Posted by Duncan Winn at 9/25/2003 12:02:18 PM
I am new to VC++7. I am using a method GetPrivateProfileString that requires an LPTSTR. I have defined this as a: char * data_name; I am then trying to convert this to an LPOLESTR and I have done this as follows: LPOLESTR dunk_data = (LPOLESTR)T2CW(data_name); However this is in a ...more >>

Retrieving data from a MySQL database
Posted by Bryan Powell at 9/25/2003 11:41:15 AM
Is it possible to grab data from a MySQL database and print it on the screen with VC++? The database is on a linux server if that would make any difference. ...more >>

Help! Can not find assembly file at runtime.
Posted by Larry at 9/25/2003 11:39:21 AM
Hi my friends, I created a dotnet class library and saved it at : F:\Test\c++\ex32a\debug\ex32a.dll. I created a client program to use this class library. My client file is loacated at : F:\Test\c++\ex32b\debug\ex32b.exe. I tryed #Using <F:\Test\c++\ex32a\debug\ex32a.dll> #Using <...more >>

Passing COM autoptr to managed C++ dll
Posted by drewtenn NO[at]SPAM yahoo.com at 9/25/2003 11:18:06 AM
I have recently converted all of my native C++ dll's to be compiled with the /CLR switch. After doing this, I notcied a very strange and frustrating issue. One of my managed dll's calls another using a COM smartptr (MSXML2::IXMLDOMDocumentPtr to be exact). When calling my function in another ...more >>

Template instantiation problem with vc++.net 7.1 compiler
Posted by Hari at 9/25/2003 10:23:42 AM
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and run this works fine. but if build in unicode release or release this does't work. IS THERE AN...more >>

Making cl.exe output full paths for errors
Posted by Andrew Ward at 9/25/2003 10:17:41 AM
Hi All, Does anyone know of a way to make cl.exe return full paths for warnings and errors? By default it seems to return relative paths. Andy ...more >>

Hmmm
Posted by Nishant S at 9/25/2003 8:18:29 AM
I am facing serious problems with the news server. I noticed that all my posts the last two days failed to appear here. And so I actually made a post a few minutes ago about how none of my posts were getting posted. The post was titled "Is the news server showing delays/errors?". And the contents...more >>

Is the news server showing delays/errors?
Posted by Nishant S at 9/25/2003 8:05:51 AM
I am using msnews.microsoft.com and am finding that none of the posts appear on the server. Anyone else facing this problem? BTW I am not even sure if this very post will appear :-) -- Regards, Nish [VC++ MVP] ...more >>

Command Line Args
Posted by Eric at 9/25/2003 7:44:12 AM
How do I enter my command line args with .Net? I know on 6.0 you went to project -> properties and on one of the tabs you could enter your args. I can't find this anywhere on .Net...more >>

Copying from one char[] to another char[]
Posted by Marcelo at 9/25/2003 4:29:55 AM
Hi, I have a declaration like the following: char tmp[8]; char tmp2[5]; strcpy (tmp, "58257619"); strcpy (tmp2, ""); Now, I'd like to copy the last five digits from tmp to tmp2. I've tried doing a for loop, but there's always garbage at the end of tmp2, and when the function return...more >>

passing value into ondraw function
Posted by ellieong at 9/25/2003 3:33:19 AM
Hi How do I pass a value let's say an integer value into the ondraw function, in order to vary the position of any drawing for instance a line? Ellie....more >>

change in Variable Value
Posted by Varadha at 9/25/2003 1:38:24 AM
Hi, I am declaring a variable static char Version_No = '1' in header file header.h In a application "app.exe", i am changing the value of the variable in to '2' In the same application i am calling an function fun1() which is in another dll, MYDll.dll(which is linked implicitly to the exe)...more >>

Setting up OpenGL in C++.NET
Posted by Brett Baisley at 9/24/2003 9:23:04 PM
I am trying to get OpenGL libraries to work in Visual C++.net, but I am having great difficulty. I found a web site that explains what to do, but it was written for VC++ 6.0 and its not the same for VC++.net. It says to go to "Settings" under project menu, then click on the "Link" tab and unde...more >>

Help, where to set up /CLR compile option.
Posted by Larry at 9/24/2003 4:55:02 PM
Hi My friends, I'm using c++.net (studio 2003). I'm trying to set the Compile As Managed compiler option. I read a book it should be in [Project Property] -[C/C++]-[General]. But I can not find any compile option here. Something wrong with my Visual Studio 2003? Thanks ahead. Larry ...more >>

Why I can not create the type?
Posted by Larry at 9/24/2003 4:13:06 PM
These is a interface " IPerson" and a class "SoftwareDeveloper" support the interface; public __gc __interface IPerson { void Eat(); void Sleep(; void Work(); }; public __gc class SoftwareDeveloper : public IPerson { ~SoftwareDeveloper() { System::Console::WriteLine("Fi...more >>

memory address question
Posted by Wajih-ur-Rehman at 9/24/2003 2:51:11 PM
int b [10] = {1,2,3,4,5,6,7,8,910}; b is a pointer that points to the first element. Does this mean that "b" is stored is some other memory location. Assuming that the size of int is 4 bytes and size of the pointer is also 4 bytes, Does this mean that there will be 44 bytes allocated after t...more >>

From C# to VC.net
Posted by PawelR at 9/24/2003 1:07:34 PM
Hello Group I've problem with convert this function private string getMD5(string s1) { string s1 = "UserName" byte[] data1ToHash = (new UnicodeEncoding()).GetBytes(s1); byte[] hashvalue1 = ((HashAlgorithm) CryptoConfig.CreateFromName ("MD5")).ComputeHash(data1ToHash); string s2=BitCo...more >>


DevelopmentNow Blog