You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IUIFramework.LoadUI() first parameter "instance" now has the type "HMODULE".
CsWin32 version 0.2.223-beta had for the first parameter the type "HINSTANCE".
Expected behavior
The documentation and also the header file UiRibbon.h say that the first parameter type is a HINSTANCE
Repro steps
IUIFramework Framework;
private void Method(HINSTANCE hInstance, string resourceIdent)
{
Framework = new UIRibbonFramework() as IUIFramework;
Framework.LoadUI(hInstance, resourceIdent);
}
NativeMethods.txt content:
UIRibbonFramework
IUIFramework
NativeMethods.json content (if present):
Any of your own code that should be shared?
Context
CsWin32 version: [0.2.229-beta]
Win32Metadata version (if explicitly set by project):
Target Framework: [e.g. netstandard2.0]
LangVersion (if explicitly set by project): [e.g. 9]
The text was updated successfully, but these errors were encountered:
Once microsoft/win32metadata#1517 is fixed this will be resolved, but that fix is dependent on CsWin32 supporting implicit conversions between HMODULE and HINSTANCE. That's tracked by #199.
@harborsiem, the fix requires a combination of CsWin32 changes (which you have) and the fix in the metadata (which has merged but has not yet shipped). Once those two things are available, CsWin32 will have to update to consume that metadata (or you could try referencing the latest metadata directly and you might get lucky).
Actual behavior
IUIFramework.LoadUI() first parameter "instance" now has the type "HMODULE".
CsWin32 version 0.2.223-beta had for the first parameter the type "HINSTANCE".
Expected behavior
The documentation and also the header file UiRibbon.h say that the first parameter type is a HINSTANCE
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Context
netstandard2.0
]LangVersion
(if explicitly set by project): [e.g.9
]The text was updated successfully, but these errors were encountered: