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 8 - 14, 2004

Filter by week: 1 2 3 4 5

MC++ assembly can't find C++ runtime DLLs when used from ASP.NET
Posted by Clift Norris at 10/14/2004 10:13:02 PM
I've created a managed C++ assembly containing a managed class that is instantiated from ASP.NET. The managed C++ assembly needs msvcp71.dll and msvcr71.dll. When ASP.NET loads the assembly, it cannot locate the C++ runtime DLLs and hence throws an exception. I have placed the C++ runtim...more >>


Printing a size_t variable results in a warning C2467
Posted by Karthik at 10/14/2004 1:15:46 PM
Hi, When I try to print the value of a size_t variable in a stream, I get a warning. My code looks as follows. #include <cstddef> //size_t #include <cstdlib> //EXIT_SUCCESS #include <iostream> int main() { size_t num = 5; std::cout << num << std::endl; return EXIT_SUCCESS...more >>

It Just Works??
Posted by Denny Huber at 10/14/2004 11:09:04 AM
Here's my dilemma: We are going to split our monolithic MFC app into a front-end GUI and an Engine. We will re-write the front-end GUI as a WinForms exe and call from there into the Engine. The Engine is in C++ distributed across about 60 DLLs - say 2 million lines of code. We want to...more >>

fstream issue. any ideas?
Posted by Tom Andrecht at 10/14/2004 9:49:00 AM
I'm trying to get some information dumped from a program that's giving me fits, but when i try to use the ofstream class to dump to file, i get a message from the compiler that it doesn't exist. This is a simple program for a class (intro to opengl) wich uses only one .cpp file and has includ...more >>

Link error LNK2001 in VC7
Posted by tomrmgc at 10/14/2004 8:35:25 AM
I have some code that compiles and links fine in VC6 but does not link in VC7. Here are the relevant parts of the code: class AView : public CScrollView { .... public: AFX_DISPMAP_ENTRY* _dispatchEntries; UINT _dispatchEntryCount; DWORD _dwStockPropMask; AFX_DATA AFX_DISPMAP dispatch...more >>

Should cstom exception type have serializable attribute?
Posted by Dave at 10/14/2004 6:55:36 AM
I defined my own exception type as follows: public class MyException: ApplicationException { public MyExceptionn() : base() { } public MyException(string message) : base(message) { } public MyException( string message, Exception innerException) : base(message, innerExcep...more >>

Turning off warnings for files not included in the project
Posted by Karthik at 10/14/2004 3:19:06 AM
Hi, For my project I had set the VC++ compiler flag at its highest level ( /W4 ). While it is nice to see the warnings for my code, the project continues to list the warnings in the header files , that are not part of my project ( apparently, they are the third party libraries I use in...more >>

2005 beta 'Express' editions
Posted by Bonj at 10/14/2004 1:57:04 AM
I've had a look at the VS 2005 express editions on the MS website, does anybody know the answer to the following about them? It says that with c# you can create console applications, windows applications, and class libraries. Presumably this means these are the *only* types of project you c...more >>



What's the use of CPP files?
Posted by wraith at 10/14/2004 1:45:49 AM
Hi to all, Im just wondering on why VC++ .NET puts all of its code in the header file? why not use th cpp file? wheres the two file approach? I've read a comment on this newsgroup that suggests that microsoft is dropping off cpp files and moving to the 1 file approach. Well for me, micro...more >>

signal RTS and port COM...
Posted by lamalice at 10/14/2004 1:37:04 AM
hi, i want send strings by a port COM and put the RTS signal to 1 before send, and put it to 0 after send the last caractere. A extract of my code: DWORD dwEvtMask; char *bufferS = "toto"; hPort = CreateFile ( "COM1", GENERIC_WRITE|GENERIC_READ,0, NULL, OPEN_EXISTING, FILE_F...more >>

Drag and Drop Context Menu
Posted by cool_jaggs NO[at]SPAM -NOSPAM-yahoo.com at 10/13/2004 11:13:28 PM
Hi , I am new to this group, but it would be really nice if you can really help me out. I am trying to Export a file from my application to windows explorer through drag and drop using right mouse button . But once i am doing it i am getting the DragandDropContext Menu Handler, but i don't want...more >>

VC++ .NET 2003 specific compiler symbol to identify the compiler.
Posted by Karthik at 10/13/2004 4:39:05 PM
I am developing a product , that I would like to compile in different development environments. So if I have to include any header file specific to VC++ 2003 implementation, I would like to put them in a guard something like - #ifdef <VC++.NET 2003 specific symbol here> #include <...more >>

Code to Tab through fields in application
Posted by Jeff at 10/13/2004 10:13:02 AM
Hello all, "Rookie" Jeff here, systems admin (not a C++ programmer). I'm going through our application for whom we've lost our main programmer for and I was trying to locate the code for tabbing through fields on a form. I have a problem where the Tab moves to a field that is PAST the nex...more >>

How to register COM component
Posted by Mervin Williams at 10/13/2004 9:17:57 AM
I have created a setup project for my application which includes a non .NET managed code COM object. My COM component is automatically registered when I build my project. I'm having problems registering the COM component during installation. In my setup project, I set the Register property t...more >>

UNICODE conversion
Posted by Daniel at 10/13/2004 9:00:50 AM
Hi, I have a big application here that has one executable file and about 20 DLL files. Do I need to convert all the DLLs to unicode or is it enough to do it just for the exe file, where all the user interface is? Thank you, Daniel...more >>

VC++ linking error
Posted by Shawn at 10/13/2004 8:25:11 AM
I get a linking error when building an openGl program under Visual C++ 6. I've set the entry point symbol to wWinMainCRTStartup as per the solution posted but still no luck The error message i get is posted below. LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinM...more >>

how can i open *.html file as ascii file for manipulation?
Posted by frontline1 at 10/13/2004 6:27:19 AM
hello im trying to open html file with fstream clas (foo.open("test.html",ios::in) but with no luck , but when i try to open in this way *.txt file , i is working great . my question is , how can i open html file and manipulate it. do i nee spatial class? thank - frontline --------...more >>

.NET Multithreading question
Posted by Ioannis Vranos at 10/13/2004 2:26:45 AM
One .NET question. Lets assume that a thread has the lock on an object and performs a Monitor::Pulse(obj); and with that it returns another thread on this object in the running state, what happens? Does the other thread become blocked, and while it is in this blocked state, does it co...more >>

Urgent help on IXMLHTTPREQUEST
Posted by agammehta NO[at]SPAM hotmail.com at 10/12/2004 7:01:19 PM
Hi, Everything works fine with ixmlhttprequest. It gives me "access violation" only when i am trying to release it from the memory (i.e pXMLHttpReq->Release()). Below is my code. ////////////////////////////////////////////////////////////////////////// ::CoInitialize(NULL); // Variables...more >>

How to hide unmanged types
Posted by Peter Hemmingsen at 10/12/2004 4:54:56 PM
Hi, Is it possible to hide(in C# intellisence) an unmanaged type written in mc++? I have the following declaration in my header file: namespace myCode { .... typedef struct {unsigned DynAttr; char ColProp[MAXEXTPROPCOLNAME];} COLATTRMAP; .... } The COLATTRMAP type is include in the C...more >>

reverse_iterator::base, possible bug?
Posted by Eric Twietmeyer at 10/12/2004 4:28:55 PM
Hello, In playing with a reverse_iterator issue today, I realized that I could use its base() method to get at the underlying iterator. However, I realized that in the implementation shipping with VC7.1 the base() method returns "current", the internal iterator object, but that "current" iter...more >>

How to fix this code?
Posted by Bredal Jensen at 10/12/2004 2:46:50 PM
The code below compiles fine with vc++.6 but not with vc++.net the error message is: ...\RegistryArray_demo\RegistryArray\RegArray.h(28): error C3860: template argument list following class template name must list parameters in the order used in template parameter list Wha...more >>

#include statement format
Posted by hamm.charlesw NO[at]SPAM epa.gov at 10/12/2004 10:21:14 AM
When I generate a new class with VS.NET/C++, the #include statement that VS puts in the .cpp file to reference the .h file uses ".\" as the directory spec. My understanding of Windows directory specs indicates that this is superflous. Is there something I am missing?...more >>

.Net Remoting and System::Activate
Posted by Fireangel at 10/12/2004 9:45:07 AM
I'm tying to build a simple Remoting thingie (techincal term). However, I can't seam to get it to compile. ChatBase is defined as a public class.. The line that kills compiling: theChatStuff = (ChatBase *) ( Activator::GetObject ( __typeof ( ChatBase ) , "tcp://localhost:9999/Try1") );...more >>

PC to Pocket PC conversions
Posted by Steven Omntec at 10/12/2004 9:19:01 AM
I have a communications test program written in Visual C++. I use the PC's serial port and save data in a Excel database. I want to run this program on a pocket PC. 1. Do I need another compiler to do this? Which one? 2. Is there certain code that will not port over to the Pocket PC? ...more >>

baffled by exception
Posted by Bonj at 10/12/2004 4:49:05 AM
Hello. Does anybody know if there is a difference between the way C# calls a COM object, and the way C++ calls a COM object? And is there anyway to make the latter emulate the former? I have a COM object which seemingly can't be instantiated using C++, but can using C# and VB, and it's dri...more >>

How do I use <iostream> in .NET Class Library project?
Posted by Russell Mangel at 10/11/2004 10:56:30 PM
After creating a new .NET Class Library project, I then add the header file: #include <iostream> (I tried adding in my main .cpp file and also tried in stdafx.h file.) Doesn't work, and I get the following error messages: LNK2020: unresolved token (0A000006) _CxxThrowException LNK2020: un...more >>

Managed arrays as unmanaged ptrs
Posted by The unProfessional at 10/11/2004 8:24:20 PM
Any know how to convert a managed array to an unmanaged array (ptr)? // Managed float[] f = new float [6]; // Unmanaged unsafe { float *pArray = f; // No good float *pArray = (float*) f; // Compiler still doesn't allo...more >>

Microsoft Visual C++ Runtime Library....Runtime Error
Posted by Robert at 10/11/2004 6:57:03 PM
Im using Windows XP Pro, SP2 (error was still with SP1), P4 3.4Ghz, 1Gb Ram, NVidia FX1100 Graphics, Using Programs such as Autodesk Inventor & AutoCAD. I don't have a clue what Microsoft Visual is but when using the Windows Explorer I get a message saying Microsoft Visual C++ Runtime Librar...more >>

List<t> generic type - Fastest way to copy into an unmanaged array?
Posted by sb534dan NO[at]SPAM hotmail.com at 10/11/2004 4:33:57 PM
Hi, Im hoping someone can give me some advice. Im doing some development using VS Whidbey 2005 beta 1. Im about to implement some highly time critical code related to a managed collection of floats. I basically require the fastest way to convert a managed array of floats into an unmanaged a...more >>

Performing Post-Build Event Fails
Posted by jongrman21 NO[at]SPAM aol.com at 10/11/2004 10:06:56 AM
Here is the current error that im getting when building my solution. The only thing i can think of is that i needed to install visual studio 6 after visual studio .net was already installed to print out some forms that were created in vs6 causing this issue to occur. I may be way off here but t...more >>

Modifying the caption of a property page at run time?
Posted by Chris Baker at 10/11/2004 3:29:08 AM

VC .Net not mature?
Posted by The unProfessional at 10/11/2004 12:14:24 AM
To the VC .Net'ers out there... I noticed alot of strange behavior in the way VC .Net apps behave in the IDE. It's a bit odd, so maybe people have workarounds. I'm worried to devote my project to the managed/unmanaged heuristic because these early issues make me feel VC .net just isn't mains...more >>

Visual Studio Service Pack 5 (sp5) will not install on WindowsXP
Posted by astaplesnerd at 10/10/2004 2:39:05 PM
I downloaded the vs6sp5.exe file and then tried to run it, but I get a windows error that this is not a valid windows32 application, so I cannot install the update. does anyone know why this is happening? I'm installing this so that it will hopefully fix the problem that I am having: the...more >>

VC++ COM-library compilation under .NET as managed code
Posted by Michael Braitmaier at 10/10/2004 12:02:49 PM
I have a quite severe problem. I am trying to compile a C++ library initially written for VC++ 6. To make the library available for .NET languages I want to compile the library as managed C++ library. As the library is utilizing DirectX 9 it bases on COM. This causes me quite some troubles as I ...more >>

Convert a managed string to an unmanaged string
Posted by Bonj at 10/9/2004 12:55:02 PM
HI In keeping with my policy of always using _TCHAR*s when possible, I am trying to convert a System::String* to a _TCHAR*. When I use this (my eventual aim is to get it into a pre-allocated, unmanaged, _TCHAR* called 'error'): const _TCHAR* umstring = (const _TCHAR*)Marshal::StringToHGloba...more >>

using COM from VC (either managed or unmanaged)
Posted by Bonj at 10/9/2004 12:49:07 PM
Hello I have a problem with creating a COM object from C++. The COM object is called, say, My3rdPartyDLL.MyCOMObject. When I do it from unmanaged C++, with smart pointers, the DLL gets #imported fine and it compiles OK. But when it gets to it, it has an unhandled (unhandleable?) exception whi...more >>

linker warning
Posted by Bonj at 10/9/2004 7:23:02 AM
Hi I have a project that consists of an unmanaged DLL (extended stored procedure) and a static library, which I have converted to managed, although it has got one unmanaged function which is exported to the unmanaged. I keep getting the linker warning 'warning - images compiled with /NOENTRY ...more >>

Mixture of Managed and Unmanaged
Posted by The unProfessional at 10/8/2004 2:14:49 PM
In my current project (my first project using vc w/ managed extensions), I'm directly #using <mscorlib.dll>, so it's necessary for me to use the __nogc and __gc constructs when defining classes or structs. The concept seems simple... some classes are managed, some aren't. I'm just wondering i...more >>

casting A* to A& ?
Posted by Agoston Bejo at 10/8/2004 1:09:34 PM
What happens exactly when I do the following: struct A { int i; string j; A() {} }; void f(A& a) { cout << a.i << endl; } int _tmain(int argc, _TCHAR* argv[]) { A a; a.i = 6; A* pa = &a; f((A&)pa); // CRITICAL POINT f(*pa); // works as expected return 0; } ...more >>

beginners question:how to debug server component?
Posted by umen at 10/8/2004 11:18:45 AM
Hello im build very simple ATL server component (takes string from client an returns uppercase string) i like to debug this string from visual studio so i could see wha appends when i invoke the com object method and what appends in the object . so what are the steps to debug call from as...more >>

Application process keeps running after quitting and returning to
Posted by tcbrock at 10/8/2004 10:01:03 AM
I'm running Visual Studio 97 (vc++ 5.0) on Windows XP SP2 and when I run my program from inside the development environment, and then I quit it, it goes back to VC, but sometimes if I hit CTRL-ALT-DEL and look at my processes running, there is my program! Which can stop it from linking or run...more >>

Link error LNK2019 on _Iscloc, _Getfacet and _Cltab
Posted by Dack at 10/8/2004 8:19:03 AM
Hello, I am developping a kind of VRML 2.0 parser. I use Parser Generator (http://www.bumblebeesoftware.com/) to automatically generate C++ code source. When I used Visual C++ 6.0, everything just went alright. But I was asked to upgrade to Visual C++ .NET 2003 and from that time I can't l...more >>

extended stored proc programming
Posted by Bonj at 10/8/2004 8:05:06 AM
Hi I'm looking to write an extended stored procedure, the job of which will basically to read data from one table, process it using a COM object, and write (insert) rows out to another table. I don't really know where to start with finding the functions necessary to read from an existing tab...more >>

Structs and pointers don't display in watch window???
Posted by Peter Steele at 10/8/2004 7:55:27 AM
Say I have a managed C++ app with some code that looks something like this: void MyMethod() { struct Point { int x, y; }; Point* p = new Point; p.x = 1; p.y = 2; .... } During a debugging session, if I create a watch for the variable p, the watch window does not di...more >>


DevelopmentNow Blog