Running external .exe from inventor API.

Running external .exe from inventor API.

Anonymous
Not applicable
647 Views
0 Replies
Message 1 of 1

Running external .exe from inventor API.

Anonymous
Not applicable

Hi all,

 

I am having some problems relating to the exeution of an external .exe from an inventor API i have created in Visual C#.

 

To start the process i am using the following piece pf code:

using System.Diagnostics;
Process gecode = new Process();
gecode.StartInfo.FileName = "TSP.exe";
gecode.StartInfo.WorkingDirectory = "Processpath";
gecode.StartInfo.UseShellExecute = true;
gecode.Start();
gecode.WaitForExit();
int exitcode = gecode.ExitCode;
gecode.Close();

 When i execute the program it works fine whenever i try to open a program like notepad, etc. However, when i try to run an .exe compiled in C++ with a library called Gecode it returns an "Unknown entry point error" relating to a .dll called qt4gui.dll. By the way, the .exe file runs fine when i run it manually from explorer, it only fails when started from the inventor API.

 

 

Does anyone have an idea as to why the c++ .exe won't run when started from an Inventor API? 

 

I am running:

Windows 7 x64,

Inventor 2011 x64,

Visual Studio 2008,

 

Thanks!

 

Ps.: I also tried running the AddIn on a Windows 7 x86 machine with Inventor 2011 x86, but with the exact same result!

0 Likes
648 Views
0 Replies
Replies (0)