|
Crazy
Thanks for the update!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Keith (MapMan) wrote: I pasted in your code snippet and that also takes nearly 2 minutes before the dialog appears so it's not the filters which are the problem. The identical code, pasted into another application, works without any delay.
That makes it sounds as though CFileDialog may not be the problem. How about just creating a dummy MDI application to see what it does with all of the default settings and code?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I think you're probably right that it's not CFileDialog's problem as such. Something else about the application is causing the problem.
I'm pretty confident that if I created another dummy MDI app it would not exhibit the problem because I already have other real, not dummy, MDI apps which don't exhibit this behaviour.
What I think I might do is take a copy of the failing application and start knocking bits out of it to see if I can find something which makes it work. If I don't get anywhere that way then I may try as you suggest, start with a brand new project then gradually add back in the functionality of my app. It's going to be a long haul, though. There's rather a lot of it.
Keith
|
|
|
|
|
I had a similar problem in which the standard MFC application was crashing on certain action inside file open dialog on few machines with a simple code.....
The problem for me was solved for me after downloading a windows hotfix
refer to this link if you can find something http://www.bokebb.com/dev/english/1960/posts/196055272.shtml[^]
|
|
|
|
|
Wow, great link, I've had this problem for a good while on one particular machine, kind of forgot about until now.
|
|
|
|
|
Thanks for the suggestion. I did follow up the link you posted but I think that situation is different. It was a crash, rather than a hang, and it occurred after the open-file dialog box was displayed. In my case the dialog is never displayed. It hangs before it gets to that point.
Keith
|
|
|
|
|
I just meant some other hotfix might be able to solve the problem...any way good luck this is all I know
|
|
|
|
|
Hi,
If I have to examine a .dmp file using windbg.exe and I use the following SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols to download
the OS symbols then am I doing it right. Will windbg ensure to download the correct symbols based on the .dmp file that was generated. ie. will windbg ensure to download the correct symbols based on the xp version (service pack etc) on which the .dmp file was generated.
Thanks
Rajdeep
|
|
|
|
|
Hi all
I want the program to compare two using C++.gif files.If there is any win32 API then let me know.
Thanks
Subrat
|
|
|
|
|
Hi all
I want the program to compare two .gif files using C++.If there is any win32 API then let me know.
Thanks
Subrat
|
|
|
|
|
Hi Member 4708266,
Are you by chance looking for a program to compare two .gif files using C++ ?
[added]
BTW
There is the following function
BOOL PleaseCompareTheseGifFiles(LPCTSTR szGifAFilename, LPCTSTR szGifBFilename);
exported by the CompareStuff library available for free on www.freproductz.cpallini.com[^].
[/added]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Wednesday, October 15, 2008 11:30 AM
|
|
|
|
|
You did not mention the magic site
Regards,
Sandip.
|
|
|
|
|
Fixed.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You're so mean...
Isn't the name of the function PlzComparezDaFilez(..) ?
|
|
|
|
|
Michael Schubert wrote: PlzComparezDaFilez
With the above name it is exported by the DLL only if you compile it defining the SMS_SLANGZ symbol.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
CPallini wrote: available for free on www.freproductz.cpallini.com[^].
And if you call in the next 10 minutes, we'll SUPERSIZE your order!
That's right! You'll get TWO CompareStuff libraries FOR THE PRICE OF ONE!
CALL NOW!!!!!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You are our winner because your site doesnt has any limited for generate code! 
|
|
|
|
|
Don't forget that is ALL free stuff!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Your request is rather vague. What do you want to compare, size of the files, content,...?
|
|
|
|
|
I want to compare content of two .gif files using c++ win32 APIs.
Size of two .gif files may be different, but if content is same, the our API should return true as they are same.
Please reply me soon, it is very very URGENT.I have tried using LoadImage() and memcmp() APIs, but failed.If possible please give me the code.
Thanks in Advance...
|
|
|
|
|
You need to two loops for width and height and then you must be check pixels of two gif files of course this wasy is very slow.
|
|
|
|
|
I found the code as follow.But it isn't working fine.Please tell me the necessary modifications ASAP.
int main() {
HANDLE hBitMap = LoadImage(0, "img.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
BITMAP bitmap;
GetObject(hBitMap,sizeof(BITMAP),&bitmap);
int size = bitmap.bmHeight*bitmap.bmWidth*bitmap.bmBitsPixel/8;
BYTE *lpBits = new BYTE[ size ];
GetBitmapBits((HBITMAP)hBitMap,size,lpBits );
HANDLE hBitMap2 = LoadImage(0, "img2.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
BITMAP bitmap2;
GetObject(hBitMap2,sizeof(BITMAP),&bitmap2);
int size2 = bitmap2.bmHeight*bitmap2.bmWidth*bitmap2.bmBitsPix el/8;
BYTE *lpBits2 = new BYTE[ size2 ];
GetBitmapBits((HBITMAP)hBitMap2,size2,lpBits2 );
int ScreenWidth = bitmap2.bmWidth;
int ScreenHeight = bitmap2.bmHeight;
int numOfCard = 1;int x, j, k;
int cardHeight = bitmap.bmHeight;
int card_line_length = bitmap.bmWidth;
for( i = 0 ; i < ScreenWidth; i++ ) {
for( j = 0 ; j < ScreenHeight; j++ ) {
for ( k= 0; k < numOfCard; k++ ) {
int tmpY = j;
for ( x = 0; x < cardHeight; x++ ) {
if ( memcmp(lpBits2[i][tmpY],lpBits[x], card_line_length ) != 0 ) break; // we didnt find macth of a line
tmpY++; // move to next line
}
if ( x == cardHeight) {
cout << "found";
}
}
}
}
system("PAUSE");
return 0;
}
|
|
|
|
|
I dont have any compiler for text your code but you can use of a simple code instead this code but its very slow.You can use COLORREF CImage::GetPixel(int x,int y) it returns RGB of pixels on the loop you can use of it for first gif and second gif for check COLORREF.
|
|
|
|
|
Hi Hamid,
Thanks for your reply.But I failed to get it. In your free time plz send me the code.I think no of lines will be limited to max 10.So won't take more time.
Thanks & Regards.
|
|
|
|