Skip to main content

[archive] ShellexecuteA issue

  • August 5, 2010
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 03 August 2010]

Good day,

Really i think it's not a problem of COBOL, but i'll post my problem to see if someone have it.

I have a call to shellexecuteA api that is working perfectly under all operative systems, but in a customer with windows 2008 server standard sp 2, the api don't open an image. It returns code 31 that if the example isn't wrong is:

"No association for file extension"

In the files explorer in windows, i double click it and the operative system open it with paint, then i dunno how the api returns that no file extension is associated.

Probably is a configuration problem in de OS, but maybe here is a know issue.

Thanks afterwards

P.D: I post this first in microsoft forums and I'm waiting for response.

1 reply

[Migrated content. Thread originally posted on 03 August 2010]

Good day,

Really i think it's not a problem of COBOL, but i'll post my problem to see if someone have it.

I have a call to shellexecuteA api that is working perfectly under all operative systems, but in a customer with windows 2008 server standard sp 2, the api don't open an image. It returns code 31 that if the example isn't wrong is:

"No association for file extension"

In the files explorer in windows, i double click it and the operative system open it with paint, then i dunno how the api returns that no file extension is associated.

Probably is a configuration problem in de OS, but maybe here is a know issue.

Thanks afterwards

P.D: I post this first in microsoft forums and I'm waiting for response.
Finally like i said, it's an issue with windows 2008 server. A package for "Desktop experience" isn't installed by default on this OS, and one of the problems is no images can be showed with Windows picture preview.

Thanks anyway :D