Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to delete a directory Pin
Djibril11-Jul-01 3:46
professionalDjibril11-Jul-01 3:46 
GeneralSystem modal box when the app crashes Pin
GregT11-Jul-01 2:54
GregT11-Jul-01 2:54 
GeneralRe: System modal box when the app crashes Pin
Tomasz Sowinski11-Jul-01 3:08
Tomasz Sowinski11-Jul-01 3:08 
GeneralStatic members/methods (Beginner) Pin
Jimmy Ehrnström11-Jul-01 1:40
Jimmy Ehrnström11-Jul-01 1:40 
GeneralRe: Static members/methods (Beginner) Pin
Tomasz Sowinski11-Jul-01 1:54
Tomasz Sowinski11-Jul-01 1:54 
GeneralRe: Static members/methods (Beginner) Pin
Tomasz Sowinski11-Jul-01 1:58
Tomasz Sowinski11-Jul-01 1:58 
GeneralRe: Static members/methods (Beginner) Pin
Jimmy Ehrnström11-Jul-01 2:13
Jimmy Ehrnström11-Jul-01 2:13 
GeneralEnumerating messages Pin
Gennady Oster11-Jul-01 1:15
Gennady Oster11-Jul-01 1:15 
Hi!
I have a problem enumerating messages in the exe/dll. May be I was so lucky to fail on bug?
Here is what I do (m_IDs defined as CDWordArray):

BOOL CEventSource::Enumerate()
{
m_IDs.RemoveAll();
return (EnumResourceNames(m_hModule,RT_MESSAGETABLE,EnumIDsProc,(LONG)this));
}

BOOL CEventSource::EnumIDsProc(HMODULE hModule,LPCTSTR lpType, LPTSTR lpName, LONG par)
{
CEventSource * pMe;
pMe=(CEventSource *)par;
pMe->m_IDs.Add((DWORD)lpName);
return true;
}
Both functions return true, m_IDs contain the single element =1, doesn't matter, is there such event ID in the file, or not.
To check the whole structure, I've replaced RT_MESSAGETABLE with RT_DIALOG and received the full list of dialog's IDs. So something wrong with messagetable. But what ?

Any help will be greatly appreciated.

Thanks in advance.
Regards,
Gennady



GeneralRe: Enumerating messages Pin
Tomasz Sowinski11-Jul-01 1:46
Tomasz Sowinski11-Jul-01 1:46 
GeneralRe: Enumerating messages Pin
Gennady Oster11-Jul-01 2:03
Gennady Oster11-Jul-01 2:03 
GeneralRe: Enumerating messages Pin
Tomasz Sowinski11-Jul-01 2:12
Tomasz Sowinski11-Jul-01 2:12 
GeneralRe: Enumerating messages Pin
Gennady Oster11-Jul-01 2:29
Gennady Oster11-Jul-01 2:29 
GeneralRe: Enumerating messages Pin
Tomasz Sowinski11-Jul-01 2:42
Tomasz Sowinski11-Jul-01 2:42 
Questionmouse over ?? Pin
Pony10-Jul-01 21:19
Pony10-Jul-01 21:19 
GeneralDebugging Question (Beginner) Pin
matthias s.10-Jul-01 20:34
matthias s.10-Jul-01 20:34 
GeneralRe: Debugging Question (Beginner) Pin
Tim Deveaux11-Jul-01 8:35
Tim Deveaux11-Jul-01 8:35 
GeneralRe: Debugging Question (Beginner) Pin
8-Aug-01 21:53
suss8-Aug-01 21:53 
GeneralTracing Splitter Pin
10-Jul-01 19:56
suss10-Jul-01 19:56 
GeneralRe: Tracing Splitter Pin
coder847210-Jul-01 21:16
coder847210-Jul-01 21:16 
GeneralPhotoShop SDK Pin
HyoSoo Moon10-Jul-01 19:08
HyoSoo Moon10-Jul-01 19:08 
GeneralSQL (.Jet) useage Pin
otvac10-Jul-01 16:45
otvac10-Jul-01 16:45 
GeneralRe: SQL (.Jet) useage Pin
markkuk10-Jul-01 21:04
markkuk10-Jul-01 21:04 
GeneralRe: SQL (.Jet) useage Pin
otvac11-Jul-01 1:34
otvac11-Jul-01 1:34 
GeneralChanging color... Pin
John Uhlenbrock10-Jul-01 14:00
John Uhlenbrock10-Jul-01 14:00 
GeneralRe: Changing color... Pin
jerry0davis10-Jul-01 22:40
jerry0davis10-Jul-01 22:40 

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.