Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Muslim Holiday in Georgian Calendar Pin
The Man from U.N.C.L.E.19-May-10 2:41
The Man from U.N.C.L.E.19-May-10 2:41 
AnswerRe: Muslim Holiday in Georgian Calendar Pin
riced19-May-10 3:41
riced19-May-10 3:41 
QuestionUse event from C++ library in C# application Pin
Programm3r19-May-10 1:39
Programm3r19-May-10 1:39 
AnswerRe: Use event from C++ library in C# application Pin
Luc Pattyn19-May-10 1:45
sitebuilderLuc Pattyn19-May-10 1:45 
GeneralRe: Use event from C++ library in C# application Pin
Programm3r19-May-10 1:50
Programm3r19-May-10 1:50 
GeneralRe: Use event from C++ library in C# application Pin
Luc Pattyn19-May-10 2:03
sitebuilderLuc Pattyn19-May-10 2:03 
QuestionRe: Use event from C++ library in C# application Pin
Programm3r19-May-10 2:55
Programm3r19-May-10 2:55 
AnswerRe: Use event from C++ library in C# application Pin
Luc Pattyn19-May-10 3:10
sitebuilderLuc Pattyn19-May-10 3:10 
OK, it seems you are having two problems:

1.
you don't want to poll, i.e. periodically read and process the data. You want something that is event driven, a cause-and-effect kind of thing. That is possible if and only if your peripheral is giving you a cause, maybe by issuing an interrupt; or by sending data. If not, all you can do is have a polling loop.

2.
Calling managed code from unmanaged code, is called a callback. There are at least two examples in my article, the more informative one may well be the "Two-side logging" which includes all the code involved for both parties.

Hope that helps.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: Use event from C++ library in C# application Pin
Programm3r19-May-10 3:29
Programm3r19-May-10 3:29 
GeneralRe: Use event from C++ library in C# application Pin
Luc Pattyn19-May-10 3:57
sitebuilderLuc Pattyn19-May-10 3:57 
AnswerRe: Use event from C++ library in C# application Pin
KarstenK19-May-10 2:06
mveKarstenK19-May-10 2:06 
QuestionRe: Use event from C++ library in C# application Pin
Programm3r19-May-10 2:59
Programm3r19-May-10 2:59 
QuestionIcon.ToBitmap() bug? Pin
Tsuda Kageyu19-May-10 0:45
Tsuda Kageyu19-May-10 0:45 
AnswerRe: Icon.ToBitmap() bug? Pin
#realJSOP19-May-10 1:23
professional#realJSOP19-May-10 1:23 
GeneralRe: Icon.ToBitmap() bug? Pin
Tsuda Kageyu19-May-10 1:48
Tsuda Kageyu19-May-10 1:48 
GeneralRe: Icon.ToBitmap() bug? Pin
Henry Minute19-May-10 1:59
Henry Minute19-May-10 1:59 
GeneralRe: Icon.ToBitmap() bug? Pin
Tsuda Kageyu19-May-10 2:37
Tsuda Kageyu19-May-10 2:37 
GeneralRe: Icon.ToBitmap() bug? Pin
Henry Minute19-May-10 2:48
Henry Minute19-May-10 2:48 
AnswerRe: Icon.ToBitmap() bug? Pin
KarstenK19-May-10 2:08
mveKarstenK19-May-10 2:08 
AnswerRe: Icon.ToBitmap() bug? Pin
The Man from U.N.C.L.E.19-May-10 3:12
The Man from U.N.C.L.E.19-May-10 3:12 
GeneralRe: Icon.ToBitmap() bug? Pin
Henry Minute19-May-10 3:26
Henry Minute19-May-10 3:26 
GeneralRe: Icon.ToBitmap() bug? Pin
Tsuda Kageyu19-May-10 3:57
Tsuda Kageyu19-May-10 3:57 
GeneralRe: Icon.ToBitmap() bug? Pin
The Man from U.N.C.L.E.19-May-10 4:03
The Man from U.N.C.L.E.19-May-10 4:03 
QuestionSorted collection Pin
Chiman119-May-10 0:42
Chiman119-May-10 0:42 
AnswerRe: Sorted collection Pin
Abhinav S19-May-10 0:59
Abhinav S19-May-10 0:59 

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.