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 2004 > threads for october 15 - 21, 2004

Filter by week: 1 2 3 4 5

/clr and /GM option
Posted by Maileen at 10/21/2004 10:16:54 PM
Hi, I use the /clr option due to my needs for automation of Excel. Unfortunately this option excludes /Gm which normal should reduce the build... instead of having a build of 40 000 kbits, now I have more than 1.5 Mbits application... Is there a another way to reduce the EXE file directl...more >>


SDK download (and ATL)
Posted by Bonj at 10/21/2004 6:57:05 PM
1) I've seen that you can download for free the .NET 2003 SDK, which seems to include everything you need to build apps from the command line, so you only have to actually pay for the development tools if you want the IDE, right? I've also seen the VS.NET 2005 beta express editions downloadab...more >>

exception handling question
Posted by George Economos at 10/21/2004 3:03:09 PM
Is the following code correct (managed c++ console app): // native classes #pragma unmanaged class MyException {}; class MyThrow { MyThrow() { throw MyException(); } }; // managed main #pragma managed void main() { try { MyThrow m; } catch( MyExce...more >>

Replace bool with int in a dll used in multi-languages
Posted by Torben Laursen at 10/21/2004 2:38:29 PM
Hi I have a dll that is beeing called by C++, VBA, Java and C# One of my customers does not like that I have bool in the argument list of some of the exported functions so I want to replace all my bool arguments with a int argument. But is -1 treated as false or true in the 4 languages above?...more >>

Mandatory component class instantiation ...
Posted by Dave at 10/21/2004 2:13:02 PM
We have developed a few .NET components. The application access these components through well defined interface IOurInterface. The application list display name of each component in the dialog, so user can choose which one he wants to use. To display list of available components we have to ass...more >>

Tool Files (.tool) in VS .NET 2005 (Whidbey)
Posted by AntonS at 10/21/2004 3:39:05 AM
Hi, I have found that VC++ has new great feature in VS .NET 2005. I mean customization of build process by adding new tools. It is really working for tools which are similar to compiler, but I didn't found how I can add new linker tool for example. Is it possible? Regards, Anton...more >>

Templates in .NET
Posted by Jon Evans at 10/21/2004 3:25:04 AM
I'm attempting to convert an existing VC6++ project to .NET. The project makes use of Microsoft's old VisSDK and this uses templates all over the place, generating 100's of errors. One common error is to do with this new 'typename' keyword - are there any #pragma's, or compiler options, th...more >>

C1001: INTERNAL COMPILER ERROR
Posted by Ray Mitchell at 10/20/2004 11:35:01 PM
I have Microsoft Visual C++ .NET 69462-112-0620947-18487 (VS 2003). When I compile my C++ console application program I get the following: C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) Has anyone heard of this bug/feature before? Thanks, Ray Mitchell...more >>



Reference problem
Posted by Edward Diener at 10/20/2004 7:28:05 PM
I have a class Y in assembly B which is derived from a class Z in assembly C. So I correctly add a reference to assembly C in assembly B, build assembly B and everything builds fine. Now I create an assembly A which refers to class Y in assembly B. So I add a reference in assembly A to assembly ...more >>

xp / win98 background colors
Posted by GregL at 10/20/2004 6:19:02 PM
Hi all I am developing an application using .net 2003 for xp that needs to also run on win 98 platforms. I am having dificulty when designing bitmaps, to get a background color, that a) is the correct beige type background color for xp b) will automatically convert to the grey background wh...more >>

linking error in VC7.0
Posted by Kay at 10/20/2004 5:31:22 PM
I already specified to ignore specific library: MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib command line is like: /INCREMENTAL /NOLOGO /DLL /NODEFAULTLIB:"MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib" but I am still getting conflict linking problems. But if I do specify ...more >>

VC++ .NET 2003 Pro and VC++ Toolkit 2003: Optmizing code
Posted by Alex at 10/20/2004 12:53:24 PM
Hi there I'm switching from VC++ 6.0 to VC++ .NET 2003. Since there is no stand-alone version of VC++ .NET 2003 Pro, I went and purchased the Standard version, which does not have an optimizing compiler. I have been made aware of the existence of the VC++ Toolkit 2003: http://msdn.micr...more >>

VC++ project file generation
Posted by sparc at 10/20/2004 11:13:06 AM
Hi, I have a software with the source code for windows. It can't be compiled in vc++ easily. Is it possible to set the break points in the source code using vc++ or atleast create the project file to browse the source....more >>

STL.NET available with Visual C++ 2005 Tools Refresh?
Posted by Valent Lei at 10/20/2004 8:19:08 AM
I have installed Visual Studio 2005 Beta 1 and Visual C++ 2005 Tools Refresh, and STL.NET is still unavailable. Have I missed some other important things, or STL.NET is not supported by this release of Visual C++ compiler? Thanks in advance! Valent Lei valent_lei@hotmail.com...more >>

probably a simple answer
Posted by matt7124 at 10/20/2004 7:53:01 AM
I use Visual C++.NET 2003. I've been reading an older book on C++. One program example shows how to make a simple window and draw a rectangle inside it. At the beginning, they include the statement: #include "rect.h" to include the corresponding library. But when I build, the compiler does...more >>

Replacing the file from which the code is executed
Posted by leguan NO[at]SPAM twism4life.de at 10/20/2004 1:57:54 AM
Hi all, how can I replace the file I'm executing at the moment? I want Windows to end the process, perform the copy/update action and then restart the new file. Are there any handy mechanisms? Thanks in advance....more >>

resource-only dll
Posted by Bonj at 10/19/2004 9:54:09 PM
when creating a resource-only dll, the only way I can get it to compile and work correctly, is to make it a non-resource-only dll. surely this can't be the way...? basically, there is a load of resources, in a dll. The DLL is a managed class library, but it has got an unmanaged function that a...more >>

Static library in Managed C++?
Posted by Graham at 10/19/2004 3:25:09 PM
Hi, I'm trying to create a static library (.lib) with Managed C++. Is this supposed to be possible? I have no problems in compiling the .lib, but I encounter problems when I try to use it. That is, I'm trying to link it into a Managed C++ DLL, but that's not working (I get LNK2020 "unresol...more >>

accessing reference parameter in managed C++ from C#
Posted by sklett at 10/19/2004 2:38:30 PM
STILL trying to wrap an unmanaged C++ class that is itself a wrapper to some COM stuff, not sure, it is littered with LPDISPATCH and InvokeHelper, etc. Problem is, when something goes wrong, I'm having a hard time debugging. In my managed C++ class(the one wrapping the unmanaged C++) I have a...more >>

wrapping unmanaged class convert MFC CString
Posted by sklett at 10/19/2004 10:29:59 AM
I have dealt with converting managed C++ String* to PCSTR using the Marshal class, but now I need to get managed C++ String* converted to MFC CString. I can't seem to figure out how this is performed? Is it possible? Any help would be greatly appreciated, thank you. ...more >>

exception/Exception clash using mixed dll in VB.NET
Posted by eisbaer1 NO[at]SPAM hotmail.com at 10/19/2004 10:14:19 AM
Hello, I'm having a problem with a mixed managed/unmanaged DLL. When I attempt to reference "Exception" in my VB.NET code, it conflicts with some other "exception" that gets somehow gets into the assembly. This code reproduces the issue: #using <System.dll> // #include <vector> is in st...more >>

Connecting access database
Posted by krish_jasmin NO[at]SPAM yahoo.ca at 10/19/2004 6:30:18 AM
Hi Friends, Does anyone know how to connect access database into Visual C++ in Visual Studio 6.0. I know the procedure to connect access database into Visual Studio .Net. But Visual Studio 6.0 is more complicted than .Net. Can someone help me pls? Thanks Krish...more >>

Using multiple programming languages - C++ & C#
Posted by Marshall at 10/19/2004 6:13:03 AM
I am the only C++ developer in my office. The rest of the team now uses C#. I want to be able to use some of the C# classes they have developed. I know this is possible, but can only find the usual VB/C# examples. Can someone give me some clear instructions (or point me to an article) on...more >>

Shell Extension
Posted by elda01 at 10/19/2004 4:17:02 AM
Dear Community, is there someone, who can tell me which FMTID and PID I have to use inside the GetColumnInfo-method, for changing the content of the "Type"-column in the detail view of the explorer? Under XP I have tried FMTID_STORAGE together with PID_STG_STORAGETYPE, but I failed. I...more >>

_beginthread()
Posted by dude at 10/18/2004 2:58:15 PM
I am trying to test out _beginthread() but I keep getting an error that: _beginthread : undeclared identifier I am using Visuall C++ with DotNET Studio and am on windows XP. Here is the full program: ******************************************************************* #include <windo...more >>

Finding Program Files in different languages
Posted by Elga at 10/18/2004 9:53:06 AM
How can I find the Program Files directory, independent of the language of Windows version ? Thanks, Elga....more >>

How to call IE to open an HTML file from a C program ?
Posted by Elga at 10/18/2004 9:49:07 AM
I have a user manual for my program in HTML format, and I want to open it from my program by clicking a button. How can I call the IE with my HTML file inside my program ? Thanks, Elga....more >>

[CLI-C++] Using sizeof inside a generic function
Posted by marcosegurini NO[at]SPAM virgilio.it at 10/18/2004 7:05:24 AM
Hi, I like to know if is it possible to use sizeof(T) inside a generic function. I don't know why the following function compiles while if I define ON_LINE_STATEMENT it does not. generic<typename T> void CopyArrayFromArray(array<T>^ % vVal, int size , array<Byte>^...more >>

establishing cause of access violation?
Posted by Bonj at 10/18/2004 5:31:03 AM
Hi I have a mixed managed/unmanaged project which thanks to you guys I've managed to get rid of the linker errors of, so cheers for that. But now I'm experiencing an unknown access violation. Firstly this is an extended stored procedure DLL, I've been able to debug it successfully by starting...more >>

managed string -> unmanaged string
Posted by Bonj at 10/18/2004 4:37:04 AM
I use the following code to convert a managed string to an unmanaged one: _TCHAR error[255]; const char* umstring = (const char*)Marshal::StringToHGlobalAnsi (merror).ToPointer(); _tcscpy(error, umstring); Marshal::FreeHGlobal(IntPtr((void*)umstring)); I can't use StringToHGlobalAuto becau...more >>

managed extensions
Posted by Bonj at 10/18/2004 1:02:51 AM
I'm having a problem compiling a managed extensions project that has one set of functions that is supposed to be unmanaged. I've found out how to set the properties of a single file, in which way I can set the /clr option on a file level, which is good. But when I add the unmanaged code as a ....more >>

Question on STL string
Posted by Bonj at 10/17/2004 9:30:37 PM
A basic string, declared using my own custom-defined typedef: typedef TSTRING std::basic_string<_TCHAR>; would TSTRING::data() have O(x) exeuction time proportionality to the size of the string, or static? ...more >>

Latest WTL released
Posted by M.C at 10/17/2004 7:55:01 PM
Version: WTL 7.5.4291.0 URL : http://sourceforge.net/projects/wtl/...more >>

LINK : fatal error LNK1201
Posted by Zak Williamson via .NET 247 at 10/17/2004 3:14:20 AM
We have an automated system that sync's to the head and does an= incremental build of our product (~350 projects) continuously=2E = Two of the projects on an intermittent basis report the error= "LINK : fatal error LNK1201: error writing to program database= 'ows\debug\XMPToolkitMTDLL=2Elib'...more >>

templates, C++, and LNK2019
Posted by Chris Burrger via .NET 247 at 10/17/2004 3:10:18 AM
I've found some other posts that deal with this linker error, but none of those solutions work for me. I just got VS.NET 2003 and I wanted to try it our with some basic algorithms. I am trying to make a singly linked list, using templates. I?ll post my code and then the error message at the end. ...more >>

error LNK2019: unresolved external symbol "unsigned char __stdcall
Posted by naveena pagudala via .NET 247 at 10/17/2004 3:09:50 AM
(Type your message here) -------------------------------- From: naveena pagudala I am trying to implement some code in power managment capabailites in xp using visual studio. net The program uses powerprof.h and powerprof.lib. When i build the program i am getting this error? The include a...more >>

Building DLL
Posted by Simon Cheng at 10/16/2004 11:18:45 PM
Hi, I have a simple question of building a DLL as follows: (VC2003) my_dll.h ====== #ifndef SHELL_DLL_API #define SHELL_DLL_API extern "C" __declspec(dllimport) #endif SHELL_DLL_API VOID DoSomething(); my_dll.cpp ======== #include <windows.h> #define MY_DLL_API extern "C" __declspec...more >>

extern "C++" ?
Posted by Bonj at 10/16/2004 9:15:16 PM
I can use extern "C" ... to link a C variable or runction into a C++ file, but what if I want to link a C++ variable into a C file? I get errors trying to use extern "C++" and it seems like it is looking for a variable with an additional underscore at the beginning, is the linker. Any ideas...more >>

linking to precompiled headers
Posted by Bonj at 10/16/2004 6:31:31 PM
Is incremental linking AND precompiled headers at the same time not like overkill? What is incrementaly linking if it's not the same as precompiled headers? ...more >>

Precompiled headers on C
Posted by Bonj at 10/16/2004 6:28:29 PM
Is it possible to avoid using precompiled headers on files that don't #include "stdafx.h". I have an ATL project,which has got a lot of ATL #includes in its stdafx.h. I now need to add some .c files to this project, that compile as hard raw C - not C++. The .c files obviously won't understand...more >>

Distinguishing between a mngd & unmngd assemblies
Posted by Nadav at 10/16/2004 2:37:03 PM
Ho can one distinguish between a mngd & unmngd assemblies? ( preferable in managed code ) -- Nadav http://www.ddevel.com...more >>

resources in static libraries
Posted by Bonj at 10/16/2004 1:14:50 AM
can you embed a resource into a static libary? I'm using a custom binary resource specified as a .bin file in the .rc file of the static library project I've got. I use FindResource, LoadResource, LockResource to get the resource. However FindResource is returning null. If I use exactly the s...more >>

dotnet framework 2.0
Posted by Bonj at 10/15/2004 6:33:47 PM
If I download the 2005 beta express versions and install them, will the .NET framework 2.0 (beta) replace the existing 1.1 (non-beta) that's on my machine? What I mean is will I have two versions side by side - i.e. is the beta marked as 'this version is not allowed to replace an existing one'...more >>

Possible very buggy situation
Posted by Ioannis Vranos at 10/15/2004 11:32:56 AM
I want to see whether I made some mistake before submitting this as a bug: #include <algorithm> #include <functional> #include <list> inline bool SomeFunc (const int a, const int b) { return a==b; } class Foo { std::list<int> someList; public: void f()...more >>

Erros C2371 and C2512!
Posted by Cleber Marinho at 10/15/2004 10:35:24 AM
Please, could someone explain me why there are errors in the following code? #include <iostream> #include <string> using namespace std; class Log { public: explicit Log(const string& msg) { cout << msg << endl; } }; int main() { string msg = "Hello, World!"; Log(msg.c_s...more >>

managed/unmanaged interfaces
Posted by Manny Silva at 10/15/2004 8:15:01 AM
Hi, I used ATL to create a COM library that does a lot of work via IStreams that are passed in. I had hoped to test this library using managed C++. I added my COM library as a reference and vc brought it in and created an interop dll for me. The problem is that it also wrapped the ISt...more >>

A service calling the SetProcessWorkingSetSize function fails
Posted by Eugen Frunza at 10/15/2004 7:45:05 AM
http://support.microsoft.com/?kbid=823684 A service that makes a call to the SetProcessWorkingSetSize function fails in Windows Server 2003 and Windows 2000 Server. SYMPTOMS When a service makes a call to the SetProcessWorkingSetSize function to try to increase the size of the working set...more >>

[MC++ 2005]
Posted by marcosegurini NO[at]SPAM virgilio.it at 10/15/2004 7:39:58 AM
Hi, the build of the following code returns me an error. So I am wondering what is the right way to pass ta a function a parameter that is a reference to an array item of value struct. TIA. Marco. using namespace stdcli::language; value struct MyInt { int i; }; void Set(MyI...more >>

RPC
Posted by DotNetFan at 10/15/2004 1:45:06 AM
Hello,everyone! I want to get the status of a remote host using C language, that is whether there is a hardware network connection between my computer and a remote host or not. Can somebody tell me how i can do it using VS.NET 2003? Thanks a lot. -- P.Zhou, China...more >>

Read the byte at 0x03fd...
Posted by lamalice at 10/15/2004 12:05:03 AM
Hi, i want read the byte at this adress : 0x03fd. It's the adress of the Line Status Register of the port COM1. There is a bit who signal the end of sending. I need read this bit but i don't know how do.... Thanks for your help lamalice. PS:My program must run over 98,2000 and XP....more >>


DevelopmentNow Blog