<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="date" content="04 28, 2003 11:32:12 AM" />
<meta name="topic-comment" content="" />
<meta name="generator" content="Adobe RoboHelp 2019" />
<title>Use Event</title>
<link rel="StyleSheet" href="../../../../ms_help.css" type="text/css" />
 <script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reDo;
}
onerror = null; 
//]]>
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
p.WebHelpNavBar { text-align:right; }
-->
</style>

<script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/common.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/constants.js"></script>
<script type="text/javascript" src="../../../../template/scripts/utils.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhutils.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhlang.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhver.js"></script>
<script type="text/javascript" src="../../../../template/scripts/settings.js"></script>
<script type="text/javascript" src="../../../../template/scripts/XmlJsReader.js"></script>
<script type="text/javascript" src="../../../../template/scripts/loadparentdata.js"></script>
<script type="text/javascript" src="../../../../template/scripts/loadscreen.js"></script>
<script type="text/javascript" src="../../../../template/scripts/loadprojdata.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhtopic.js"></script>
 <link rel="stylesheet" type="text/css" href="../../../../template/styles/widgets.min.css">
 <link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css">
<script type="text/javascript" >
gRootRelPath = "../../../..";
gCommonRootRelPath = "../../../..";
gTopicId = "6.1.2";
</script>
 <meta name="brsprev" value="sdk/windows_api/tutorial/common/notes/note_visual_cs.htm">
 <meta name="brsnext" value="sdk/windows_api/tutorial/using_event/callback/visual_basic_dot_net.htm">
 <meta name="topic-breadcrumbs" content="C-LOGGER SDK > Windows API" />
</head>

<body>
<script type="text/javascript" src="../../../../ehlpdhtm.js"></script>

<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P45RPFN" style="width: 0px; 
		 height: 0px; display: none; visibility: hidden;">
 <p>&#160;</p>
</iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->


<div><script type="text/javascript" language="javascript">//<![CDATA[
document.write("<p  style=\"text-align:left;\" class=\"breadcrumbs\">");
AddMasterBreadcrumbs("../../../../c_logger.htm", "breadcrumbs", " &gt; ", "Home", "../../../../welcome/c_logger.htm");
document.write("<a class=\"breadcrumbs\" href=\"../../../welcome/c_logger_sdk.htm\">C-LOGGER SDK<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../../windows_api.htm\">Windows API<\/a>  &gt;  Use Event<\/p>");
//]]></script>
</div>

<h1>Use Event</h1>
<p>By using events, it is possible to notify various states (conversion 
 end, error occurrence, etc.) that occurred during device operation to 
 application programs.<br />
Depending on the parameters passed in the event notification, you can get 
 what kind of event occurred, and you can sort the processing by event.</p>
<p>There are the following two ways to notify events.</p>
<p>&#160;</p>
<h2>Message notification</h2>
<p style="margin-left: 40px;">This is a method of notifying a message to 
 the application by executing Win32 API's PostMessage function from the 
 driver.<br />
It is a commonly used event notification method.</p>
<p style="margin-left: 40px;">This is not supported by C-LOGGER SDK.</p>
<h2>&#160;</h2>
<h2>Callback function</h2>
<p style="margin-left: 40px;">A previously created callback function is 
 registered, and the driver calls the registered function directly when 
 notifying.<br />
It is necessary to handle pointers and function pointers, but the amount 
 of code is small and simple.</p>
<p style="margin-left: 40px;">Callback function works faster than Windows 
 message notification.<br />
And it can also be used in applications that do not have Window handle 
 (such as console application).</p>
<p style="margin-left: 40px;">Keep the processing in the callback function 
 simple and return to the OS immediately.</p>
<p style="margin-bottom: 0; margin-left: 40px;">How to create callback 
 function<br />
<a href="callback/visual_basic_dot_net.htm">Visual Basic .NET</a><br />
<a href="callback/visual_cs.htm">Visual C#</a><br />
<a href="callback/visual_c_mfc.htm">Visual C++ (MFC)</a></p>
<p>&#160;</p>
<p>&#160;</p>
<div style="width: 100%; position: relative;" id="footer">
	<hr style="float: aligncenter; " />
	<p>This website uses cookies. By continuing to browse our site you 
	 agree to our <a href="https://www.contec.com/privacy#anc-01">use of 
	 cookies</a>.</p>
</div>
</body>
</html>
