Click here to Skip to main content
15,888,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisplaying the output of another program Pin
oldbritthumper29-Aug-14 4:49
oldbritthumper29-Aug-14 4:49 
QuestionRe: Displaying the output of another program Pin
Richard MacCutchan29-Aug-14 5:37
mveRichard MacCutchan29-Aug-14 5:37 
AnswerMessage Closed Pin
29-Aug-14 5:59
oldbritthumper29-Aug-14 5:59 
GeneralRe: Displaying the output of another program Pin
Richard MacCutchan29-Aug-14 6:05
mveRichard MacCutchan29-Aug-14 6:05 
Questionbattleship game code using c language Pin
Member 1104199227-Aug-14 20:37
Member 1104199227-Aug-14 20:37 
AnswerRe: battleship game code using c language Pin
Richard MacCutchan27-Aug-14 22:15
mveRichard MacCutchan27-Aug-14 22:15 
AnswerRe: battleship game code using c language Pin
Member 1048772029-Aug-14 0:30
Member 1048772029-Aug-14 0:30 
QuestionTEventLogger Pin
Zdravko Donev25-Aug-14 9:34
Zdravko Donev25-Aug-14 9:34 
I want to make a log with errors during the execution of my app. I'm trying to write an event to the windows Event Viewer with a VCL form application with C++ Builder XE5.
I'm using Vcl.SvcMgr.TEventLogger class.
The code in the header file is :
C++
TEventLogger *Event;

The code in the cpp file is :
C++
Event=new TEventLogger("MySource"); 
Event->LogMessage("MyMessage");

But beside my message, in the error description in the Event Viewer there is a message : "The description for Event ID 0 from source MySource cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted." . How can I remove that description and write only the message that I want? Should I be using other C++ class? I couldn't find any documentation about this class. The idea of using Event Viewer is that when the application is running on an user with restricted rights he won't be able to write to files, meaning I can't just type into a ".txt" file. If anyone else has a different idea how to make a log with errors, please share! Smile | :)
AnswerRe: TEventLogger Pin
Freak3027-Aug-14 1:25
Freak3027-Aug-14 1:25 
QuestionCMFCOutlookBar cannot return to pane 0. Pin
Drakesal25-Aug-14 0:12
Drakesal25-Aug-14 0:12 
Questionhow to pass a function which has variable arguments as template argument? Pin
Falconapollo24-Aug-14 5:37
Falconapollo24-Aug-14 5:37 
AnswerRe: how to pass a function which has variable arguments as template argument? Pin
jschell25-Aug-14 10:30
jschell25-Aug-14 10:30 
QuestionHow to ShellExecute a PDF to a specific page Pin
DanYELL23-Aug-14 17:28
DanYELL23-Aug-14 17:28 
AnswerRe: How to ShellExecute a PDF to a specific page Pin
enhzflep23-Aug-14 17:58
enhzflep23-Aug-14 17:58 
AnswerRe: How to ShellExecute a PDF to a specific page Pin
Richard MacCutchan23-Aug-14 22:30
mveRichard MacCutchan23-Aug-14 22:30 
AnswerRe: How to ShellExecute a PDF to a specific page Pin
Graham Breach23-Aug-14 23:00
Graham Breach23-Aug-14 23:00 
QuestionRe: How to ShellExecute a PDF to a specific page Pin
David Crow25-Aug-14 3:52
David Crow25-Aug-14 3:52 
Questionhow this error has generated -c program? Pin
mybm122-Aug-14 20:33
mybm122-Aug-14 20:33 
QuestionRe: how this error has generated -c program? Pin
Richard MacCutchan22-Aug-14 21:07
mveRichard MacCutchan22-Aug-14 21:07 
AnswerRe: how this error has generated -c program? Pin
mybm122-Aug-14 22:42
mybm122-Aug-14 22:42 
GeneralRe: how this error has generated -c program? Pin
Richard MacCutchan23-Aug-14 0:16
mveRichard MacCutchan23-Aug-14 0:16 
Questioncan anyone suggest how to convert matlab code into c code..for resampling function Pin
mybm121-Aug-14 19:10
mybm121-Aug-14 19:10 
SuggestionRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
Richard MacCutchan21-Aug-14 21:50
mveRichard MacCutchan21-Aug-14 21:50 
GeneralRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
mybm121-Aug-14 23:11
mybm121-Aug-14 23:11 
GeneralRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
Richard MacCutchan21-Aug-14 23:23
mveRichard MacCutchan21-Aug-14 23:23 

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.