Software Development Network Logo
  • VS Team System
  • Visual C++
  • SQL Server
  • Game Technologies
  • IE Development
  • SharePoint Products
  • Microsoft ISV
  • Visual C#
  • Audio and Video
  • Visual Basic
  • Windows Vista
  • .NET Development
  • Visual FoxPro
  • Smart Devicet
  • Visual Studio

Software Development Network >> Visual C++

Visual C++

New Question

How to Mix VC++ with C# and VB in 2005
.NET framework 1.1 from 2005
Compile error within code in #ifndef
This application has failed to start because the application configuration is incorrect
destructor of global objects not called (CRT without managed code)
faulted while dumping object
deque iterator not dereferencable error
Try DisableThreadLibraryCalls
No error in debug mode but errors in runtime
how to read Japanese characters from a file

Top Answerers

DotNetDotNet
amnonman
chris441962
willfried
Dee_dotnet_79
Vivekanandan
eLado
jlchx
sachhha
JerryCic
Implementing ebXML
Only Title

Answer Questions

  • RichardM_UK VC2005 : Disable c++ exception in Dll application

    Hy, I create a simple Dll application that use stl. I try to disable exception to optimize my application. First, I disable exception in project properties and I define "#define _HAS_EXCEPTIONS 0 " in my prefix include. But it doesn't link, I have this error : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::exception::_Raise(void)const " (__imp_ _Raise@exception@std@@QBEXXZ) referenced in function "protected: static void __cdecl std::vector<int,class std::allocator<int> >::_Xlen(void)" ( _Xlen@ $vector@HV $allocator@H@std@@@std@@KAXXZ) 1>Exception.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exce ...Show All

  • Jan Byvaly wglMakeCurrent and Profiling

    Hi, In my C++ project I'm working with OpenGL. When I try to profile this with the build-in profiler of VS 6.0 as well as with devPartner and VS .Net the call of the function wglMakeCurrent(..) fails with error number 3221685674. When I run the prgram without profiling, everything is fine and working. But as soon as I enable profiling this function fails and with it I can't draw anything... I couldn't find any documentation of this error. here is the code fragment I mean. if (!wglMakeCurrent (hDC, hRC)) { std::cout << (DWORD)GetLastError() << std::endl; } If you have any idea, what this is all about please let me know. Kind Regards Stephan Maybe it's old thread, but I go ...Show All

  • mattdawg syntax error c2059

    Hello folks, I'm working my way through the book- Object Oriented Programming in c++ by lLafore and every example that needs to include the <iomanip> gives me this error-error c2059: syntax error : '('   it happens in every example using the <iomanip> header. When I click on the error in the output window it brings me to the <iomanip> header and to this line- _MRTIMP2 _Smanip<ios_base::fmtflags> _cdecl(ios_base::fmtflags);  It's two lines after the comment: // instantiations.  I don't know what this means. I've gone over all the code from the examples and it seems I've input the code as it is in the book. I've checked the errata and no help there. This is driving me nuts. I can't figure it ...Show All

  • barkingdog Solution to msvcr80.dll Problem

    Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Thanks much everyone for the feedback. Sounds to me like its an inconsequential error that Norton will need to address in a future update to look for it in the correct dir. I read on an msn blog somewhere (sorry I cant find it again) that one should not put the dll in the system32 dir but from other posts it seems that it's possibly neede ...Show All

  • Cynkan Getting an unknown amount of variables from a char*

    Hi, I'm trying to process data from a character string, but I'm not sure which function I should be using to do so when there are an unknown number of arguments inside of the string. I've done a forum search and looked through the VS docs, but I think the problem is that I don't really know what I'm looking for. When I know the number of arguments inside of the character string, I've just been using sscanf_s(line,"%d %d",&x,&y) as an example. But I'm not sure what functions there are available for me to use when there could be a different number of args/vars every time. Does anyone have a suggestion, or even know what I'm talking about Anyone Bueller Thanks. By using Strtok function , ...Show All

  • WineNCheese Is there any difference between Unicode char set and Multi-byte char set ?

    Is there any difference between Unicode char set and Multi-byte char set in the Visual Studio 2005 Thank you!! Unicode IS supported on Win 95, 98 and ME to some extent using MSLU (Microsoft Layer for Unicode) aka unicows.dll: http://www.microsoft.com/downloads/details.aspx FamilyID=73BA7BD7-ED06-4F0D-80A4-2A7EEAEE17E2&displaylang=en Yes, there is a difference between unicode an multibyte. See http://msdn2.microsoft.com/en-us/library/cwe8bzh0(VS.80).aspx for more details. I don't think one is better than the other, and if you use TCHAR (instead of char) then it will be transparent to you as a developer. If you want to support languages that requi ...Show All

  • Jackuline View invalidate problem ...

    Hello, I am developing an MFC SDI app using VC++ 2005. The view area of the app is divided into four areas (rectangles), each of them contains some icons, texts ect. I am drawing all the things from within "OnDraw" method of the view class. I need to invalidate the areas depending on the change of data from the other dialogs of my app. I can invalidate the view area from within the main frame. But how do I invalidate the view area from other dialogs To inform views about changes of data you can use UpdateAllViews that is located in the CDocument class. UpdateAllViews takes also some hints that might be useful to update just parts of your information. See the Scribble sample. So after a dialog changed some dat ...Show All

  • mariap What is Psychic Window?

    What is Psychic Window This topic is related to WIndows Programing using C++. Good riddance of this question! :) I think either one of the original posters should ask the author of the book/handout what this fictitious term means. see: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=865999&SiteID=1 Sorry Sir, Actually that thread is not giving proper infomation regarding Q. Tell me the exact meaning of Psychic WIndows Gaurav Arora wrote: Sorry Sir, Actually that thread is not giving proper infomation regarding Q. Tell me the exact meaning of Psychic WIndows ...Show All

  • qwv Maximise/Minimise buttons

    Hi friends, I need to know thw size of the maximize/minimise buttons on the right hand side of the child frames. Is there a way to get this information Any help would be greatly appreciated. Thnx Prateek Mark above post as answer, to close this thread. Cool! Thnx a lot --Prateek Use GetSystemMetrics. e.g. int nCaptionButtonWidth = GetSystemMetrics(SM_CXSMSIZE); int nCaptionButtonHeight = GetSystemMetrics(SM_CYSMSIZE); ...Show All

  • JLesch Extracting a random number in (0,1]

    Hi everyone! How can I extract a random number between 0 and 1 (0 excluded) in c++ Thanks! This can't be a solution. rand gives numbers between 1 and RAND_MAX. So the formular must be double rnd = (static_cast<double>(rand())+1)/(RAND_MAX+1); Martin Richter wrote: This can't be a solution. rand gives numbers between 1 and RAND_MAX. So the formular must be double rnd = (static_cast<double>(rand())+1)/(RAND_MAX+1); That would work too. rand() is documented as returning a value in the range 0 to RAND_MAX (hence my +1, to avoid divide by zero errors). 1 divided by any number > 0 will be a value between 0 and 1. Actually, upon reflection simply adding 1 could produce ...Show All

  • Paul Ballard What is the DisAssembly (internal) Code of RoundRect() API (for PostScript equivalent)

    Hi, On the following parameter of RoundRect(...Left, Top, Right, Bottom, VRadius,HRadius) is giving correct output on the screen for differect parameter values. 1.) 8.4 -253.9 238.2 -482.9 280 -190 2.) 5.5 -547.4 420 -727 360 -360 3.) 368.2 -247.5 540.9 -533.6 150 -190 But if I use the same value in the postscript code to draw the rounded rectangle, it does not gives the correct output. I have used the below mentioned postscript code to draw the rounded rectangle. Please tell me what logic or algorithm uses the RoundRect() API to draw different types of rouded rectangle with different value. ================================== %!PS-Adobe-3.0 %%BeginProlog %% Set color (c m y k) /CMYK { 255 div 4 1 roll ...Show All

  • Student_I Optimizing non-manged code in C++/CLI project

    Hi, I'm working on an image processing library in the .NET framework and have an optimization problem. In short terms we have created a template based library in standard C++ and written an autogenerated C++/CLI wrapper that "unfolds" the templates for managed .NET assembly exposure. The project uses boost (from boost.org) and uses templates extensively. Everything works great except the optimizer in the CLR library project. Compiling a pure native console application gives very slim optimized assembly code for the critical inner loops, but the same thing compiled in the CLR project gives terrible code (runs between 0 and 10 times slower than the pure native project, the worst being code with float calculations in the in ...Show All

  • ZindrosH Using VC++ 8.0

    Hello, I have a project that was created/build using VC++ 6.0, the project uses a third party library iconnect.lib. I am trying to compile the project using VC++ 8.0 but I get a lot of linker errors - some of those errors are below. Note: the project compiles without errors or warnings when using VC++ 6.0. Can someone tell me what I need to do to get my project to compile/link successfully with VC++ 8.0 Thanks in advance! -Agustin ERRORS: Error 82 error LNK2001: unresolved external symbol __RTC_CheckEsp iconnect.lib Error 83 error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > ...Show All

  • Tom Nash heap block modified past requested size

    Hello, I'm new to C++, although I've been developing in .Net since its inception.  I'm taking a class to try and learn the basics of the language.  I'm working on a project for class where I'm supposed to learn how to dynamically allocate memory based on user input.  The following code is supposed to compare two DNA strings and calculate a numerical value for the discrepancies between the two.  When I run it, I get an exception after the user inputs the second string, if the string length exceeds the array size and more memory has been allocated.  [It tells me that the heap has been modified past the requested size of 8.]  This is strange, because I'd expect to get an exception after the first input as well ...Show All

  • BlueBeetle Confusion with header includes

    Hey guy, Well I have recently just been exploring Visual Cpp and im sort of catching on but theres still a slight problem I run into with header includes. When I make a window form application I never now what headers to put in my programs for certain stuff. All I know is that for console applications you need the iostream include. Is there a list of header includes around here what explains the functions and procedures held in each one Thanks Keen. You'd typically need #includes for three types of functions, "C" runtime and STL library functions, Windows API functions and framework functions (MFC, ATL). "C"/STL function tend to have a dedicated header file (like <iostream>) and ...Show All

525354555657585960616263646566676869

©2008 Software Development Network

powered by phorum