Custom Common Dialog Assembly.

B

BotRot

Hello Newsgroup,

I have (about a year ago now) constructed my own CommonDialog Assembly using C#
2008, on Windows XP (now SP3), using the Win32 API. I have used this assembly now
in 2 C# applications. One company that uses an application which utilises the
CommonDialog Assembly, is upgrading their OS from Windows XP SP3, to Windows 7
Professional 32 Bit.

Assuming the answer is yes, will the CommonDialog Assembly still function, as in
I'll still display the OpenFile, SaveFile, ChooseFont, and ChooseFile Common
Dialogs? Even if they not the 'new' Windows 7 dialogs. I'm wondering just how
different the 32 Bit APIs are.

(Some) Specific Win32 API used (unwrapped) as an e.g.;

[DllImport("gdi32.dll")]
private static extern Int32 GetDeviceCaps(IntPtr hDC, Int32 nIndex);

[DllImport("kernel32.dll", EntryPoint = "GlobalAlloc", SetLastError = false)]
private static extern IntPtr GlobalAlloc(UInt32 uFlags, UIntPtr dwBytes);

[DllImport("kernel32.dll", EntryPoint = "GlobalLock", SetLastError = false)]
private static extern IntPtr GlobalLock(IntPtr hMem);

[DllImport("kernel32.dll", EntryPoint = "GlobalUnlock", SetLastError = false)]
private static extern bool GlobalUnlock(IntPtr hMem);

[DllImport("kernel32.dll", EntryPoint = "GlobalFree", SetLastError = false)]
private static extern IntPtr GlobalFree(IntPtr hMem);

And the HeapAlloc, HeapDestroy, HeapFree, MoveMemory, ZeroMemory, SendMessage, all
the Common Dialog APIs, and all the constants, enums, and structs associated with
particular functions.


Thanks and regards,
- BotRot
 
P

Peter Duniho

BotRot said:
Hello Newsgroup,

I have (about a year ago now) constructed my own CommonDialog Assembly using C#
2008, on Windows XP (now SP3), using the Win32 API. I have used this assembly now
in 2 C# applications. One company that uses an application which utilises the
CommonDialog Assembly, is upgrading their OS from Windows XP SP3, to Windows 7
Professional 32 Bit.

Assuming the answer is yes, will the CommonDialog Assembly still function, as in
I'll still display the OpenFile, SaveFile, ChooseFont, and ChooseFile Common
Dialogs? Even if they not the 'new' Windows 7 dialogs. I'm wondering just how
different the 32 Bit APIs are.

Honestly, it's not clear at all what relevance your question has to C#
at all. The question appears to be specifically about the Win32 API,
making it solidly a Win32 API question. If there's something C#-related
in there, you should be more clear about it (and no, just because
there's p/invoke, that doesn't make it a C# question…most
p/invoke-related questions have nothing to do with C#).

It's also not clear what you mean by "just how different the 32 Bit APIs
are". Different from what? The same 32-bit API you were using on XP
still exists on Windows 7, and it still works the same. There might be
minor implementation detail differences, such as visual characteristics
or maybe even bug fixes, but there's no reason to expect your
application should have any problems, as long as you've used the API in
the approved, documented way.

Of course, as they say, "the proof is in the pudding". The only way to
know for sure will be for you to try your code on Windows 7. Anything
less is pure conjecture.

By the way, next time you find yourself doing something like this, you
really should take advantage of the public betas and include the
well-known, long-announced, upcoming new OS version as part of your
development and testing platforms. If you've only been working on this
about a year, then Windows 7 was no big surprise! :)

Pete
 
B

BotRot

Honestly you should defecate it will clear that facial expression of yours up.

By the way next time only answer questions you know how too.


| BotRot wrote:
| > Hello Newsgroup,
| >
| > I have (about a year ago now) constructed my own CommonDialog Assembly using
C#
| > 2008, on Windows XP (now SP3), using the Win32 API. I have used this assembly
now
| > in 2 C# applications. One company that uses an application which utilises the
| > CommonDialog Assembly, is upgrading their OS from Windows XP SP3, to Windows 7
| > Professional 32 Bit.
| >
| > Assuming the answer is yes, will the CommonDialog Assembly still function, as
in
| > I'll still display the OpenFile, SaveFile, ChooseFont, and ChooseFile Common
| > Dialogs? Even if they not the 'new' Windows 7 dialogs. I'm wondering just
how
| > different the 32 Bit APIs are.
|
| Honestly, it's not clear at all what relevance your question has to C#
| at all. The question appears to be specifically about the Win32 API,
| making it solidly a Win32 API question. If there's something C#-related
| in there, you should be more clear about it (and no, just because
| there's p/invoke, that doesn't make it a C# question…most
| p/invoke-related questions have nothing to do with C#).
|
| It's also not clear what you mean by "just how different the 32 Bit APIs
| are". Different from what? The same 32-bit API you were using on XP
| still exists on Windows 7, and it still works the same. There might be
| minor implementation detail differences, such as visual characteristics
| or maybe even bug fixes, but there's no reason to expect your
| application should have any problems, as long as you've used the API in
| the approved, documented way.
|
| Of course, as they say, "the proof is in the pudding". The only way to
| know for sure will be for you to try your code on Windows 7. Anything
| less is pure conjecture.
|
| By the way, next time you find yourself doing something like this, you
| really should take advantage of the public betas and include the
| well-known, long-announced, upcoming new OS version as part of your
| development and testing platforms. If you've only been working on this
| about a year, then Windows 7 was no big surprise! :)
|
| Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top