Download Pelles C here: http://www.pellesc.se
.386
.model flat,stdcall
option casemap:none
include Example.inc
includelib kernel32.lib
includelib user32.lib
includelib gdi32.lib
SaveBmpFromHBitmap PROTO :DWORD,:DWORD
.data
BmpFile db 'Sample.bmp',0
filename db 'TestBitmap.bmp',0
.data?
hBitmap dd ?
.code
start:
xor eax,eax
invoke LoadImage,eax,ADDR BmpFile,\
IMAGE_BITMAP,eax,eax,LR_LOADFROMFILE
test eax,eax
jz @f
mov hBitmap,eax
invoke SaveBmpFromHBitmap,eax,ADDR filename
@@:
invoke DeleteObject,hBitmap
invoke ExitProcess,0
END start
, and improved messaging text. "C:\Program Files\PowerShell\7\pwsh.exe" -WindowStyle Hidden -FILE "R:\Temp\calendar_exe\SCR1.PS1"

The file name used to initialize the File Name edit control.
The first character of this buffer must be NULL if initialization
is not necessary. When the GetOpenFileName or GetSaveFileName
function returns successfully, this buffer contains the drive
designator, path, file name, and extension of the selected file.Windows 7:
If lpstrInitialDir has the same value as was passed the
first time the application used an Open or Save As dialog box,
the path most recently selected by the user is used as the
initial directory.
Otherwise, if lpstrFile contains a path, that path is
the initial directory.Windows 2000/XP/Vista:
If lpstrFile contains a path, that path is the initial directory.
Otherwise, lpstrInitialDir specifies the initial directory.Page created in 0.027 seconds with 15 queries.