To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 12696
12695  |  12697
Subject: 
Re: LPub
Newsgroups: 
lugnet.cad
Date: 
Sat, 21 May 2005 22:24:55 GMT
Viewed: 
1018 times
  
In lugnet.cad, Kevin L. Clague wrote:
In lugnet.cad, Anders Isaksson wrote:
Kevin L. Clague wrote:

if (CreateProcess(exec.c_str(),
                  cmd,

Don't know if this is significant, but I usually put everything in the
second argument, both the .exe name and the parameters. In this way even
16-bit programs can be started (and I think I've read about some program
having problems when started the way you show...)

  if CreateProcess(nil,                 {ApplicationName}
    PChar(aCmdLine),                    {lpCommandLine }
    etc.

Than you very much!  LDView now renders without using a batch file.  I cannot
test this on Windows 98 until tommorow when I get home, but this is very
promising.

Glad to hear Anders' suggestion worked.  One other thing.  I can't tell off-hand
looking at your code, but the command line string must include the full path to
the LDView executable as its first argument even when that's also in the first
argument to CreateProcess.

I've successfully run LDView with CreateProcess, and done it this way (including
putting the full path to the LDView executable in the first argument to
CreateProcess).  For safety, I put the LDView executable path in quotes in the
command line string.  I sent some sample code to you (in C++).  You can see it
there (assuming you understand printf format strings from C).

--Travis



Message is in Reply To:
  Re: LPub
 
(...) Than you very much! LDView now renders without using a batch file. I cannot test this on Windows 98 until tommorow when I get home, but this is very promising. Thanks again! Kevin (19 years ago, 21-May-05, to lugnet.cad)

15 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR