visual-c++

Debug Visual C++ memory allocation problems

I'm debugging a software which crashes eventually with one of the following messages: 1. DAMAGE: after normal block (#24729280) at 0x00D710E0 2. Debug Assertion Failed Program: D:\Soft\Test.exe File: dbgheap.c Line: 1017 Expression: _BLOCK_TYPE_IS_VALID(phead->nBlockUse) This software is really old but changing it now is ...

Are there any tools to detect buffer overflow on Visual C++ 6.0?

I've been having crash problems due to heap problems, so I guess a buffer overflow is happening somewhere. How do I detect it? ...

C++ ODBC problem with sqlucode.h header

I found a great C++/ODBC example here... The project I downloaded builds great and everything works. However, when I copy the .cpp and .h files into another project, I seem to have a linking problem. The SQLConnect function in sql.h is the one I want. When I right-click this function in the easyodbc.h file in the project I downloaded...

Visual C++ Development Targeting Linux

I've been a Visual C++ user for quite some time now, and in the following weeks, I will be joining a (C++) Linux-only project. It should be noted that I have absolutely zero development experience on Linux. Currently, Visual C++ 9 along with the Visual Assist X add-in make Windows-based development rather enjoyable. Having looked at var...

Convert CString to character array?

How to convert CString in MFC to char[] (character array) ...

VC++ 2005 project option to include stl?

I'm working on a cross platform project that uses STL. The other compiler includes STL support by default, but in VS2005 I need to add the following before the class definitions that use STL items: #include <cstdlib> using namespace std; Is there a VS2005 option that would set this automatically? It's just a bit tedious to work around...

Reading from RichTextBox in VC++

Hi, I have to read the text character by character from a RichTextBox in VC++. I need a function like getch or getche. ...

When using Win32 code in your modern C++ app, should you use proper casting?

For example the following cast can be found littered throughout the MSDN documentation: (LPTSTR)&lpMsgBuf Should I bother converting that to: static_cast<LPTSTR>(&lpMsgBuf); Or should I just leave all the idiomatic C-esque Win32 portions as they are typically found in the docs, and save the more idiomatic C++ style/usage for the re...

What could cause DAMAGE: after normal block error?

I keep getting this error after my application is running for 2 days. I've been told it's been some kind of buffer overflow, but is it the only option? The app is written in C++ using Visual C++ 6.0. ...

Will the deprecated /clr:oldSyntax supported in VS2005 and VS2008 still work with VS2010?

Does anyone know (with confidence either way) if Microsoft plans on continued support (as in compiling) the legacy (2003) deprecated (vs2005/vs2008) Managed C++ (MC++) Syntax to target the .NET CLR in C++ code? Microsoft officially deprecated the /clr:oldSyntax with the VS2005 C++ Compiler (Orcas); and thankfully the VS2008 C++ compiler...

How to move controls from the bottom to the top of an MFC form?

In VC++ 6.0 (MFC), how the the controls eg : Button, EditBox, and Static Text can be move from bottom of the form to top of the form. ...

VC++ Charts using Chart X

Hi, I'm new to drawing the chart using chartfx can you give me the meanings of teh following methods, they are kinda confusing...I did not find documentation anywhere. GetValue ( ) GetXValue ( ) PutItem() Thanks, Arjun ...

How to make WMV compression using ASF Writer faster ? Any hints ?

I'm compressing raw AVI files to WMV using the ASF Writer. I'm in a big need to make the compression faster. There are any hints & best practicevs on how to achieve this ? Drop/lower the indexer impact ? Any hidden compression parameters ? The files contains just video in RGB/24bits format and the compression level for the video stream...

i want to pop up my own dialog(which save file on server without asking the target path location) instead of adobe's save as dialog.

Can we override the Save As dialog of Adobe Photoshop? How we can override? What will be your approach? Actually I want to pop up my own dialog (which save file on server without asking the target path location) instead of Adobe's Save As dialog. ...

How to build a Visual C++ Project for Linux?

Hello, What's the best and easiest way to build a c++ application, which was written with Visual Studio, for Linux? The code itself is ready - I used only cross-plattform libs. Is it possible to prepare everything under Windows in Visual Studio and then build it with a cli tool under Linux? Are there any docs describing this? Thanks,...

C++ Type information from VS2008

Hi, Is it possible to get Visual Studio to output any of the type information when compiling C++? GCC has GCC-XML and I was wondering there was something similar for VS2008. Thanks BEN ...

creating video file

How would I create an class that records the users interactions with the desktop. and it should convert it to a video format such as wmv file? ...

IExplorer: pop up my own dialog instead of default IExplorer dialog when we trying to load a file from net.

Hi, I am working on a project which need to customize the default functionality of IEXplorer. I need to pop up my own dialog instead of default IExplorer dialog(IExplorer run or save dialog window) when we trying to load a file from net. Is tere any way to do this? Plz reply. It's a Local Application. ...

settimer vc++

Hi,plz can anbody explain me how settimer works in vc++,and wat is its parameters? thank u. ...

Windows Function

In my project i have 2 radio button "File" and "not File" and i also hav a textbox called "width".. I need to disable the text box when i click on "not file" radio button and once i click "file" radio button it should enable the textbox.. Can u tell me the function in Windows programming in visual c++ EDIT : "Add variable" is disabled...