ShellExecute + Hypermesh

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

I'm writing a small program to invoke the hypermesh.

I'm trying to invoke hw.exe like following:

 

hInst = ShellExecute(NULL,

 

       //Open parameter

        NULL,

 

       //Name of the application

      TEXT('C:\\Program Files\\Altair\\12.0\\hm\\bin\\win64\\hmopengl.exe'),

 

      //Command line parameters passed to the application

      NULL,

 

     NULL,

     SW_SHOWNORMAL

 

);

 

ShellExecute is used to open the given application.

When I do this, I'm getting some licensing error message saying 'unable to read altair_lic.dat' where as if I double click the exe it is working fine.

Can somebody let me know what is the issue?

Tagged:

Answers