Can not open directX device- Error message

Posted By: sakthi

Can not open directX device- Error message - 10/06/14 09:30

Dear Friend,

We are using the 3D Game-studio A7.86 Version.

After publish the file,We are calling the *.Exe through VB 6.0 using Sheel command that time it show the following Error message

'Can't open the directX device'


But When we go to and double click the .Exe directly ,it is working fine and it is not show the above error message.

The same file ,we have developed in 3D Gamestudio A7.26 it is working fine.

what is the problem we could not identify

Please let me know what the route cause for this issue.

Please help me.

Regards,
K Sakthivel
Posted By: rayp

Re: Can not open directX device- Error message - 10/08/14 01:21

If u mean "Shell" command like shellexecute(ex) youve some options / solutions i guess. One way could be to simply create a shortcut to your EXE, shellexecuting this shortcut then (not the EXE direct). Another, much cleaner, way: define fullpath (of course) AND(!) the "lpDirectory" target path in shellexecute(ex) command
Quote:
lpDirectory
[in] A pointer to a null-terminated string that specifies the default (working) directory for the action. If this value is NULL, the current working directory is used. If a relative path is provided at lpFile, do not use a relative path for lpDirectory.
I could imagine a folder-change, be4 the shell execution, via ChDir (4ex) might solve the prob aswell, instead of a defined targetpath.
Or a be4 created BATch file, executing the EXE, might also help...but would be no good fix for my taste...more a hack like the "shortcut Version" ^^

Just some ideas...
Greets
© 2024 lite-C Forums