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 > january 2005 > threads for january 1 - 7, 2005

Filter by week: 1 2 3 4 5

Extract Data from CFormview "View" class
Posted by johnloxsom NO[at]SPAM sbcglobal-dot-net.no-spam.invalid at 1/7/2005 6:55:39 PM
Hi all... New user new to VC++. I've used the AppWizard to create an SDI with the CFormclass. The "View" file is a dialog. I want to create a few EditBoxes, associate member variables to them, and write them to a file (and retrieve them later). The "Doc" file contains the "serialize" ...more >>


Missing DLLs?
Posted by Jacques at 1/7/2005 1:09:06 PM
Hello, We re-compiled a COM VC++6.0 project using Visual Studio .NET 2003 (unmanaged code). Next, we copied the DLL to a Windows 2003 Server computer. When we tried to register the COM object, the registration failed (the VC++6.0 version registered OK). We installed Visual Studio .NET 2003 ...more >>

WS2_32.dll has not a getaddrinfo function.
Posted by run at 1/7/2005 5:30:25 AM
My enveronment - IE6 - .Net 1.1 sp1 - Windows 2000 sp4 I cannot use function "CSMTPConnection" on Vc++.Net on Windows 2000. because WS2_32.dll on error message as "The procedure entry point getaddrinfo could not be located in the dynamic link library WS2_32.dll". How i can updated winsock ...more >>

Managed Extensions and XML question
Posted by BCC at 1/7/2005 2:00:34 AM
Hi, I have a need to read in a very simple xml file and initialized some objects from the data. I was reading on the ms website that .net contains its own XML parser, and it sounds pretty good for what I need. However, to use the code, it looks like I need to compile with managed extension...more >>

Odd build errors?
Posted by Tom Witham via DotNetMonster.com at 1/6/2005 9:35:17 PM
Dear All I am currently trying to compile a VC++6 application in VC7 and I am finding it difficult to overcome the errors listed below. Any suggestions would be most welcomed. Many thanks Tom c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlalloc.h(336) : error C3...more >>

Collection problem in Managed C++
Posted by NotABug at 1/6/2005 7:21:01 PM
Is it possible to do collections of struct __values in MC++ 2003? How can I translate the following C# example to C++: public sealed class PointsCollection : CollectionBase { public void Insert(int index, Point value) { List.Insert(index, value); owner.UpdateRegion()...more >>

__gc new and __nogc new
Posted by Ian Lazarus at 1/6/2005 6:10:58 PM
Hello, I tried to confirm that two different heap allocation calls were being made, i.e., one for __gc and one for __nogc. However, the addresses of the calls (as seen in disassembly) are not what I expected. As you can see the four calls in tmain are all to the same routine, while the one ...more >>

databinding a table with uniqueidentifier PK to a combo in VC++ .Net
Posted by bryan at 1/6/2005 1:54:52 PM
I have a table, call it Choices, with two columns, a primary key column called "ID" of type uniqueidentifier and a data column called Choice of type Varchar(10) Col type pk? ID UniqueIdentifier Y Choice varchar(10) N I have another table, c...more >>



Help required : LINK : fatal error LNK1201:
Posted by chahalns NO[at]SPAM yahoo-dot-com.no-spam.invalid at 1/6/2005 12:56:37 PM
Hi All, We have an automated system that does an incremental build of the Projects(around 60) using VS 7.1. Some of the projects on an intermittent basis report the error LINK : fatal error LNK1201: error writing to program database ''; check for insufficient disk space, invalid path, or i...more >>

ifstream fd function (filedesc)
Posted by Saran at 1/6/2005 9:15:03 AM
Hi, I would to use fd fuction in .NET but it seems that its been removed. Can any one suggest an equivalent function? Thanks...more >>

pregunta
Posted by alex,ocoro at 1/6/2005 3:19:34 AM
class apuesta { int num; char nom[10]; }; struct registro {}; char*codigo; }; registro apuesta class sale { private:float precio; char nom[]; { union { int num; float dorado; }; char*codigo; }; registro apuesta class sale { private:float precio; char nom[]; { uniom { in...more >>

destroying value classes
Posted by Ian Lazarus at 1/5/2005 5:41:01 PM
Hello, Since value classes are not managed by the garbage collector and can't have destructors but can have member data allocated on the C++ heap, how does this data get destroyed? For example, __value class vclass { public: vclass() : p(new int(0)) { } int* p; // ...more >>

unused functions in VC++ 2003
Posted by Lynn McGuire at 1/5/2005 10:19:59 AM
How do I get a list of unused functions in my application using Visual C++ 2003 ? I know that I have several in 300,000 lines of C++ code. However, tracking them down is very difficult. Thanks, Lynn McGuire ...more >>

'Unresolved External' when calling unmanaged DLL from managed Windows Forms executable
Posted by glfabro NO[at]SPAM gmail.com at 1/5/2005 5:07:23 AM
Greetings! I'm a newbie in Visual C++ .NET (have programmed in Borland C++ and Builder for long) and I am trying to do a very simple thing, but I'm stuck. I created an (unmanaged) DLL project with a sample function, and tried to call it from a ".NET Forms" project. All I get are "Unresol...more >>

_CrtDumpMemoryLeaks and <valarray>
Posted by Dack at 1/5/2005 2:05:02 AM
Hi, I want to track memory leaks in my application (that is using <valarray>). I used the following code: #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> But then, when I include <valarray> the compiler raises the following errors : c:\[...].NET 2003\Vc7...more >>

Printing in VC++
Posted by dt at 1/4/2005 11:33:01 PM
Hello, I'm writing a simple application in Visual C++. The application basically takes in a set of values (of type double and int) and outputs a set of values. Both the input and output is implemented through dialog boxes (via the dialogbox function). I wanted to be able to print out the va...more >>

How to install Visual C++ .net?
Posted by AndrewFrazier at 1/4/2005 2:29:02 PM
I hope that somebody can help me with my installation problem. I insert the Visual C++ .net disk in my computer and setup begins but then I am presented with a message telling me that I have the wrong versions on the prerequisites installed and that I should reboot and install the correct o...more >>

new vs __gc new
Posted by Ioannis Vranos at 1/4/2005 1:29:21 PM
Why the following does not compile: #using <mscorlib.dll> int main() { int __gc *p= __gc new int; } while the following compiles? #using <mscorlib.dll> int main() { int __gc *p= new int; } -- Ioannis Vranos...more >>

problem with multiple symbols when using a static lib
Posted by Bruno van Dooren at 1/4/2005 9:20:31 AM
Hi, i am using a third party static library (.lib) that wraps a class interface around an old C-style dll. in the static library they use the STL for some stuff i don't know about. in my own code, i also use the STL, for basic_string for example. at link time, i get a lot of errors like...more >>

Redefining an array
Posted by Mythran at 1/4/2005 8:36:00 AM
man, it's been quite a long time since I was developing in C/C++ (GNU Linux on RedHat 6.2 was last time I did)... Anywho, I can't remember how to re-define/re-dimension an array. Say I have an array of 30 characters...the first character is a space...I want to remove this space... OR ...more >>

Managed /unmanaged
Posted by Fredrik Wahlgren at 1/4/2005 1:40:15 AM
hi I have apet aproject that i created a long time ago and I now want to make part of it managed. This is a dtabase application s I want to create a class in which I wrap ADO.NET. The design is such that when I make a query, I want to send each string from the query to unmanaged code. In other...more >>

reference arg
Posted by Ian Lazarus at 1/4/2005 12:51:01 AM
Hello, If a function arg is a reference to a built in type, is it necessary for the function definition to specify whether the reference is to a managed or un-managed object? If so, does that mean that there needs to be two (otherwise duplicate) functions in order for both types of objects ...more >>

array arg
Posted by Ian Lazarus at 1/3/2005 5:40:55 PM
Hello, In managed C++, if a function takes an array as an argument, it has to specify whether that array is managed or not. If I want to handle both managed and un-managed arrays, does that mean that there has to be two functions? e.g., void foo(int x __gc[]); void foo(int x __nogc[]); ...more >>

managed C++ and the Application class
Posted by maosprogram NO[at]SPAM yahoo.se at 1/3/2005 3:54:36 PM
Hello! I have a problem with managed C++ and the Application class I want to use Application::CommonAppDataPath but the only answer I get is "D:\Documents and Settings\All Users\Application Data\\\1.0.0.0" I have tried changed the items (alredy present) in assemblyinfo.cpp but that doesn'...more >>

Visual Studio 6.0 excrutiatingly slow under XP SP2
Posted by Charles at 1/3/2005 1:46:03 PM
I have Visual Studio 6.0 stand-alone (with C++) and as part of Compaq Visual Fortran 6.6c. I am moving my development from a Win 98 SE machine w/2x 10 Gb HDD (each w/ 1Gb free), 768 Mb RAM to a 3.2 MHz Win XP Pro machine w/147 Gb HDD (121 Gb free) and 2 Gb RAM. Loading a particular project ...more >>

VS.NET2003 Trail: fatal error
Posted by Kwwalee at 1/3/2005 12:33:04 PM
I'm trying the VC++.NET with the VS2003 Trial before I decide to upgrade my VS02. The VB and VC# are running great except I couldn't BUILD any VC++ in the IDE. Problems: fatal error LNK2023: bad dll or entry point 'msobj10.dll' I have no problem if I " cl.exe filename /clr .... " th...more >>

Starting Word or Excel application via COM
Posted by Bernd Muent at 1/3/2005 12:23:43 PM
Hi together, I am using the following code in Visual Basic to open Word or Excel applications: Word: Dim w As Word.Application w = CType(CreateObject("Word.application"), Word.Application) w.Application.Documents.Open("test.doc") With w.Application.Selection [... whatever ...] End Wi...more >>

Struct member alignment (/Zp#) doesn't work
Posted by Yaniv at 1/3/2005 5:25:03 AM
Hi, I have a project in which i havn't changed the /Zp flag and left it at the default (8 bytes). my problem is that upon execution the structs aren't aligned at all, as if i used /Zp1. its very problematic when i use another app who send these structs to the main app, since the sending ...more >>

error PRJ0002 returned from 'link.exe'
Posted by marco.feuerstein NO[at]SPAM web.de at 1/3/2005 4:58:26 AM
I'm getting the following error when linking a Visual C++ .NET 2003 program. What can be the reason? It worked yesterday on the same machine. Linking... link: too many arguments Try `link --help' for more information. <programname> : error PRJ0002 : error result returned from 'link.exe'....more >>

Dialogs fail in debug mode
Posted by Seko at 1/3/2005 3:34:28 AM
Hi! This is my first post here, so please excuse me for any mistakes I make. --------------------- I'm having a hard time displaying modal/non-modal dialog boxes in a Windows Forms Application project, because of the following problem: If building a project in debug mode, I get a Debug...more >>

precompiled headers
Posted by dt at 1/3/2005 2:43:04 AM
Having troubles with my program and i believe it has something to do with my project settings for precompiled headers. This is what i have: my main cpp file, vector.h/cpp and polygon.h/cpp. vector.h includes math, polygon includes vector and gl/gl.h, and main includes windows.h, gl/gl.h, gl...more >>

pointers-to-pointers and class children
Posted by Peteroid at 1/2/2005 8:56:28 PM
I'm creating managed classes in an managed application, and believe I've seen the following generate a compile error: __gc class Parent_Class {} ; __gc class Child_Class : public Parent_Class {} ; __gc class Other_Class { public: void Method_1( Parent_Class** pc_ptr_ptr ) {} ...more >>


DevelopmentNow Blog