You're probably compiling this with some odd options, that's part of .Net (I believe), which you shouldn't be using at all on a C++/MFC application. I would guess your problem is not the code but the way you configured the project.
Assuming this is a continuation of your previous problem, I already suggested this[^], and similarly tried to explain, here[^], about the correct use of casts in C. Randomly changing parameters or removing them altogether is no substitute for making full use of both documentation and debug information.
Should work as it would take default paramters correct ?
Not necessarily, as we do not know what else your code is doing. As I said before, read the documentation[^] and carefully check against your code. Also ensure that your project has been completely rebuilt to ensure no undiagnosed compiler errors remain.
There's a known problem with CFileDialog crashing although I can't remember the exact situations. Something to do with WINVER, I think. Anyway, you can test if this is what your problem is by creating the dialog on the stack and seeing if that stops the crash.
CFileDialog* pFD = new CFileDialog(...);
OK I did embark into world of DirectShow and ditched VFW.
All the code samples here is way over my head for now.
I got as far as “using SDK to build basic DirectShow”. It is in one of many SDK 's “help doc” MS puts out here and there about DirectShow. I am suppose to build basic DirectShow application and use it as accessible debug library. I must be dense, but I cannot figure how to do it.
I do not need full blown sample code, there are plenty of them here, but gentle nudge into right direction in building from SDK sample would be appreciated.
Thanks for your time.
Two reasons for this update.
Soren, I did not delete my last post, I guess gremlins at work.
Second, I am making progress using DirectShow, however, I just got past enumerating video devices and still struggling with DirectShow overall concept.
I just love MS inventing all these therms with very terse explanations – graph, filter , bag, moniker etc.
Old fashioned flow chart would IMHO work much better than MS one pages samples which are not tied together.
The most confusing are the VMR options – windowless or with window?
And when you do search all you get is reference to Window7, back paddling to XP as I do is inevitable.
But eventually I'll get
Thanks for your help.
which is a picture control, it type property has beent set to "Frame". So it will act as a frame to the bitmap positioned on the dialog.
Or else plz give me any suggestion if we can stretch a bitmap.
Whenever I change the resolution of the PC, I want to change the size of the bitmap accordingly. I can change the position and size of the controls, but prob is with the Bitmaps, BMP size I can't change. So I was looking out any way for this.
I have 3 objects on the screen, I want to rotate onll 2 objects the axis and X,Y,Z. Another line is there which I want not to rotate. But with this code below all are moving. Check below my DrawScene function.
void CopenGLCoordView::DrawScene(CDC *pDC)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);