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

Software Development Network >> Visual C++

Visual C++

New Question

Why is strdup() deprecated in VS 2005?
C++/CLI, Strings and switch()
ArrayList::Sort() with Class
Compiling
Project Build Error PRJ0003 "error spawning cl.exe"
libodbc++ library
How do I distribute Visual Studio 2005 apps?
Registering Hotkey
Advice on Language Selection
Invoke the MS C++ Compiler at the run time

Top Answerers

Jester
vmit
WATT
asawaf
denghe
Keith M. Dennis
plengski
zendic
JohnWP
Dehim
Namespaces in
Only Title

Answer Questions

  • Mayuran Shouldn't this generate a warning? (const, non-const)

    class foo{    void bar( const long var_name); };   void foo::bar(long var_name){ }   Since it's declared const in the class, shouldn't the member definition need to be const as well I understand that from a code generation point of view it may be irrelevant, but it strikes me that seeing this would mean that the coder made a mistake since and would have intended for them to agree. ...Show All

  • pins Link Error /w VS05 b2 (managed C++)

    . Thank you.  I was able to get rid of the link error by removing the /Zl option from the compiler options--I didn't have to add any libraries to the linker options (although that also worked in my case). I'm using the GA version of VS 2005. Thank you so much for the help, I tried writing it with an executable and it compiled perfectly. ...Show All

  • Koson Thambundit CreateWaitableTimer

    In API app the CreateWaitableTimer gives the following error error C3861: 'CreateWaitableTimer': identifier not found, even with argument-dependent lookup I have included the <Windows.h> header Read the notes in the MSDN: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/createwaitabletimer.asp To compile an application that uses this function, define _WIN32_WINNT ...Show All

  • Nessiee using a textbox from a 2nd Windows form

    I've got a Windows Forms .NEt application that uses 2 forms. I've got Form2 which is created from Form1 : (inside a Form1 button click event handler) : namespace::Form2 *myForm2 = new namespace::Form2; myForm2->Show(); This Form2 works well, & I now have the need to write text to it's textBox1. So I create one in Form2[Design]. I need to do this textbox population inside a function X that is defined within namespace but outside the defi ...Show All

  • Anilkv_in devenv takes too much CPU

    Hi,   I am using Beta2 to compile a project containing managed and unmanaged code. Compiling is usually very slow as devenv.exe takes most of the CPU time for itself (80 to 90 % if not more). I don't know what tasks devenv performs in background but it's a pitty that it does not spawn cl.exe with a higher priority than itself. Setting the priority of cl.exe speeds up the compilation by a factor of 10 to 100, but I cannot go to the task mana ...Show All

  • AMH Writing MMC Snapin in Visual C++ 2005

    Hello, I'm trying to write a MMC Snap-in extension using Visual C++ 2005 Beta 1. But different from Visual C++ 6.0, I couldn't find ATL object of MMC Snapin. It's not supported any more Where is the MMC Snap-in wizard then Any suggestions how shall I do that Thanks! Thanks all for the helpful replies. I want to know whether it's not recommended to write MMC snapins in Visual C++2005 From the page of MSDN, it s ...Show All

  • dakhili Error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'

    I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2005: Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It only comes up with a C++ program. VB seems to be fine. I was working on a "Class Library" when it first started so I tried creating a new project. I tried doing a build before doing anything and the error message still ca ...Show All

  • spandey1982 Newbie question about VS in general...

    OK, I got a version of VS... but im having real troubles getting anything done in this... I mean I know how to write "hello world" for example but err how to compile for one and what kind of a file/project do I choose... they all just give me these big source codes from the start but what if I want to do something all my own (hello world for example )... someone answer me quick... If you wrote that cpp file from something othe ...Show All

  • TeamonD console application Migration to VS 2005 from VS 6.0

    I have a console application developed in Visual Studio 6.0. I can compile and execute from Visual Studio 6.0. I am trying to migrate to Visual Studio 2005. But I get lots of compilation errors like below. Give me some hints on settings for Visual Studio 2005. Thanks, Raj C:\Program Files\Microsoft Visual Studio\VC98\Include\utility(81) : warning C4346: '_It::iterator_category' : dependent name is not a type prefix with 'typename ...Show All

  • pigggy Memory Leak and New

    I'm a bit confused about the utility of crtdbg.h if I use the new function. If I use malloc I get a nice report saying that line x of file y leaked z amount of memory. Nice. If I use new, I get a pretty useless report that line 691 of crtdbg.h leaked z amount of memory. Well gee, thanks. I KNEW that new is being redirected to that inline function in crtdbg.h, I was kinda hoping maybe you could tell me where I came from, not where I went. Here is ...Show All

  • seetha File open errors returned when trying to open a file for appending

    I am trying to open a file for appending. ie. if the file exists, open it for appending, if not, create it. I am getting back a NULL pointer, and do not know why. Here is my code excerpt. It is a C file. FILE *pFile; char *cFileName; cFileName=argv[++i]; pFile = fopen(cFileName,"a"); cFileName has a valid filename ('apm.dbg'), and I have full write permissions in the directory. I can step into fopen and when the file is opened, ...Show All

  • Mirko Geffken question about class declaration in .net

    the switch from win32api-programming to .net ist very hard... i would like to do a very simple thing. declaring a class with only two functions (SetNumber and GetNumber). I know, SetNumber could also be done with a constructor. my problem is: All methods which are defined inside the class declaration (i.m. case SetNumber) function well, all other methods (GetNumber) throw out the Errorcodes C3254 C2838 C2065. It seems that I can’t defin ...Show All

  • Oranso access violation when running ported database solution (from VC++6 to VC++8)

    I am maintaining a supply chain database solution & am attempting to port it from VC++6 to VC++8(2005 native -NOT /clr) - the solution is composed of 45 projects (an .exe & 43 dlls & a lib) - it uses COM & ATL. I have managed to compile everything successfully after solving some initial errors caused by greater ISO C++ compliance(I think) of the form: was : m_spDBStock = m_spBLStock; now: m_spDBStock = ( const IDBRecords ...Show All

  • Jeffrey.Ye How to access a database

    Dear All, I am new to Visual C++ 2005 and I would like to write a network application that uses native win32 C++ and that stores and restores data to and from a different databases (depending on the setup). I am planing to make this application portable to be launched and executed on both platforms Windows and Linux. My question is that is there a generic iterface that enables me to connect the C++ application to an ORACLE or MySQL databa ...Show All

  • Chris Gillotti Importing class from dll

    Hi My problem is that I cannot import a class from a dll without an import library. Thank You, Attila. I have found another problem. When calling a function from my dll ( not in a class, just a function ), I am getting the following error message: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one callin ...Show All

192021222324252627282930313233343536

©2008 Software Development Network

powered by phorum