visual-c++

Flash in VC++ Documentation

Hi I am trying to host a flash object inside an CAxWindow, I have managed to insert a shockwaveflash (SWF) and its working fine. I am trying to find all available API's that are available in the flash ocx. I am unable to find any documentation for the functions in the IShockwaveFlash interface. I know that Adobe doesn't have a documen...

should std::auto_ptr<>::operator = reset / deallocate its existing pointee ?

I read here about std::auto_ptr<>::operator= Notice however that the left-hand side object is not automatically deallocated when it already points to some object. You can explicitly do this by calling member function reset before assigning it a new value. However, when I read the source code for header file C:\Program Fil...

[MFC] Combining 2 memory DCs ?

I'm writing a control where there's a lot of custom drawing going through. Because of this I need to trim down the amount of "screen writes" that go about. Currently there is only one memory DC that is used to write to screen so as to avoid flicker when the control is redrawn. I want to know if it is a possiblity to use 2 or more memory ...

Problem with #ifndef and #pragma once

I want write the program with next struct stdafx.h - contains some #define defenitions of program constants and #include of headers wich uses in all project. frmMain.h - contatins code of Form1 also can Show form2 and uses some code from BckHeadr.h and some functions call that headers included in stdafx.h. frmIniPrgs.h - contatins cod...

problem with treeview

I want to configure a treeview so that when all checkboxes of a parent are checked, then the parent checkbox is checked. And when all checkboxes are unchecked, the parent checkbox is unchecked. Does the treeview class have a standard property for that? ...

width and height of Font

How to get Width and Height of a specified number of characters ,font Size , font type and font style. ex : font size = 14 font type = "Times New Roman" font style = "Regular" No of Characters = 50 What is the width and height ? ...

How to easily pass a very long string to a worker process under Windows?

My native C++ Win32 program spawns a worker process and needs to pass a huge configuration string to it. Currently it just passes the string as a command line to CreateProcess(). The problem is the string is getting longer and now it doesn't fit into the 32K characters limitation imposed by Windows. Of course I could do something like c...

Why is "This program cannot be run in DOS mode" text present in .dll files?

Recently I opened a .dll file produced by Visual Studio 9 while compiling a native C++ DLL project and was surprised to see the "This program cannot be run in DOS mode" text near the beginning. Why have this text in .dll files? ...

VC++ static library needs .obj stored in other project. How to do it?

Hi all, I am using Visual C++ 6.0. I have a static library containing a set of C functions. To create the .lib file, I need .obj of some .C files. Some such files are contained within the same static library project but some are to be stored in some othr project due to separate flags, etc. How can I include those .objs to create this l...

Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++?

Suppose I have a VC++ project contains no of(say e.g 5) Source files(.cpp files),it will generate 5 .obj files(obj files corresponding to my .cpp's files not all kernel and OS layers including .obj files) e.g my project includes xyz_1.cpp,xyz_2.cpp,xyz_3.cpp,xyz_4.cpp,it will corresponds 4 respective .objs. By programtaically HOW CAN I...

Specify path to rule file using environment variable or macro?

In some of my Visual C++ project files I would like to specify the path to a rule file using an environment variable or macro. I have tried editing the ToolFile element with a text editor: <ToolFile RelativePath="$(SolutionDir)\build\tao_idl.rules" /> But Visual Studio complains that it can't find C:\Path\to\ProjectFile\$(Sol...

graphics programming

hi , i would like to program some graphic figures such as line, circle,etc. i have used turboc++ 3.0 for dos graphics. i would like to do the same with the compilers dev c++ or code blocks or vc++. i would like to implement dda and bresenhems line and circle drawing algorithm. how should i go about implementing these programs through ...

problem with treeview

I want to configure the tree view component so that would be the topmost parent node would have no chex box and all the others had. ...

Watermarking + Directshow filter

I want to put a watermark on my video. IS it possible to do with directshow filter. Want to overlap an image on video like channel logo. so that image will be fixed when video is playing. Please provide some valuable help or samples (VC++) ...

problem with closing application

i create my own dialog form with two buttons (ok, cancel) and checked list box. i want to get all selected strings in first form which shown second form. for that purpose i do function GetSelected which return CheckedIndices->GetEnumerator() of my list box. now i want to deselect all strings on pressed cancel button. And deselect all st...

how to share the paint application to others in visualC++

Hi, Recently i designed an MFC paint application so can anyone provide me idea to how to share this application to others so that when i draw on this application others also can watch what i am drawing. ...

Overlay bitmap on live video

Hi i want to Overlay bitmap on live video. Iam trying to do this with the directshow sample. I edited PlayCapMonker sample and added some functions to enable this. i did this with the procedure explained in below link http://www.ureader.com/msg/1471251.aspx Now i am gettting errors Error 2 error C4430: missing type specifier - int...

ISO file in C++

Is it possible to create an ISO file of an DVD in C++ using IMAPI2 ?.How ?.Can you give me sample code.I checked in internet for 4 more days.But I couldn't find a sample.Hope that help me.Thanks in advance ...

Visual C++ 9 Linker file size limitation.

It appears that the visual C++ 9 linker has a file allocation algorithm that doubles the size of the file every allocation, so you get 512mb, 1024mb, 2048mb, 4096mb. The problem is that it is using a library that cannot handle files larger 2048MB, and as such crashes with an error such as "cannot read file at is the disk full or write p...

OnCtrlColor Not Working?

Hi, I used the following overloaded method to change the text color to red in a listbox, in a Visual C++ MFC dialog based application. When I build the program in DEBUG mode, it works perfectly. But when I use the RELEASE mode the text color doesn't change. Why is this and how can I overcome this problem?? Thanks!! HBRUSH MyDlg::OnCtl...