Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / July 2008



Tip: Looking for answers? Try searching our database.

ShellExecute returns 32

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack - 31 Jul 2008 05:38 GMT
What is the meaning of that error?
Jack
Jack - 31 Jul 2008 05:41 GMT
Sorry. The return value is 31
Jack

> What is the meaning of that error?
> Jack
Jack - 31 Jul 2008 06:04 GMT
No association
Thanks, Jack

> Sorry. The return value is 31
> Jack
>
>> What is the meaning of that error?
>> Jack
Matt Williamson - 31 Jul 2008 14:17 GMT
> No association
> Thanks, Jack
[quoted text clipped - 4 lines]
>>> What is the meaning of that error?
>>> Jack

Here is the code I use for that situation

Const SE_ERR_NOASSOC = 31

ShellRet = ShellExecute(Me.hwnd, "Open", MyFile, 0&, 0&,SW_SHOWNORMAL)
   If ShellRet = SE_ERR_NOASSOC Then
       Shell "rundll32.exe shell32.dll,OpenAs_RunDLL " &
MyFile,vbNormalFocus
   End If

Basically, the same thing you get in Explorer when you double click a file
with no association.

HTH

Matt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.