Click here to Skip to main content
16,008,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dll and HINSTANCE Pin
leppie16-Aug-02 10:49
leppie16-Aug-02 10:49 
GeneralI'm becoming crazy about keys Pin
Anonymous16-Aug-02 5:49
Anonymous16-Aug-02 5:49 
GeneralRe: I'm becoming crazy about keys Pin
leppie16-Aug-02 6:30
leppie16-Aug-02 6:30 
GeneralRe: I'm becoming crazy about keys Pin
nitro66618-Aug-02 6:34
nitro66618-Aug-02 6:34 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson16-Aug-02 8:41
James T. Johnson16-Aug-02 8:41 
GeneralRe: I'm becoming crazy about keys Pin
nitro66618-Aug-02 9:23
nitro66618-Aug-02 9:23 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson18-Aug-02 9:24
James T. Johnson18-Aug-02 9:24 
GeneralRe: I'm becoming crazy about keys Pin
leppie19-Aug-02 0:00
leppie19-Aug-02 0:00 
Interesting Smile | :)

Just a question James...

In the Interop Marshalling section (Platform Invoke Data Types) in MSDN it states:

BOOL as Unmanaged type in Wtypes.h = long in Unmanaged C++ = System.Int32 as Managed type.

Looking at your code, is it possible to allways use bool instead of int as long as the returned value does not hold somethin like an error code?

Also, in alot of examples I see them using int for a DWORD which really translates to uint. OK, I understand it will work, but only if int => 0. Why not use uint in the first place?

This is all getting a bit overcomplicated to me.

I think probably the best is to keep it simple. Try the logical way, if fail, do the way according to Platform Invoke Data Types Table.

Suggestions?

Cheers Smile | :)

MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson20-Aug-02 5:06
James T. Johnson20-Aug-02 5:06 
GeneralRe: I'm becoming crazy about keys Pin
leppie20-Aug-02 5:25
leppie20-Aug-02 5:25 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson20-Aug-02 5:32
James T. Johnson20-Aug-02 5:32 
GeneralRe: I'm becoming crazy about keys Pin
leppie20-Aug-02 5:45
leppie20-Aug-02 5:45 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson20-Aug-02 6:02
James T. Johnson20-Aug-02 6:02 
GeneralRe: I'm becoming crazy about keys Pin
leppie20-Aug-02 6:11
leppie20-Aug-02 6:11 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson20-Aug-02 6:19
James T. Johnson20-Aug-02 6:19 
QuestionAuto Tab? Pin
Johnny Zee16-Aug-02 5:32
sussJohnny Zee16-Aug-02 5:32 
AnswerRe: Auto Tab? Pin
leppie16-Aug-02 6:42
leppie16-Aug-02 6:42 
GeneralTo console or not to console... Pin
Ryan Cromwell16-Aug-02 3:20
Ryan Cromwell16-Aug-02 3:20 
GeneralRe: To console or not to console... Pin
Ryan Cromwell16-Aug-02 4:03
Ryan Cromwell16-Aug-02 4:03 
GeneralResources Pin
leppie16-Aug-02 0:48
leppie16-Aug-02 0:48 
GeneralRe: Resources Pin
Nnamdi Onyeyiri16-Aug-02 0:55
Nnamdi Onyeyiri16-Aug-02 0:55 
GeneralRe: Resources Pin
James T. Johnson16-Aug-02 1:32
James T. Johnson16-Aug-02 1:32 
GeneralRe: Resources Pin
Nnamdi Onyeyiri16-Aug-02 1:49
Nnamdi Onyeyiri16-Aug-02 1:49 
GeneralRe: Resources Pin
James T. Johnson16-Aug-02 1:53
James T. Johnson16-Aug-02 1:53 
GeneralRe: Resources Pin
Nnamdi Onyeyiri16-Aug-02 2:52
Nnamdi Onyeyiri16-Aug-02 2:52 

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.