Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnetmeeting 3 automation Pin
aniel12-Oct-01 9:15
aniel12-Oct-01 9:15 
QuestionWinsock? Pin
12-Oct-01 7:53
suss12-Oct-01 7:53 
AnswerRe: Winsock? Pin
Nemanja Trifunovic12-Oct-01 8:03
Nemanja Trifunovic12-Oct-01 8:03 
GeneralRe: Winsock? Pin
12-Oct-01 8:41
suss12-Oct-01 8:41 
GeneralRe: Winsock? Pin
Nemanja Trifunovic12-Oct-01 8:47
Nemanja Trifunovic12-Oct-01 8:47 
AnswerRe: WinInet! Pin
Masaaki Onishi12-Oct-01 9:14
Masaaki Onishi12-Oct-01 9:14 
GeneralDirectX capturing Pin
SNagase12-Oct-01 5:44
SNagase12-Oct-01 5:44 
GeneralEvent Logging Pin
SuperGeek12-Oct-01 5:24
SuperGeek12-Oct-01 5:24 
My application(.EXE) drops a buch of events into the event log for the network admin folks and other users.
In my MFC prject, I have an event message file <filename>.MC which is compiled separatedly using "mc" command line utility. After message compilation, <filename>.rc, <filename>.h and MSG00001.bin files are created by "mc". The problem is that I only know how to produce event message resource table for the evnt viewer using command line "rc"(produces <filaname>.res) and "link" step, which finally produces <filename>.dll(it will contain the table). To automate this process, I had to write a batch file, which executes all these utilites. This batch file is automatically executed in the post-build step - pretty cumbersome and boring, isn't it? This is the old Win32 way of doing things for the event viewer, and I don't particularly like it. I know that the message resource table can be easily contained within the same executable that runs my project, which will save the headache of managing two separate files, .EXE - the program, and .DLL - program's event message table.

Tried many things with .rc files and recourse.h - event viewer only recognizes messages from the .dll.

Does anyone know how to properly merge .rc and .res files within the same project to create one common resource table that will contain the prject's resources as well as its event message table.

Will be happy to digest any hints.
Thanks.

Kirill
GeneralRe: Event Logging Pin
Anders Molin13-Oct-01 3:35
professionalAnders Molin13-Oct-01 3:35 
GeneralCButton/CWnd properties Pin
12-Oct-01 5:13
suss12-Oct-01 5:13 
GeneralRe: CButton/CWnd properties Pin
Tomasz Sowinski12-Oct-01 7:41
Tomasz Sowinski12-Oct-01 7:41 
GeneralRe: CButton/CWnd properties Pin
12-Oct-01 8:10
suss12-Oct-01 8:10 
GeneralRe: CButton/CWnd properties Pin
Tomasz Sowinski13-Oct-01 1:15
Tomasz Sowinski13-Oct-01 1:15 
GeneralRe: CButton/CWnd properties Pin
Andrew Peace12-Oct-01 8:22
Andrew Peace12-Oct-01 8:22 
GeneralRe: CButton/CWnd properties Pin
12-Oct-01 9:22
suss12-Oct-01 9:22 
GeneralDAO with Access 2000 DB Pin
Chris Klecker12-Oct-01 3:53
Chris Klecker12-Oct-01 3:53 
GeneralRe: DAO with Access 2000 DB Pin
Tomasz Sowinski12-Oct-01 4:16
Tomasz Sowinski12-Oct-01 4:16 
QuestionIs there a way to detect if the program I'm about to launch already running? Pin
12-Oct-01 2:53
suss12-Oct-01 2:53 
AnswerRe: Is there a way to detect if the program I'm about to launch already running? Pin
rachna12-Oct-01 4:03
rachna12-Oct-01 4:03 
GeneralRe: Is there a way to detect if the program I'm about to launch already running? Pin
12-Oct-01 4:08
suss12-Oct-01 4:08 
AnswerRe: Is there a way to detect if the program I'm about to launch already running? Pin
Nish Nishant12-Oct-01 22:21
sitebuilderNish Nishant12-Oct-01 22:21 
Generalabout CString Pin
Maer72712-Oct-01 2:35
Maer72712-Oct-01 2:35 
GeneralRe: about CString Pin
Michael P Butler12-Oct-01 2:42
Michael P Butler12-Oct-01 2:42 
GeneralRe: about CString Pin
Maer72713-Oct-01 1:24
Maer72713-Oct-01 1:24 
GeneralRe: about CString Pin
Jim A. Johnson12-Oct-01 2:44
Jim A. Johnson12-Oct-01 2:44 

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.