Software Development Network Logo
  • Visual Studio
  • Windows Forms
  • SQL Server
  • Architecture
  • .NET Development
  • Visual J#
  • Visual C#
  • VS Team System
  • VS Express Editions
  • Microsoft ISV
  • Visual Basic
  • Smart Device
  • Visual FoxPro
  • Windows Live
  • Visual C++

Software Development Network >> Visual C++

Visual C++

New Question

Is it possible to...
STL for Managed C++
VC++ Debugging - skip standard library code?
error LNK2001: unresolved external symbol "struct ....."
resource editing in June CTP problem
Answer to C++ Help
How to Create an ActiveX control using MFC??
COM/OLE Excel
What is the syntax for declaring an event as an argument of a function?
HOW GET THE TITLE TASK WHEN ALT+TAB ARE PRESSED?

Top Answerers

benwestgarth
Tellek Liberty
Rohit Wadhwa
Wayne Godfrey
chribonn
RLyons
chris04920
Hugo Flores
Pontifice
Adrian_78787
Mycplus
Only Title

Answer Questions

  • Namviet strange error...

    Hey, Ok, this is the weirdest error I ever encountered... I'm working on a 3D engine, and today I felt like working on it a bit... When I go recompile it, I get: Error 1 Error spawning 'cmd.exe'. Hum ! So, to see if this was a project only thing, I created a new proj with just the main func... and i get the same error... Any help Huge Thanks yeah, that was one of the sites i checked after googling for the ...Show All

  • Fredrik Skanberg Strange C2664 in VC 7.1, VC8

    Hi, While porting some C++ code from VC7 to VC8 (2005.NET) I encountered a strange version of compiler error C2664. The actual code was of course much more complicated, but I have managed to reduce the problem to this 40-liner: // CODE BEGIN class Class1 { public:   virtual Class1 * Copy() const = 0; }; class Class1Deriv : public Class1 { public:   Class1 * Copy() const   {     return (Class1 *)(new Class1Der ...Show All

  • Ramadan ListView in Visual C++

    Hi, I want to use a somekind of a "table" control in my form. The table columns consist of a nb. of units, a description and a unit cost. At the bottom of the table control, I would like to put a total cost of every items listed in my table (sum of (nb.units * unit cost) for all items in table). If I add a new record for which a same "description" exists in table, I will instead update this record and increment the " ...Show All

  • Jason Walsh Unresolved externals and wchar_t's

    I'm getting the following errors when compiling my program in VS2005b2.  This program uses a 3rd party static lib and associated header files, so I can't change them.  I think it was originally compiled in eVC++4.0. Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public : int __cdecl CL2CapIf::SetSecurityLevel(wchar_t *,unsigned char , int )" (__imp_ SetSecurityLevel@CL2CapIf@@QAAHPA_WEH@Z) referenced i ...Show All

  • Neil Newport "Correct" Workerthread Termination

    Hello, I have used worker threads for a long while and yet always had and still have problems with the "correct" way such threads should be killed for premature termination. They may have files open, are in the process of allocating global memory or doing any number of other things. The closest I got to "correct" is to signal the worker thread through it's priority if it's services are not required anymore for terminati ...Show All

  • fcjam Convert wchart_t to TChar

    Convert the type of wchar_t to TChar A newbabie, can you teach me how I can convert wchart_t to TChar Thanks Use the W2T macro in atlconv.h. MSDN docs should say more about this. ...Show All

  • krw Reading Excel files using ODBC

    When i use CDatabase , CRecordset to connect and read Excel file have some problem: 1. If i create a file with Microsoft Office Excel (do not have "Database" struct), have a worksheet, then save and close it. When i run my program, connect to this file, i do not see any table in this file(because Sheet is not a Table) so please help me, how to create a Table(excel) for a Sheet in Microsoft Office Excel . 2. When i create excel file fr ...Show All

  • jds1982 Embedded C++ object of class type in ref class

    What is the technical reason one can not have an embedded C++ object of class type in a ref class class Y { public: /* some functions and data members */ }; ref class X { public: Y y; }; Compiler does not like the above. What do you mean by transparent and why is this necessary If I am programming a .NET class which must conform to CLS I can undersrtand why all public and protected members must be .NET types ...Show All

  • HokieTX Problem with _CrtSetReportHook on VC++ 2005

    Hello there! I have some a problem when i use _CrtSetReportHook( _CrtSetReportHook2 also has the same problem). as a parameter to _CrtSetReportHook i have a funtion: static int report(int reportType, char *message, int *returnValue); to dump the output data in a file. but when my program exits and the CRT Library attempts to call(automaticaly) the report() funtion i get an access violation at a file named stream.c at this line: ...Show All

  • pershing fstream problem

    I'm trying to write a program that takes input from a file.  A very very simple program.  The code that I've written works in other compilers, ie gcc, perfectly, but when I use this same code in Visual C++ 2005, it refuses to find the files that I give it.  I've tried everything.  Even a 5 line program that i threw together to test the fstream header REFUSED to find a file.  Could anyone give me some insight This is my ...Show All

  • Holly522 Accessing C# Application Configuration from a C++ Class Library

    I'm using the VS2005 Release candidate and I need to access the configuration settings in the .Net main application (C#) from a .Net class library written in C++. I can't see any simple way of doing this - I tried moving the configuration to a C# class library so that I could reference and therefore access it from the C++ class library but that didn't work. Any ideas Thanks Mark Take a look at this post: http ...Show All

  • Lars-Inge CSocket derived class throws exception on call to Create()

    I have a class (CArchSockListener) which is derived from CSocket. I'm using C++ in Visual Studio 2005 Team Suite, (release version, not beta). When my class was used directly from a dialog based app, I had no touble. I wanted to move the comms to a separate thread, so I derived a new thread class (CCommsThread) from CWinThread, and constructed my CSocket derived class in there using this code in CCommsThread::Run()... // Start the archi ...Show All

  • Pamela Li Generating XML Files

    How to generate XML files from C++/VC++ Is there any library available or we have to write each element ourselves cythe wrote: How to generate XML files from C++/VC++ Is there any library available or we have to write each element ourselves There's an XML library in the .NET framework. If you're going to use .NET to write your XML, make sure you read up on DataSets and DataTables. Otherwise, y ...Show All

  • Arnaud H I have a very small icon with .png format ,if I load this icon in vc,how can I save this icon into a file with .png extension na

    I have a very small icon with .png format ,if I load this icon in vc,how can I save this icon into a file with .png extension name. If you have some sample code, I will appriciate your help very much. Thanks For easily handling different graphic formats (BMP, GIF, TIFF, JPEG, and PNG ) I would like to recommend the GDI+ Library . ...Show All

  • dspace Warning C4430 not being thrown in friend declaration

    class myClass ; class otherClass { public : otherClass ( int x ): valor ( x ) {} inline int sum ( myClass & obj ); private : int valor ; }; class myClass { public : myClass ( int x ): val ( x ) {} friend otherClass :: sum ( myClass &); private : int val ; }; inline int otherClass :: sum ( myClass & obj ) { return obj . val + ...Show All

222324252627282930313233343536373839

©2008 Software Development Network

powered by phorum