LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

post to Windows Event log

Could someone give me an example of how to post a message to the Windows Event log from my app? I understand there are APIs to do this, but don't know how to implement something like that.

Thanks.
0 Kudos
Message 1 of 5
(3,058 Views)
Hello

Check out these functions. You should have the sdk installed with CVI, so you will be able to use these sdk functions.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 5
(3,058 Views)
Thanks for the great link. That explains alot. But I'm not sure how to incorporate sdk functions into my code. Could you point me to some simple CVI code that shows this? Or is it as simple as including windows.h or something like that?

Thanks again.
0 Kudos
Message 3 of 5
(3,058 Views)
Hello

Check out the examples under CVI\Samples\sdk, they demonstartes how to call the sdk functions.
Make sure that the Windows.h is the first include in the C file.

Im glad I could help
Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 5
(3,058 Views)
Thanks for your help.
0 Kudos
Message 5 of 5
(3,058 Views)