> I'm launching another program from Freepascal program through "exec" > I need code that can set the position and size of the started program.
I haven't used Windows in a while, but I think you need CreateProcess() instead of WinExec() You can to set the dwX, dwY, dwXSize, and dwYSize fields of the lpStartupInfo parameter . The function is declared in: C:\FPC\RTL\WIN32\WININC\UNIDEF.INC and the structures are in: C:\FPC\RTL\WIN32\WININC\STRUCT.INC ( or where ever your files are ) The MSDN documentation is at: <url> http://msdn.microsoft.com/library/default.asp ?url=/library/en-us/dllproc/base/startupinfo_str.asp </url> ( That's all on one line ) See also: http://www.delphicorner.f9.co.uk/articles/wapi4.htm http://www.google.com/search?q=CreateProcess+Delphi __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal