[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference utrop1::lnx_apo

Title:LinkWorks APO
Moderator:HLDE01::SYSTEM
Created:Tue Feb 22 1994
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:476
Total number of notes:1817

471.0. "W95 Print Tool" by ROM01::WIRELESS () Tue Mar 25 1997 17:32

      Hi, all.
      I hope someone has an answer to this:
    
    - LNX 307 SDK contained the Print Tool, which we use in a customer of
    ours' LNX environment.
    
    - Such environment slowly migrates to Windows 95.
    
    - I'd like to make the tool work in win95, too, but I don't know how
    "things" are printed in this environment. Is there any (not C/C++) call
    to some print method or what?
    
    Thanx in advance, 
    
    Andrea 
T.RTitleUserPersonal
Name
DateLines
471.1IJSAPL::MONNINK_HWed Mar 26 1997 10:1724
    Andrea,
    
    
    The following method should do it for you:
    
    ObjectWithDocument::PM:ExtPrint(Filedesc path)
    {
    	Integer		hWnd;
    	Integer		rc;
    
    	rc = extern(path)
    	for WSTYPE_DOSWIN = MEXT_DLL("\"print.dll\".PrintDoc(IN String)");
    
    
    	extern(0, PM:PrintCmd, path, 0, PM:Directory, 2)
    	for WSTYPE_W95W32 = MEXT_DLL("\"shell32.dll\".ShellExecuteA(IN
    Integer, IN String, IN String, IN String, IN String, IN Integer)")
    	for WSTYPE_NTIW32 = MEXT_DLL("\"shell32.dll\".ShellExecuteA(IN
    Integer, IN String, IN String, IN String, IN String, IN Integer)");
    }
    
    
    Han