Local loMsgBox Set ClassLib to Struct Additive Declare Long LoadLibrary in Win32API String Declare Long MessageBoxIndirect in Win32API String lnHandle = LoadLibrary( GetEnv("WinDir")+"\System32\PifMgr.DLL" ) loMsgBox = CreateObject( "MSGBOXPARAMS2" ) With loMsgBox .cbSize = loMsgBox.SizeOf() .hInstance = m.lnHandle .lpszIcon = 11 && the resource ID .dwStyle = 0x00000080 .lpszText = "FoxPro rocks!" .lpszCaption = "Demo...Demo..." Endwith MessageBoxIndirect( loMsgBox.GetString() ) Define Class MSGBOXPARAMS2 as Struct cbSize = 0 hwndOwner = 0 hInstance = 0 lpszText = "" lpszCaption = "" dwStyle = 0 lpszIcon = 0 dwContextHelpID = 0 lpfnMsgBoxCallback = 0 dwLanguageID = 0 cMembers = ; "UINT ul:cbSize,"+ ; "HWND ul:hwndOwner,"+ ; "HINSTANCE ul:hInstance,"+ ; "LPCTSTR pz:lpszText,"+ ; "LPCTSTR pz:lpszCaption,"+ ; "DWORD ul:dwStyle," + ; "LPCTSTR ul:lpszIcon," + ; "DWORD ul:dwContextHelpID," + ; "MSGBOXCALLBACK ul:lpfnMsgBoxCallback," + ; "DWORD ul:dwLanguageID" EnddefineChristof