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
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