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

Filter by week: 1 2 3 4 5

How to downgrade to VC++ 6.0 fro VC.NET ?
Posted by Hyo-Han Kim at 8/31/2004 11:43:36 PM
Hi.. someone built app. with VC++.NET .. But It cause error on Windows 98 SE .. No one can correct the error. So I would like to downgrade the app to VC++ 6.0 .. The application should be complied with VC++6.0 again.. How can I do this with smart ?.. TIa ...more >>


Questions of .NET and managed coding
Posted by ax at 8/31/2004 10:18:59 PM
"The benefits of running code in the managed environment of the CLR are legion. For starters, as the JIT compiler converts CIL instructions into native code, it enacts a code verification process that ensures the code is type safe." What does it mean by "type safe" here? Please give example ab...more >>

Beginners Books
Posted by Trevor at 8/31/2004 8:12:21 PM
Greetings All Can anyone suggest a good book/books for a beginner in VC++.net 2003? Thanks Trevor...more >>

access 3dsmax using C++
Posted by dragon20024000 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 8/31/2004 5:10:23 PM
could anybody help me if I can use VC++ to access graphic object created by 3ds max,auto CAD,SolidWork,and how thank you in advance[quote:a39b0bff4c][/quote:a39b0bff4c] ...more >>

Help:where can download Visual Studio.Net English Version?
Posted by huffman.hwang at 8/31/2004 2:44:57 PM

a pointer to a managed array of pointers ??
Posted by Chris at 8/31/2004 10:34:42 AM
Hi, what is the syntax for passing a pointer to a managed array of pointers in C++.NET ? Here's what I try : void GetArr(Person ** parr __gc[]) ==> compiler error { *parr = new Person* [2]; } main() { Person *p __gc[]; GetArr(&p); } thanks Christian ...more >>

How to fill a memory range with a value when debuging a process in
Posted by lawrencelee at 8/31/2004 1:35:11 AM
I want to set a big memory range (size=0x10000) with 0xff. How can I do it when debugging? Thanks ...more >>

C++/CLI experiments
Posted by Ioannis Vranos at 8/31/2004 1:21:39 AM
OK, I just installed the tools refresh in VC++ 2005 Express Beta1, and now it can indeed be called a Beta. I decided to check the ref types on stack thing, and after some seconds of effort I came to this: int main() { using namespace System; String s="Hello world"; Consol...more >>



const char* and std::string problem with .net (works with 6.0)
Posted by anelma via .NET 247 at 8/30/2004 10:35:29 PM
Following code works fine, when compiled with VS 6.0, but not anymore when compiled in .NET. What's wrong here, I can't see it by myself? arrString content will be garbage with .net compilation, but when compiled with 6.0 it contains string from Vector (that's how I want it to work). std::vecto...more >>

one-step build for hello.c
Posted by ScottD at 8/30/2004 8:05:09 PM
I put VC6 in explorer 'send to'. When I send a C language console app to VC6, just choosing default answers results in a working executable. What is a straight-forward way to build a simple console app with later VC editions? ...more >>

Static Read-only array fields in C++
Posted by Mark Dunmill at 8/30/2004 6:19:03 PM
I can't create a Constant/Read-only array field in managed C++ classes - doesn't allow the keyword const pointer to const object on array fields in managed C++ classes. e.g. Want to define a read/only field for an empty array (so all the empty arrays of the given type can use the same object) ...more >>

Help! Help! Help!
Posted by Jazzkt at 8/30/2004 4:54:47 PM
Hello, Folks, I am new to VC++ and I just added a form to my application. The GUI has a group of checkboxes, a combo box, a text box and two buttons. Will someone please walk me through getting the form to load and displayed on my screen? I greatly appreciate the help. jazz ...more >>

"Querying" interfaces
Posted by Chris at 8/30/2004 12:58:36 PM
Hi, With COM, I was able to create an object supporting various interfaces, and by overloading QueryInterface to decide at runtime if the interface beeing queried was actually available (given the current state of the object) or not. Is there such a possibility with managed .net classes ...more >>

is Marshal::FreeHGlobal() possible?
Posted by Fei Li at 8/30/2004 11:33:26 AM
Hi, After converting String* to Char*, I need to call Marshal::FreeHGlobal(). Fine. But I need pass this Char* to an unmagaed C++ class and the managed C++ class is not possible to do Marshal::FreeHGlobal() any more. What should I do? delete Char* in the unmanaged class? Thanks ...more >>

Compiler Error C3222
Posted by Lidström at 8/30/2004 10:26:04 AM
Compiler Error C3222'parameter' : cannot declare default arguments for member functions of a managed type Arrrgggghhhhh!...more >>

Overlapped
Posted by pascal NO[at]SPAM go.ro at 8/30/2004 9:55:28 AM
Hi, What does the "overlapped" word means in windows programming? I've read about overlapped structures, functions?! What does it mean? Thanks!...more >>

access .NET thread to get Principal / Identity ?
Posted by hazz at 8/30/2004 8:17:22 AM
is that possible from a C++ app? thank you. -Greg ...more >>

using RS232 serial port
Posted by tacoBell at 8/29/2004 10:31:01 AM
Hi, Can anyone help me, please? I have to read from some device through a serial port. I am writing a program in C and I have to set baud rate 2400, transmit bits 8, parity none, stop bits 1 or 2. I used some open source code to do this but I can't link termsio.h. How can solve this pro...more >>

Calling a managed __gc class from a mixed mode dll, please help!
Posted by Kluch at 8/29/2004 3:53:02 AM
I have a mixed mode dll with a garbage collected interface. The interface is garbage collected because my derrived class has managed member variables. I am trying to return a pointer to my interface using GetProcAddress and calling an exported function which instantiates and returns my derri...more >>

__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 >>


DevelopmentNow Blog