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
I'm sorry if this is not the best place for such question. Asking it here since the repo contains similar tool for generating Dart bindings from metadata.
I have a TLB file provided by a specific device vendor. What I would like to have is generated bindings similar to this: FileOpenDialog. So I'd like to call it from Dart in a similar manner (taken from here):
final fileDialog =FileOpenDialog.createInstance();
final pfos =calloc<Uint32>();
hr = fileDialog.GetOptions(pfos);
if (!SUCCEEDED(hr)) throwWindowsException(hr);
final options = pfos.value |FILEOPENDIALOGOPTIONS.FOS_FORCEFILESYSTEM;
hr = fileDialog.SetOptions(options);
if (!SUCCEEDED(hr)) throwWindowsException(hr);
final defaultExtensions =TEXT('txt;csv');
hr = fileDialog.SetDefaultExtension(defaultExtensions);
if (!SUCCEEDED(hr)) throwWindowsException(hr);
free(defaultExtensions);
hr = fileDialog.Show(NULL);
Given that Dart and Win32 development is new to me, can anyone help me in achieving the goal?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there!
I'm sorry if this is not the best place for such question. Asking it here since the repo contains similar tool for generating Dart bindings from metadata.
I have a TLB file provided by a specific device vendor. What I would like to have is generated bindings similar to this: FileOpenDialog. So I'd like to call it from Dart in a similar manner (taken from here):
Given that Dart and Win32 development is new to me, can anyone help me in achieving the goal?
Beta Was this translation helpful? Give feedback.
All reactions