Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compare 2 Datatables Pin
André Kraak10-Oct-11 9:30
André Kraak10-Oct-11 9:30 
QuestionFire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils10-Oct-11 4:27
Tonkpils10-Oct-11 4:27 
AnswerRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
DaveyM6910-Oct-11 7:09
professionalDaveyM6910-Oct-11 7:09 
GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils13-Oct-11 4:37
Tonkpils13-Oct-11 4:37 
AnswerRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
TheGreatAndPowerfulOz10-Oct-11 12:13
TheGreatAndPowerfulOz10-Oct-11 12:13 
GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils11-Oct-11 1:01
Tonkpils11-Oct-11 1:01 
GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
TheGreatAndPowerfulOz14-Oct-11 4:51
TheGreatAndPowerfulOz14-Oct-11 4:51 
GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils18-Oct-11 0:17
Tonkpils18-Oct-11 0:17 
Thank you very much. It works. Smile | :)
C#
//In the application:
IntPtr  MsgReceivedEvent

MsgReceivedEvent = CreateEvent(IntPtr.Zero, false, false, "RcvEvent"); //Kernel32.dll with PInvoke
startRcv((uint)MsgReceivedEvent); //Call a C++ Method with PInvoke

//In a thread:
EventWaitHandle theEvent = EventWaitHandle.OpenExisting("RcvEvent");
while (!PendingCancel)
{
    if (theEvent.WaitOne(5000))
    {
        Log("EVENT RAISED!");
    }
}

C++
//Somewhere in the C++-Code:
SetEvent(MsgReceivedEvent); //MsgReceivedEvent from startRcv(..)

GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
TheGreatAndPowerfulOz18-Oct-11 8:23
TheGreatAndPowerfulOz18-Oct-11 8:23 
QuestionHow to highlight all occurrences of a word in a Word document?? Pin
fiaolle10-Oct-11 4:20
fiaolle10-Oct-11 4:20 
AnswerRe: How to highlight all occurrences of a word in a Word document?? Pin
Pete O'Hanlon10-Oct-11 4:52
mvePete O'Hanlon10-Oct-11 4:52 
GeneralRe: How to highlight all occurrences of a word in a Word document?? Pin
fiaolle10-Oct-11 5:08
fiaolle10-Oct-11 5:08 
GeneralRe: How to highlight all occurrences of a word in a Word document?? Pin
Pete O'Hanlon10-Oct-11 5:19
mvePete O'Hanlon10-Oct-11 5:19 
GeneralRe: How to highlight all occurrences of a word in a Word document?? Pin
fiaolle10-Oct-11 6:25
fiaolle10-Oct-11 6:25 
GeneralRe: How to highlight all occurrences of a word in a Word document?? Pin
Shameel11-Oct-11 0:32
professionalShameel11-Oct-11 0:32 
AnswerRe: How to highlight all occurrences of a word in a Word document?? Pin
jschell10-Oct-11 8:08
jschell10-Oct-11 8:08 
GeneralRe: How to highlight all occurrences of a word in a Word document?? Pin
fiaolle10-Oct-11 9:07
fiaolle10-Oct-11 9:07 
QuestionIs there a way to run nunit Test class 50 times in a loop ? Pin
Subin Mavunkal10-Oct-11 0:59
Subin Mavunkal10-Oct-11 0:59 
AnswerRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 1:14
mvePete O'Hanlon10-Oct-11 1:14 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Subin Mavunkal10-Oct-11 1:24
Subin Mavunkal10-Oct-11 1:24 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 1:25
mvePete O'Hanlon10-Oct-11 1:25 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Subin Mavunkal10-Oct-11 2:47
Subin Mavunkal10-Oct-11 2:47 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 3:07
mvePete O'Hanlon10-Oct-11 3:07 
AnswerRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
buchstaben10-Oct-11 3:20
buchstaben10-Oct-11 3:20 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 3:41
mvePete O'Hanlon10-Oct-11 3:41 

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.