Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
QuestionCorrelationId format Pin
Brian Duke15-Feb-06 9:50
Brian Duke15-Feb-06 9:50 
AnswerRe: CorrelationId format Pin
User 665815-Feb-06 10:26
User 665815-Feb-06 10:26 
GeneralRe: CorrelationId format Pin
Brian Duke15-Feb-06 12:09
Brian Duke15-Feb-06 12:09 
GeneralRe: CorrelationId format Pin
Brian Duke16-Feb-06 14:42
Brian Duke16-Feb-06 14:42 
GeneralRe: CorrelationId format Pin
User 665817-Feb-06 1:01
User 665817-Feb-06 1:01 
GeneralRe: CorrelationId format Pin
Brian Duke17-Feb-06 1:41
Brian Duke17-Feb-06 1:41 
GeneralRe: CorrelationId format Pin
Brian Duke16-Feb-06 15:04
Brian Duke16-Feb-06 15:04 
QuestionMixing Win API Events with .NET Pin
Jethro6315-Feb-06 7:54
Jethro6315-Feb-06 7:54 
Greetings:

I need help: I have this DLL, originally written as a windows API library. It is a driver for a USB port. One of the most important functions that are imported from this DLL is one in which you must supply an "event" handle (the kind you create using "CreateEvent" from Win32 API). The idea is, this function accepts the event handle and then triggers that event to wakeup the receive-data thread.

I thought it would be a matter of using [ImportDll] directives to import the API functions that I would need, namely: CreateEvent, CloseHandle, SetEvent, ResetEvent and WaitForSingleObject. I thought all of these functions and procedures would be found in kernel32.DLL but when I try to execute any of these, I get the "MissingMethodException".

Has anybody done anything like this? Am I going about this the right way?

The bottom line is that the USB DLL requires an event, already created and not-signaled. When characters are received, the USB DLL internal code will signal the event and my thread will awaken to service the new characters. I don't see any .NET functions that create events that I can pass to this routine.

Thanks in advance to anybody that helps.
Mark


AnswerRe: Mixing Win API Events with .NET Pin
Judah Gabriel Himango15-Feb-06 8:08
sponsorJudah Gabriel Himango15-Feb-06 8:08 
Questionhow to access to Control's Property from other forms ? Pin
hdv21215-Feb-06 7:26
hdv21215-Feb-06 7:26 
AnswerRe: how to access to Control's Property from other forms ? Pin
PicklesTheClown15-Feb-06 7:39
PicklesTheClown15-Feb-06 7:39 
GeneralRe: how to access to Control's Property from other forms ? Pin
hdv21215-Feb-06 8:22
hdv21215-Feb-06 8:22 
GeneralRe: how to access to Control's Property from other forms ? Pin
Dave Kreskowiak15-Feb-06 14:51
mveDave Kreskowiak15-Feb-06 14:51 
QuestionSave data when app close Pin
QzRz15-Feb-06 6:37
QzRz15-Feb-06 6:37 
AnswerRe: Save data when app close Pin
Daniel Santillanes15-Feb-06 7:16
professionalDaniel Santillanes15-Feb-06 7:16 
GeneralRe: Save data when app close Pin
hdv21215-Feb-06 7:24
hdv21215-Feb-06 7:24 
GeneralRe: Save data when app close Pin
QzRz15-Feb-06 8:00
QzRz15-Feb-06 8:00 
QuestionWindows Management Help !!! Pin
snouto15-Feb-06 6:04
snouto15-Feb-06 6:04 
AnswerRe: Windows Management Help !!! Pin
Dave Kreskowiak15-Feb-06 14:46
mveDave Kreskowiak15-Feb-06 14:46 
QuestionHow do i make an XML document only read/writeable by my ASP.NET app? Pin
Red_Wizard_Shot_The_Food15-Feb-06 5:32
Red_Wizard_Shot_The_Food15-Feb-06 5:32 
AnswerRe: How do i make an XML document only read/writeable by my ASP.NET app? Pin
Guffa15-Feb-06 6:42
Guffa15-Feb-06 6:42 
GeneralRe: How do i make an XML document only read/writeable by my ASP.NET app? Pin
Red_Wizard_Shot_The_Food15-Feb-06 6:46
Red_Wizard_Shot_The_Food15-Feb-06 6:46 
GeneralRe: How do i make an XML document only read/writeable by my ASP.NET app? Pin
Dan Neely15-Feb-06 7:10
Dan Neely15-Feb-06 7:10 
GeneralRe: How do i make an XML document only read/writeable by my ASP.NET app? Pin
J4amieC15-Feb-06 21:58
J4amieC15-Feb-06 21:58 
QuestionCutting out a triangular chunk in DirectX Pin
melanieab15-Feb-06 4:45
melanieab15-Feb-06 4:45 

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.