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 > august 2004 > threads for august 22 - 28, 2004

Filter by week: 1 2 3 4 5

__stdcall and name decoration
Posted by Eric Twietmeyer at 8/28/2004 1:16:24 PM
Hello, I am wondering how it is that all of the windows base dlls, like kernel32.dll specify that all of their functions are __stdcall and yet the exported names from the dll are not decorated with the preceeding underscore and following @ parameter byte count. When I export a function from...more >>


Linker error when using VC7
Posted by Deepa via .NET 247 at 8/28/2004 5:28:49 AM
(Type your message here) Hi, My app (DLL) that was developed in VC6 is using ddao35u=2Elib to= access the Access Database=2E When I try to build the same DLL using VC7 I get the following= linker error=2E Any pointers on how to resolve this? Thanks! Deepa error LNK2019: unresolved e...more >>

GetCurrentThread returns null
Posted by Claes Bergefall at 8/27/2004 11:33:57 AM
I'm trying to call the GetCurrentThread API function from a managed C++ app, but for some reason it always returns a null handle?! And calling GetLastError (or Marshal::GetLastWin32Error) returns different values depending on where I put the code. For example: The following is the code that...more >>

creating array of objects ??
Posted by Chris at 8/27/2004 11:05:16 AM
Hi, to create an array of 2 objects (e.g. of type '__gc class Airplane') I need to do : Airplane * arrAirplanes __gc[] = new Airplane* __gc[2]; arrAirplanes[0] = new Airplane("N12344"); arrAirplanes[1] = new Airplane("N12345"); Actually, I create an array of Airplane-pointers first and t...more >>

Spy++ can capture Tooltip messages. HOW???
Posted by Johnny at 8/27/2004 2:23:33 AM
I have tried every Windows API that I can think of to get the Tooltip message that pops up from the tooltips_class32 window class but without success. I know it can be done because SPY++ can retrieve them when they are visible. Does anyone know how SPY++ does it or how it can be done? Than...more >>

property overloading
Posted by Terje at 8/27/2004 2:07:02 AM
I'm converting a project from MC++ to C++/CLI but can't figure out how to convert this overloded property: __property void set_Item(String *key, Object *value); __property Object *get_Item(String *key); __property void set_Item(String *key, int index, Object *value); __property Object *get_I...more >>

CStrings and managed Code
Posted by dbailey NO[at]SPAM radiancetech.com at 8/26/2004 2:36:35 PM
I have an application in which some unmanaged classes are being pulled into a Managed Windows Form application. The umanaged class has a number of CString variables. When I link the program, I get the following error: LINK : error LNK2020: unresolved token (0A000039) ATL.CStringT<char,StrT...more >>

HOWTO: get some of the "not included" stuff when using the Visual C++ Compiler Tookit 2003
Posted by Jonathan Wilson at 8/26/2004 1:36:10 PM
Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of msvcrt.lib included there is the exact same one as comes with Visual Studio ..NET 2003. There are some other things that might be usefull (e.g. the debug version of msvcrt.lib) but msvcrt.lib is the most usefull thing....more >>



How to retrieve serial number of OS or CPU for copy protection?
Posted by Klaus Bonadt at 8/26/2004 11:59:33 AM
In order to protect software from being copied without licence, I would like to use something like a key, which fits only to the current system. The serial number of the CPU or the current operating system would be appropriate. However, I do not know how to retrieve the information. Could you ...more >>

Visual C++ Tools Refresh ready today
Posted by Brandon Bray [MSFT] at 8/26/2004 10:10:33 AM
Shortly, the Visual C++ Tools Refresh will be available on the MSDN Visual C++ devcenter. You will need to have installed the Visual Studio 2005 Beta first. <http://msdn.microsoft.com/visualc> I have been talking about this a lot over the last two months. All of the features that are missing i...more >>

managed extension does not register (regsvr32) .. please help
Posted by saurabh007 NO[at]SPAM gmail.com at 8/26/2004 9:17:48 AM
In some of the development computers the COM DLLS with managed extension turned on (even though there are no .NET projects in its add reference) is not able to register. regsvr32 hangs up, it does not even return a failure message. It starts registering as soon as I turn off the managed extensio...more >>

Opening LPT port in C++
Posted by pascal NO[at]SPAM go.ro at 8/26/2004 8:07:39 AM
Hi, I've posted earlier a question regarding the call to GetCommState. Here is the code for the function. The problem is that GetCommState always returns false!! Why? void Open() { // the DCB and COMMTIMEOUTS structure are declare a __value struct DCB *dcbCommPort = __nogc new DCB(); ...more >>

how to build a Visual C++ import library
Posted by Jonathan Wilson at 8/26/2004 7:45:09 AM
I am looking for a way to build a Visual C++ import library for a .DLL I dont have source code to. How can I do that?...more >>

Why does Managed DLL export so many unmanaged symbols?
Posted by robert.burke NO[at]SPAM gmail.com at 8/26/2004 7:25:39 AM
I'm trying to create a hybrid Managed/unmanaged C++ DLL that uses ATL and wraps some of DirectShow. When I add a reference to that Managed C++ DLL in another managed project, I end up "polluting" my namespaces will all sorts of unmanaged stuff I didn't want the DLL to export. For instance, ...more >>

Return type
Posted by pascal NO[at]SPAM go.ro at 8/26/2004 6:55:43 AM
Hi, How can i specify the return type of a function returning a managed array of chars. If i try to write: "char __gc[] func()" i get an error! How can i do that? Thanks!...more >>

question about HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories
Posted by Jonathan Wilson at 8/25/2004 8:54:34 PM
Where do the values for $(VCInstallDir), $(FrameworkSDKDir), $(FrameWorkDir), $(FrameWorkVersion) and $(VSInstallDir) (and any I have missed) come from?...more >>

How can I access an URL through the code
Posted by ssunderk at 8/25/2004 8:24:06 PM
In my program, I should be able to access URL using the code in VC++/VB. I would appreciate if anybody can provide a sample code. -- ssunderk ------------------------------------------------------------------------ Posted via http://www.codecomments.com --------------------------------...more >>

Pb firing events with VC 2005
Posted by Chris at 8/25/2004 12:31:59 PM
Hi, Still having problems with converting my VC 2003 project to VC 2005 beta, this time with events (using the new C++ syntax). My class defines the following event: event PropertyChangedEventHandler ^ PropertyChanged; (it uses the System.ComponentModel.PropertyChangedEventHandler dele...more >>

vcbuild and visual C++ compiler toolkit 2003
Posted by Jonathan Wilson at 8/25/2004 11:29:36 AM
Is it possible to use vcbuild with the free MS compiler toolkit, as in can someone with just the MS toolkit and no access to a copy of Visual Studio itself use vcbuild to compile a Visual Studio .NET 2003 project? Assuming it is possible, I can then work on getting my specific project to co...more >>

vc++ .net 2003 ide is killing itself ?
Posted by Lynn McGuire at 8/25/2004 11:11:08 AM
I am starting up Visual C++ .net 2003. When I load any project, it dies with the following error message: Runtime Error ! Program: ...Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the...more >>

__gc and __nogc ???
Posted by Chris at 8/25/2004 11:06:14 AM
Hi, if have a __gc class with a datamember of type : a pointer to a DateTime, but I get a compiler error : __gc class Employee { public: DateTime * m_hiringDate; ==> error : cannot declare interior __gc pointer or reference as a member of 'class' Employee(DateTime * hir...more >>

How Do I create a MCPP Property which returns an enum? - My Class will not compile, can you fix it?
Posted by Russell Mangel at 8/25/2004 7:44:37 AM
I am trying to create a property which returns an enum. The following class does not work, can someone fix it? I am using VS2003 C++ public __gc class Drive { public: Drive(){} __property DriveType get_DriveType() { return _DriveType; } // This is the enum type __value...more >>

Error: "cannot instantiate abstract class"
Posted by andreas_poller NO[at]SPAM web.de at 8/25/2004 7:37:46 AM
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ... public: .... virtual String* GetClassName(){return TypeDescriptor::GetClassName(this,true);} //[LINE 27] .... };...more >>

Using vcbuild to compile/link files from MSVC.NET 7.1
Posted by info NO[at]SPAM 3doutpost.com at 8/24/2004 10:29:24 PM
(apologies for the new thread - for some reason google news doesn't give me the option to reply to an earlier vcbuild.exe thread) I'm trying to build a C++ project that was originally created in MSVC.NET 7.1 by using MS C++ Toolkit 2003 and the vcbuild.exe helper app. I did have MSVC.NET in...more >>

Optimizing code - is /O2 faster that /Ox ???
Posted by grün at 8/24/2004 9:23:16 PM
The MSDN techdocs are somewhat limited on this and I wanted more information. Is there any resource that says definitively which is faster /O2 or /Ox and by how much?...more >>

unresolved _atexit_m with VC++ 2005
Posted by Chris at 8/24/2004 6:33:31 PM
Hi, I've just installed Visual Studio 2005 and recompiled two existing projects previously compiled with VS 2003. The first project is a un-managed DLL and the second one a managed DLL making use of the un-managed DLL. The project was linking fine with 2003 (I had to add msvcrtd.lib though,...more >>

Assign document for newly Created MDI ChildWIndow
Posted by Hai Ly Hoang at 8/24/2004 5:38:17 PM
My application is an MDI. It has an MDI window (main window). Now, I want to create a nother MDI window CMDIFrameWnd *main = new CMDIFrameWnd(); main->LoadFrame(IDR_ANALYSE, WS_OVERLAPPEDWINDOW | 32768, NULL, NULL); main->ShowWindow(SW_SHOW); Now, i create several child window in new MDI wi...more >>

question about arrays
Posted by Chris at 8/24/2004 4:07:35 PM
Hi, are managed arrays of value types created on the managed heap, just as are managed arrays of reference types ? String* StrArray[] = new String* [5]; // Arrays of a Reference type int NumArray __gc[] = new int __gc[5]; // // Arrays of a Value type So both 'StrArray' and 'NumArra...more >>

How to find the length of network streams which do not support see
Posted by Kueishiong Tu at 8/24/2004 5:25:02 AM
I have a network stream which I got from HttpWebResponse and does not support seeking, How do I find the length of the network stream? HttpWebResponse* response = dynamic_cast<HttpWebResponse*> (request->GetResponse()); // Get...more >>

Project takes way too long to load, if it does load at all
Posted by Jerry Bujas at 8/24/2004 2:54:07 AM
Can someone explain, please, why it takes for a vc++ project (form application) comprising three forms about four miniutes to load at 100% CPU usage? When it finally loads and I want to run the program, the compiler recompiles all the files (about 50 of them), despite the fact that the program...more >>

A copy of Msft Visual C++ 6
Posted by pianohead78 at 8/24/2004 12:37:01 AM
I'd like to purchase a copy of Visual c++ ver. 6. Can a Msft rep who reads this message please send me an e-mail or respond to this post? Thanks!...more >>

using managed arrays ???
Posted by Chris at 8/23/2004 6:36:28 PM
Hi, 1) I find the notation for managed arrays in C++.NET very confusing : Sometimes is it not necessary to use the pointer notation ==> short pS2 __gc[] = new short __gc[MAX]; Sometimes it is !!! (aparently when declaring an array of managed types) ==> String* pString[] = new String*[MAX]; ...more >>

Compile managed C++ code for .NET remoting...
Posted by yichen NO[at]SPAM gmail.com at 8/23/2004 2:19:09 PM
Hi, I am using Visual Studio 2003 .NET. I was wondering how can I compile and link managed C++ code for .NET remoting? I have found several tutorials regarding how to compile .net remoting code in the command line for C# and VB, but I cannot find any info about how to compile for managed C++....more >>

Usage of static library in C
Posted by bauerwo at 8/23/2004 9:15:24 AM
Dear all I'm a newbie to C, C++, and Visual C++ .Net, so if there is a better place to ask this question, please let me know. Using Visual C++ .Net, I haven compiled and linked a static library "myLib.lib", providing the function "myFunc". I can access it without any problem in another C...more >>

vc++ beginner
Posted by Kapil Patry at 8/23/2004 9:07:21 AM
Hi , i am comfortable with C++, but i need help with VC++. somebody could tell me the name of a newsgroup for beginners in VC++. Regards, -K ...more >>

How to use HttpWebRequest and get response back?
Posted by Kueishiong Tu at 8/23/2004 6:01:03 AM
I have a url, I pass it to Webclient, and I get response without any problem. String* uriString = S"trade7.masterlink.com.tw/futures/QuotePrice.jsp"; String* postData = S""; // Create a new WebClient instance. WebClient* myWebClient = new WebClient(); // Apply ASCII Encod...more >>

how to avoid an assert in AfxGetResourceHandle (in debugbuilds)
Posted by Arne at 8/23/2004 5:41:02 AM
Hi, I have posted this on 8/19/2004 but was unclear in my intention. So here it comes again: how can I avoid the failing assert in the following scenario? - create a managed C++ Windows Forms Application, - in the designer view, drag a button on the form - add the following code to the Clic...more >>

Cannot open include file "windows.h"
Posted by unknown at 8/22/2004 11:09:02 PM
I compiled as following (e.g) cl first.cpp but following message ↓ Cannot open include file "windows.h" :Such a file or directory What compile option is used in dotnetframework SDK 1.1 or in visual C++ toolkit2003? ...more >>

How compile?
Posted by unknown at 8/22/2004 11:07:01 PM
I compiled as following (e.g) cl first.cpp but following message ↓ Cannot open include file "windows.h" :Such a file or directory What compile option is used in dotnetframework SDK 1.1 or in visual C++ toolkit2003? ...more >>

HowTo Create Multifile Assembly ?
Posted by Lord2702 at 8/22/2004 2:26:29 PM
Sun. Aug. 22, 2004 2:20 PM PT How to create multifile assembly in Managed Visual C++ ? Using VSIDE. Please do not point me to MSDN pages, I already read those pages, and it only says, that you can create, (but no info, or steps how to create?) it in VSIDE, but no STEPS are given. I want this s...more >>

CRC32 Fun - How do I initialize a const static int array in an un-managed C++ class (VS2003/C++)
Posted by Russell Mangel at 8/22/2004 7:34:42 AM
Hi, I would like to encapsulate the following CRC32 routine inside a C++ un-mananged class. I am having difficulty initializing the "const static unsigned int table[]" inside an un-managed C++ class. I would like the lookup table to remain static so it is loaded only once on program startu...more >>


DevelopmentNow Blog