Hi All,

I used to be able to open WordNet 2.0 with the following ShellExecute:

  ShellExecute( 0,'open',
                     '"C:\Program Files\WordNet\2.0\bin\wishwn.exe/"',
                     '"C:\Program Files\WordNet\2.0\bin\wnb"',
                     nil, SW_HIDE);

but now with WordNet 2.1, it doesn't work.  The old WordNet 2.0 shortcut
target location was shown in the properties box as:

"C:\Program Files\WordNet\2.0\bin\wishwn.exe"  "C:\Program 
Files\WordNet\2.0\bin\wnb"

But the new WordNet 2.1 shortcut target location is grayed and disabled, and 
just
a symbolic entry is given as:

                                WordNet 2.1

which is clearly not amenable to putting into a ShellExecute.

Looking into the new directory  "c:/program files/wordnet/2.1/bin/" there 
are
only the executables:

wn.exe
wnb.exe

So wishwn.exe doesn't even exist anymore.  When I click directly on the 
wnb.exe
file from Win Explorer, it runs properly.  So I changed the ShellExecute to

  ShellExecute( 0,'open',
                     '"C:\Program Files\WordNet\2.1\bin\wn.exe"',
                     '"C:\Program Files\WordNet\2.0\bin\wnb"',
                     nil, SW_HIDE  );

Which does nothing I can see.  I click on a button to execute the 
ShellExecute
and nothing happens.

When I changed the SW_HIDE to SW_SHOW, I get a very fast flash of a DOS
box, but nothing else.

When I change the execute to:

  else ShellExecute( 0,'open',
                     '"C:\Program Files\WordNet\2.1\bin\wnb.exe"',
                     '"C:\Program Files\WordNet\2.1\bin\"',
                     nil, SW_SHOW );

I get an error box with the comment:

"couldn't read file "wnb.tcl"; no such file or directory.

But the file "wnb.tcl" is there in the same directory as the executable, 
i.e. in:

"C:\Program Files\WordNet\2.1\bin\"

Does anyone know how to figure out a ShellExecute command to get
that program going?

Thanks,
Rich


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to