visual-c++

How to get function name (function declaration) from VC++ .dll file ?

Hello All, Can anybody tell me how can i get the function declaration i mean function name from VC++ DLL file. I have .dll of VC++ and i want to extract function name from it ? Is it possible then let me know. Thanks in Advance Thanks, Neel ...

vcl.h: No such file or directory

I'm looking to compile some old source code in Visual C++. However, the first of many errors I am receiving is: vcl.h: No such file or directory This appears to be in reference to the Visual Component Library, native to Borland compilers it seems. I downloaded the free Borland C++ 5.5 command line compiler, but it doesn't seem to co...

How can i build VC++ .dll file within (statically) in my .exe ?

Hi All, I have one VC++ project that is compiled and generated .dll file. I have made one application that uses above vc++ .dll file. Can i build my new application .exe and .dll statically i want only one .exe file that include .dll file (statically) How is it possible in visula studio ? Thanks, Neel ...

How to make my software run from pendrive?

Hello guys, I need to know how to make a software in Visual Studio(VC++ or VB) that can be run from a USB pendrive? Is there anyway i can create this standalone software that doesnt need any installation in the PC in which the USB is plugged into? ...

Will VS2008 compile binaries compatible with Windows 7

I'm using Microsoft Visual Studio 2008 (VC9) to compile a project that has a .dsw file. I already have the 2010 and would prefer to use it, but it seems this dsw was built for 2008. I'd like to compile and produce a binary that's also compatible with Windows 7. My questions: if I compile with 2008, will the resulting binary be compat...

c++ gdi drawing ellipse problem

ok i can draw ellipse the problem is this, im trying to draw one ellipse but change its x value to different one. like this i draw one ellipse and the x value is 1 after ten seconds i want it the x value to be 10 but it seems that im creating new ellipse with x value 10. here is my code while(sd==1)//sd equal 1 { sf++;//sf equals 1...

Visual C++ hash_multimap not finding any results.

I need some help understanding how stdext::hash_multimap's lower_bound, upper_bound and equal_range work (at least the VS2005 version of it). I have the following code (summarized for the question) #include <hash_map> using stdext::hash_multimap; using std::greater; using stdext::hash_compare; using std::pair; using std::cout; typede...

Visual Studio 6 - Application suddenly dies leaving no error messages

Some weeks ago I made some modifications to an old "Visual C++ 6" multi-threaded application. Since then, the application randomly disappears from the screen without leaving any error messages (not even in the event viewer). I am in big trouble and dont know how to find the problem. The code was written with try/catch to catch every exc...

Is it safe to return local CStringW to the caller?

I have a function defined a local variable typed in CStringW, is it safe to return this object to the caller by value, not by reference? ...

Saving data to Excel/PDF from VC++ MFC application

I have written an ERP application wherein the user wants to save few reports directly to Excel and PDF. Right now I'm displaying the reports in List Control, which has to be saved to spreadsheet or PDF. I've written the application in VC++ MFC with Visual Studio 2005. Please help me how to do this. ...

c++ gdi animation not working

im trying to create ball animation using gdi but i can't get it working. i created a ball using this Graphics graphics(hdc); Pen pen(Color(255, 0, 0, 255)); graphics.DrawEllipse(&pen, sf , 0, 10, 10); i have while loop that loops and adds 1 to sf value basicly like this sf++; than i try to repaint the window(it doesn't work...

How to change the cultural info to english in vc++ 6.0?.

Hi friends I have a converter code which will convert one form of data to another format. But this exe is now running in french OS. while reading the file, decimal separator and other thing will vary according to french OS. Ex: In french decimal separator is "," instead of ".". so how to change the cultural info to English while reading...

Message map macros

When do you use ON_COMMAND and when do we use ON_MESSAGE. What are the differences between them. ...

Put files automatically in /scripts folder in Visual Studio 2005

I set up a bunch of filters in my project to help find files. But all my source code files actually just go in two folders, source/headers... the filters are just for Visual Studio organization but I wanted to keep the directory structure simple for building in other compilers. Anyway, whenever I add a new item or class, the files go in...

Who is responsible for putting the null terminator when handling TB_GETBUTTONTEXT?

The documentation for TB_GETBUTTONTEXT says that the handler has to return the number of characters and optionally (if lParam is not null) copy the string into the supplied buffer. The caveat is that the length doesn't include the terminating character. I see the following problem. Say the handler stores the string precomputed (so its l...

Profiler of VC++10 only optimizes 31%

I get "776 of 2491 ( 31.15%) profiled functions will be compiled for speed" when using the profiler of VC++10 64 Bit edition. If I use the 32 Bit edition, 100% functions are optimized. What am I doing wrong? ...

Template arguments

I have ClassA<ARG_TYPE> and ClassB<ARG_TYPE>. Now I want want to use ClassC, that has common ARG_TYPE and mentioned classes as template arguments. ClassC<ARG_TYPE, ClassA<ARG_TYPE>, ClassB<ARG_TYPE>> is easy. But is it possible do declare ClassC<ARG_TYPE, ClassA, ClassB> so that both A and B classes would know to use ARG_TYPE as their...

POINTER_32 - what is it, and why?

I have just been given the task of updating a legacy application from 32-bit to 64-bit. While reviewing the extent of the task, I discovered the following definition immediately before the inclusion of external (eg. platform) headers: #define POINTER_32 I cannot find what uses this definition or what effect it has, but it looks like t...

ATL macros only working on devel-computer

hi, i use ATL macros like A2T and A2CW. on the devel-computer everyhting works fine. when i use the application (visual studio 2008 pro) on another computer - the output of the ATL-macro-conversion is not readable. i hope someone can help me to solve this problem. my application is finished - only the ATL conversion macros are the prob...

afx_msg term in message handler functions

Why afx_msg is used in message handler function declarations? ...