"Jeff Gaines" <whitedragon@xxxxxx> wrote in message
news:xn0fus6ged58dv004@xxxxxx
Quote:
> On 04/09/2008 in message
> <e31c3455-3d3b-443a-b61e-6583e19d5e89@xxxxxx> Pavel
> Minaev wrote:
> Quote:
>>Do you perhaps mean that you accidentally use int/uint where you
>>should have used IntPtr/UIntPtr? This sort of thing would indeed
>>result in your code working against 32-bit DLLs, but failing against
>>64-bit.
>
> That as well! The other one is using ANSI strings rather than wide
> strings, works fine under x86 but falls apart under x64. If you mean CharSet.Ansi vs CharSet.Unicode (or MarshalAs(UnmanagedType)),
then it shouldn't, either. If you mean something else, then I'm curious what
it is.
Quote:
> I can't really analyse it in detail because if it fails I go right back to
> basics and update the prototype completely. It's the greatest of pities
> that MSFT didn't include namespaces for all their dll's (or at least put
> prototypes in the help file)
You should have a look at the P/Invoke Interop Assistant:
http://www.codeplex.com/Release/Proj...eleaseId=14120 Quote:
> but then VS is not really s desktop development environment if you want to
> do any serious work.
This is a rather strange statement. Lots of desktop applications are
developed using VS and C#; what, in your opinion, is mising to make it a
"desktop development environment"?
Quote:
> I like C# and I like the VS IDE otherwise I suspect Delphi is much more
> suited to what I do
I admit I didn't have a lot of experience with Delphi back in the day, but
from what I've seen, C#+WinForms is really very similar to Delphi+VCL, if
you disregard the curly-braces C'ish syntax. No surprises there, either -
remember that both Delphi the language and C# the language were designed by
the same person.
Quote:
> If somebody produced an IDE as good as VS that worked in pure 'C' I'd be
> off like a shot!
VS is actually a very good C/C++ IDE, when you need that sort of thing.
Possibly even the best out there - at least I don't know any other product
that can match its visual debugging facilities for C++.