Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to draw a dynamic curve Pin
nibabug19-Oct-07 1:31
nibabug19-Oct-07 1:31 
AnswerRe: how to draw a dynamic curve Pin
Cedric Moonen19-Oct-07 1:22
Cedric Moonen19-Oct-07 1:22 
QuestionOwn created menues and ID Pin
baerten19-Oct-07 0:20
baerten19-Oct-07 0:20 
AnswerRe: Own created menues and ID Pin
Hamid_RT19-Oct-07 1:06
Hamid_RT19-Oct-07 1:06 
QuestionProgress bar example Pin
Chandrasekharan P18-Oct-07 23:56
Chandrasekharan P18-Oct-07 23:56 
AnswerRe: Progress bar example Pin
chandu00419-Oct-07 0:16
chandu00419-Oct-07 0:16 
AnswerRe: Progress bar example Pin
Hamid_RT19-Oct-07 1:10
Hamid_RT19-Oct-07 1:10 
QuestionWIN32 BUG? Pin
KEL318-Oct-07 23:50
KEL318-Oct-07 23:50 
Hello.
I have found a bug (in Windows maybe) while writting in Win32 API.
I have the following code executed:

OPENFILENAME    OpenFileName={0};   // Structure for common dialog File/Open<br />
TCHAR           szFilter[]=__TEXT("Graphs (*.graph)\0*.graph\0All Files(*.*)\0*.*\0\0");<br />
TCHAR           szFile[MAX_PATH];<br />
szFile[0] = __TEXT('\0');<br />
OpenFileName.lStructSize       = sizeof(OPENFILENAME);<br />
OpenFileName.hwndOwner         = hwnd;<br />
OpenFileName.hInstance         = NULL;<br />
OpenFileName.lpstrFilter       = szFilter;<br />
OpenFileName.lpstrCustomFilter = (LPTSTR) NULL;<br />
OpenFileName.nMaxCustFilter    = 0L;<br />
OpenFileName.nFilterIndex      = 1L;<br />
OpenFileName.lpstrFile         = szFile;<br />
OpenFileName.nMaxFile          = sizeof(szFile)-1;<br />
OpenFileName.lpstrFileTitle    = NULL;<br />
OpenFileName.nMaxFileTitle     = 0;<br />
OpenFileName.lpstrInitialDir   = NULL;<br />
OpenFileName.lpstrTitle        = NULL;<br />
OpenFileName.nFileOffset       = 0;<br />
OpenFileName.nFileExtension    = 0;<br />
OpenFileName.lpstrDefExt       = TEXT("graph");  // No default extension<br />
OpenFileName.lCustData         = 0;<br />
OpenFileName.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_LONGNAMES;<br />
if (GetOpenFileName(&OpenFileName)){<br />
        return (CString)OpenFileName.lpstrFile;<br />
}<br />
return (CString)"";


This, as I hope you know, creates the Windows OpenFile Dialog.
When the window appears do the following:

1. Go to the Desktop.
2. Place the cursor above a file (not a link to a file) and wait for the tooltip to appear. Then press Esc to exit. Then execute again the code and do the same thing (on the same file extension). At that point I get a crash in SHELL32.DLL. See the debug output below. I tried that in an other app and I got the same crash. However, same apps do not crash, so I wonder if I am doing sth wrong or if someone knows sth more about this.


Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Common Files\Ahead\Lib\NeroDigitalExt.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Common Files\Ahead\Lib\MFC71.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Common Files\Ahead\Lib\msvcr71.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Common Files\Ahead\Lib\msvcp71.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\pdfshell.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\msvcr80.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Illustrate\dBpowerAMP\dBShell.dll', no matching symbolic information found.
The thread 0x958 has exited with code 0 (0x0).
Loaded 'C:\WINDOWS\system32\browseui.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\netshell.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\credui.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\iphlpapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rtutils.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\shdocvw.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\crypt32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msasn1.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\cryptui.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wintrust.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\imagehlp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wininet.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\normaliz.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\iertutil.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wldap32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\riched20.dll', no matching symbolic information found.
The thread 0xD34 has exited with code 0 (0x0).
First-chance exception in PlotLibDemo.exe (SHELL32.DLL): 0xC0000005: Access Violation.

==============================================================================

I also think there is a bug in "SetClassLong" when changing the style and CS_NOCLOSE.


Any comments or suggestions would be appreciated.
Thanks.


kostas KEL

AnswerRe: WIN32 BUG? Pin
KEL318-Oct-07 23:58
KEL318-Oct-07 23:58 
GeneralRe: WIN32 BUG? Pin
aks.19-Oct-07 4:58
aks.19-Oct-07 4:58 
GeneralRe: WIN32 BUG? Pin
KEL322-Oct-07 0:52
KEL322-Oct-07 0:52 
AnswerRe: WIN32 BUG? Pin
Mark Salsbery19-Oct-07 5:27
Mark Salsbery19-Oct-07 5:27 
GeneralRe: WIN32 BUG? Pin
KEL322-Oct-07 0:57
KEL322-Oct-07 0:57 
GeneralRe: WIN32 BUG? Pin
KEL322-Oct-07 1:07
KEL322-Oct-07 1:07 
AnswerRe: WIN32 BUG? Pin
KEL325-Oct-07 1:43
KEL325-Oct-07 1:43 
QuestionHelp Pin
josip cagalj18-Oct-07 23:41
josip cagalj18-Oct-07 23:41 
QuestionApplication runnig problem.. [modified] Pin
Vugar Avazov18-Oct-07 23:36
Vugar Avazov18-Oct-07 23:36 
AnswerRe: Application runnig problem.. Pin
chandu00418-Oct-07 23:40
chandu00418-Oct-07 23:40 
GeneralRe: Application runnig problem.. [modified] Pin
Vugar Avazov19-Oct-07 7:14
Vugar Avazov19-Oct-07 7:14 
GeneralRe: Application runnig problem.. Pin
chandu00419-Oct-07 0:04
chandu00419-Oct-07 0:04 
GeneralRe: Application runnig problem.. Pin
josip cagalj19-Oct-07 0:09
josip cagalj19-Oct-07 0:09 
JokeRe: Application runnig problem.. Pin
Nelek19-Oct-07 0:12
protectorNelek19-Oct-07 0:12 
GeneralRe: Application runnig problem.. Pin
chandu00419-Oct-07 0:13
chandu00419-Oct-07 0:13 
GeneralRe: Application runnig problem.. Pin
chandu00419-Oct-07 0:12
chandu00419-Oct-07 0:12 
AnswerRe: Application runnig problem.. Pin
josip cagalj19-Oct-07 0:03
josip cagalj19-Oct-07 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.