For Programmers: Free Programming Magazines  


Home > Archive > C# > October 2005 > Callbacks into another assembly









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Callbacks into another assembly
David

2005-10-12, 6:59 pm

Here's my problem. I've created a windows service using the Win32 app
instead of the .NET framework's System.ServiceProcess.ServiceBase and
I'm trying to use the RegisterServiceCtrlHandler win32 API call. It
works just fine when I compile all my code and classes in a normal
executable. However, when I throw it into a class library, it can't
seem to find the control handler function. It seems like it's a problem
with the callback into the external assembly. Any suggestions?

Thanks,
- David Hoyt

David

2005-10-12, 6:59 pm

I meant "Win32 API" - sorry!

Bruce Wood

2005-10-13, 3:57 am

You may want to ask this question in
microsoft.public.dotnet.languages.csharp. There's much more traffic in
that newsgroup, and maybe someone there will be able to help you.

David

2005-10-13, 6:58 pm

I already posted it there as well. (c: Thanks for the suggestion,
though!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com