Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Monitoring "notepad.exe" process Pin
Mike_V18-May-03 12:09
Mike_V18-May-03 12:09 
GeneralRe: Monitoring "notepad.exe" process Pin
eggie518-May-03 12:50
eggie518-May-03 12:50 
GeneralRe: Monitoring "notepad.exe" process Pin
Emilio Guijarro19-May-03 6:58
Emilio Guijarro19-May-03 6:58 
QuestionHow to programmatically cause a button click? Pin
jmelgar18-May-03 8:28
jmelgar18-May-03 8:28 
AnswerRe: How to programmatically cause a button click? Pin
Mike_V18-May-03 11:19
Mike_V18-May-03 11:19 
AnswerRe: How to programmatically cause a button click? Pin
Vasudevan Deepak Kumar19-May-03 0:05
Vasudevan Deepak Kumar19-May-03 0:05 
GeneralGetProcAddress and P/Invoke Pin
Mike_V18-May-03 4:49
Mike_V18-May-03 4:49 
GeneralRe: GetProcAddress and P/Invoke Pin
leppie18-May-03 6:31
leppie18-May-03 6:31 
Mike_V wrote:
I must resort to GetProcAddress which returns a function pointer.

Why? You dont need GetProcAddress for DllImport.

How do I get that to a Delegate? Should I make special delegates, like OpenThemeDataDelegate or just cast them all to Delegate?

Again, why?
[dllimport...]
static extern IntPtr OpenThemeData(IntPtr hWnd, string classlist);


You need IntPtr here, you are working with HANDLES, not CALLBACKS.




<a TITLE="See my user info" href=http://www.codeproject.com/script/profile/whos_who.asp?id=38829>leppie<a>::<a TITLE="Go to all articles  written by me" href=http://www.codeproject.com/script/articles/list_articles.asp?userid=38829>AllocCPArticle</a>(<a TITLE="Go to my latest, greatest article!" href=http://www.codeproject.com/useritems/dfamachine.asp >Generic DFA State Machine for .NET</a>);

GeneralRe: GetProcAddress and P/Invoke Pin
Mike_V18-May-03 9:18
Mike_V18-May-03 9:18 
GeneralRe: GetProcAddress and P/Invoke Pin
leppie18-May-03 10:19
leppie18-May-03 10:19 
GeneralRe: GetProcAddress and P/Invoke Pin
Mike_V18-May-03 11:17
Mike_V18-May-03 11:17 
GeneralRe: GetProcAddress and P/Invoke Pin
leppie18-May-03 11:31
leppie18-May-03 11:31 
GeneralRe: GetProcAddress and P/Invoke Pin
Bo Hunter19-May-03 10:24
Bo Hunter19-May-03 10:24 
GeneralRe: GetProcAddress and P/Invoke Pin
Mike_V21-May-03 3:01
Mike_V21-May-03 3:01 
GeneralWho can tell me how to use &quot;event &amp; delegate&quot; Pin
llk9881116unicorn18-May-03 3:23
llk9881116unicorn18-May-03 3:23 
GeneralRe: Who can tell me how to use &quot;event &amp; delegate&quot; Pin
leppie18-May-03 6:38
leppie18-May-03 6:38 
QuestionSort a DataTable?? Pin
Roger Alsing17-May-03 12:19
Roger Alsing17-May-03 12:19 
Generaladding more slots to an array after initialization... Pin
Anonymous17-May-03 8:57
Anonymous17-May-03 8:57 
GeneralRe: adding more slots to an array after initialization... Pin
leppie17-May-03 9:32
leppie17-May-03 9:32 
GeneralRe: adding more slots to an array after initialization... Pin
Anonymous17-May-03 10:45
Anonymous17-May-03 10:45 
GeneralRe: adding more slots to an array after initialization... Pin
Wesner Moise17-May-03 18:40
Wesner Moise17-May-03 18:40 
GeneralRe: adding more slots to an array after initialization... Pin
leppie17-May-03 23:37
leppie17-May-03 23:37 
GeneralRe: adding more slots to an array after initialization... Pin
leppie17-May-03 23:41
leppie17-May-03 23:41 
GeneralRe: adding more slots to an array after initialization... Pin
Wesner Moise18-May-03 8:47
Wesner Moise18-May-03 8:47 
GeneralRegionData format Pin
Wizard_0117-May-03 6:50
Wizard_0117-May-03 6:50 

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.