?
Solved

shellexecute fails on win98

Posted on 2003-03-07
4
Medium Priority
?
242 Views
Last Modified: 2006-11-17
on winme,2000 and xp the functions works great
on 2 different win98 machines it returns  SE_ERR_NOASSOC

any help would be great. thanks.

 
CString startinfolder,datapath,runexe,parameters;
startinfolder.Format("%s",Td.Dest_Dir);
datapath.Format("%s\\dbf\\",Td.Dest_Dir);
runexe.Format("%s\\dlogs.exe",Td.Dest_Dir);
parameters.Format("%s %s",datapath,scanner.batch);
         
HINSTANCE shellret = ShellExecute(NULL,"",runexe,parameters,startinfolder,0);
0
Comment
Question by:jafrazee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 total points
ID: 8089549
Hello
  I don't working with C language, but as the ShellExecute API that I use much, try to change the second paramter to "open" instead of leaving it empty    
ShellExecute(NULL,"open",runexe,parameters,startinfolder,0);
0
 
LVL 2

Author Comment

by:jafrazee
ID: 8089692
that was it.
strange the problem was only on win98 pcs
thank you.
0
 

Expert Comment

by:fadi980
ID: 8090374
It works with me on win98 in delphi
let second parameter 'open'
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 8095127
Glad that help you jafrazee
if your problem solved by any comments, please Accept the comment by pressing the button "accept as answer"

Best regards
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Introduction to Processes
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question