G
Guest
I have this C++ code I'm trying to port to VB .Net:
HANDLE g_hImageReady = NULL; // Event for when image is ready to transfer
//
// Initialize the globals
//
g_hImageReady = CreateEvent(NULL, TRUE, FALSE, NULL);
if(g_hImageReady == NULL)
{
printf("Unable to create image ready event. Exiting...\n");
continue;
}
And later:
if( (inEvent == KPDCAddFile) || (inEvent == KPDCFolderContent) )
{
SetEvent(g_hImageReady);
}
The CreateEvent and SetEvents are what I need to replicate. I'm not sure
exactly what they are used for and what their equivelent would be. I have
done delegates in VB .Net. Is this related?
HANDLE g_hImageReady = NULL; // Event for when image is ready to transfer
//
// Initialize the globals
//
g_hImageReady = CreateEvent(NULL, TRUE, FALSE, NULL);
if(g_hImageReady == NULL)
{
printf("Unable to create image ready event. Exiting...\n");
continue;
}
And later:
if( (inEvent == KPDCAddFile) || (inEvent == KPDCFolderContent) )
{
SetEvent(g_hImageReady);
}
The CreateEvent and SetEvents are what I need to replicate. I'm not sure
exactly what they are used for and what their equivelent would be. I have
done delegates in VB .Net. Is this related?