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

Software Development Network >> Visual C++

Visual C++

New Question

Whats so good about C++
How to Copy form CDC dcMem1 to CDC dcMem2?
which situation does'error C2039' happen?
LINK.EXE BUG: /OPT:NOREF option doesn't work!
Really lost guy needs help updating SDKs
Need help with WndProc
convert double, float, short to wide character.
vc++8.0 bug: access violation upon call of any CImageList methods
the .exe quits
VS2005 C++ project: linkage errors under MultiThreaded-DLL runtime lib', but compiles fine under Multithreaded-DEBUG dll ?!?

Top Answerers

dagilleland
Newcastle
Peter Toye
noiile
Kiku
Bad Boy About
NewWebTester
sassenach
PugRallye
TomTogg
CNet
Only Title

Answer Questions

  • smith_kbase Rebuild using shared precompiled headers doesn't work

    To combat a long build time, I consolidated common headers across 20+ projects into a single precompiled header, to be shared.  The pch file is generated from a separate project (pch.vcproj with stdafx.cpp/h), and it works with clean builds and incremental builds (from editing one of the files belonging to the 20+ projects), but I get compile errors when I choose Rebuild.  Before presuming a bug, I'd like to ask the forum for he ...Show All

  • Oren Solomon error C2065 System::String^ PROBLEM HELP!!

    When i put a string^ object into a String::Concat object and hit compile, VS 2005 Pro .NET(WinForms") gave me this error: ------ Build started: Project: 7, Configuration: Debug Win32 ------ Compiling... 7.cpp c:\documents and settings\jonathan baldwin\my documents\mycpp\projec\7\7\Form1.h(146) : error C2065: 'str1' : undeclared identifier Build log was saved at "file://c:\Documents and Settings\Jonathan Baldwin\My Docume ...Show All

  • Sheepe C++/CLI code porting problem

    I'm trying to port a C++.NET (managed extensions) application to C++/CLI. However I'm not very strong with the syntax yet. What I'm trying to do is to create a wrapper for a C Dll file. To do this I'm using DllImport but I failed to found documentation on it's use. There are some problems due to changes of the syntax but I couldn't find out why yet. The C++.NET line looks like this:   [DllImport("my.dll", CharSet = Ansi,  CallingConven ...Show All

  • Janaka Best practice: P/Invoke or C++/CLI?

    If I need to access unmanaged code (Win32 dll or a 3rd party dll), I routinely find myself creating a C++/CLI class library project type (dll) and creating a few wrapper classes (and usually refactoring for simpler interfaces than the original function being called). After it's built, it's a .NET assembly that I can access from C# or whatever. I find it easier to do than using P/Invoke directly from C# (although creating a DllImportAttribute i ...Show All

  • Gemini II Designer problem

    Hello, I have a little problem... I can't design my form anymore. It happened just like that without me doing any changes and now I can't view the designer. My application runs ok, though. I get two kinds of errors. Some times I get this: One or more errors encountered while loading the designer.The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error ...Show All

  • HibaAli equivilent of _msize() for a pointer not dynamically allocated

    In my function it is passed an argument wchar_t * src I want to allocate as much space as src points to. if i use.. wchar_t * buffer; buffer = (wchar_t *) malloc ( _msize( src ) ); it will error if src was not dynamicaly allocated with malloc. I want to be able to get the size even if it was created like.. wchar_t sbuff [1024]; wchar_t * src = sbuff; how would my function get that 1024 value when it creates its buffer ,thanks ...Show All

  • John Cramer MFC displays XP visual style only when VS2005 installed

    HI. I'm writing an MFC app and trying to use visual styles. I added the manifest file with the various lines, including: [...] name = " Microsoft.Windows.Common-Controls " version = " 6.0.0.0 " [...] My problem is that although this caused the application to render correctly in testing (e.g.: white menus), when I run the application on a machine that has XP, but not VS2005, it renders in the old style (e.g: grey menus). Anyone know wh ...Show All

  • Keith Spitz Catching exceptions

    Hi! How can I catch processor exceptions, such as "null pointer exceptions" and similiar I have tried set_terminate, but that appears to catch uncaught exceptions only (from throw). Thanks in advance, Nille Read: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/_core_Exception_Handling_Topics_.28.General.29.asp And this article series: http://msdn.microsoft.com/library/default.asp ur ...Show All

  • noeldp Function decorated names in DLL lib

    I've created  a DLL and want the debug build to produce a dll and lib with different name, something like MyLibd.dll and MyLibd.lib (as opposed to MyLib.dll and MyLib.lib). When I built the debug version of the EXE that uses the DLL in question I obviously linked against the debug version (MyLibd.lib), but noticed that the EXE still loads the release DLL (MyLib.dll). Looking at the debug lib I noticed that all decorated names refer to the r ...Show All

  • farnaz1 _tcscpy_s corrupts the heap

    I have the code below. If I compile it as is it works fine. If I change to using _tcscpy_s the heap is corrupted when I copy the string. Can anyone spot an obvious error here Thanks Mark void CRokuPage::AddDeviceToObject(HKEY hKey, LPCTSTR lpszClsid) { //Add the device into the new clsid devices key if (_tcslen(lpszClsid)>0) { HKEY hKeyDevice; if (ERROR_SUCCESS == RegCreateKeyEx(hKey, m_szDeviceUDN.Mid(5), 0,NULL, RE ...Show All

  • gjen020 Unicode to MBCS conversion in order to pass string to ISAPI calls

    Hi, I have got a query related to 'Unicode to MBCS conversions'. First of all a brief information about project. I have got 2 projects, 1 is Unicode (Non-ISAPI) and other Non - Unicode (ISAPI). I need to pass the values from project 1 to project 2. Then this is going to be sent to ISAPI which in turn display the value in the browser through ASP page. I am using pseudo resources in which some characters are visible correctly ...Show All

  • windpuffs ifstream 's mistake in vc8, correct in vc7.1

    When I use ifstream 's constructor to open a text file, the text file's filename contain chinese char , and the filename is in Multi-Byte Character Set style (const char *), I success in vc7.1 but fail in vc8. Trace the library's source code, I found in vc8, the ifstream will call mbstowcs_s to convert the input filename form MBCS to wide-char, mbstowcs_s will call _mbstowcs_l_helper to do that, but it get the wrong string in my english ver. OS. ...Show All

  • Lucien de Rubempre Where is stl.net? Is it included in beta2? I can't seem to find it.

    Hi hdp203! I downloaded and installed VS2005 beta2. I can't seem to find cliext/vector, map, etc. in the installed dir.  Where is it if I try to  # include <cliext/vector>, I get C1083. Is it included in beta2   Yes. At least for me without any problem... (but it was aclean install ontop of XP-SP2). -- Greetings Jochen My blog about Win32 and .NET http://blog.kalmbac ...Show All

  • js40 Bufferoverflowu.lib for amd64 is missing in whidbey beta 2

    Lets say you compile some code with the latest PSDK for AMD64 cpu. Then you compile your files into a library and expect users to use that library. However because of the security code there is a dependency for using bufferoverflowu.lib on the PSDK since it uses old CRT code. If you use #pragma comment(lib, "bufferoverflowu.lib") then the file must exist to be able to succesfully link. This is a problem if you compile your code with the PSDK an ...Show All

  • ladydee File open mode ios::ate is not working correctly with standard c++ library

    In VC++ 6.0 the following sample program is not working as intended. It opens existing file and overwrites the contents. It should append at end of file because the mode ios::ate stands for: "ios::ate Opens an existing file (either input or output) and seeks the end. " It is working correctly if I use "fstream.h" in place of "fstream" or ios::app in place of ios::ate. Can any one tell me if it is known issue or do ...Show All

787980818283848586878889909192939495

©2008 Software Development Network

powered by phorum