Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Difference in launching application thru VB6 and VB.Net.

Reply
 
Old 05-14-2009   #1 (permalink)
immi


 
 

Difference in launching application thru VB6 and VB.Net.

Hi,

An application give an error for missing dll when launched via
executable directly by double click.

However when I launch it thru VB6 (“CreateProcess” method) this error
message is suppressed automatically.i.e. missing dll error doesn’t
appear.

On the other side when I launch the same application thru VB2005
(“Process.Start” method) then dll missing message start appearing.

I want to know why message has been suppressed when launching thru VB6
unlike VB2005.

Thanx in advance
Regards
Immi

My System SpecsSystem Spec
Old 05-14-2009   #2 (permalink)
Cor Ligthert[MVP]


 
 

Re: Difference in launching application thru VB6 and VB.Net.

Immi,

Never seen,

Can you show your code in VB 2005?

Cor

"immi" <i4innocent@xxxxxx> wrote in message
news:4ea42469-bc28-493e-bcb4-98c58889ab4d@xxxxxx
Hi,

An application give an error for missing dll when launched via
executable directly by double click.

However when I launch it thru VB6 (“CreateProcess” method) this error
message is suppressed automatically.i.e. missing dll error doesn’t
appear.

On the other side when I launch the same application thru VB2005
(“Process.Start” method) then dll missing message start appearing.

I want to know why message has been suppressed when launching thru VB6
unlike VB2005.

Thanx in advance
Regards
Immi

My System SpecsSystem Spec
Old 05-15-2009   #3 (permalink)
immi


 
 

Re: Difference in launching application thru VB6 and VB.Net.

> Never seen,
Quote:

>
> Can you show your code in VB 2005?
Cor,
Thanx for reply

In VB6
----------

CreateProcess(0&, ExePath, 0&, 0&, 0&, NORMAL_PRIORITY_CLASS, 0&, 0&,
startinfo, procinfo)

Where startinfo and procinfo are structures

In VB2005
---------------
Dim Obj As New Process
Obj.Start(ExePath)

Regards
Immi
My System SpecsSystem Spec
Old 05-15-2009   #4 (permalink)
Cor Ligthert[MVP]


 
 

Re: Difference in launching application thru VB6 and VB.Net.

Ken and me have a website for this kind of problems,

You have in VB for Net to use the Process class
Have a look at the samples.

http://www.vb-tips.com/StartProcess.aspx

Cor

"immi" <i4innocent@xxxxxx> wrote in message
news:13115370-ed2d-4fc6-942f-7bfcc6901f17@xxxxxx
Quote:
Quote:

>> Never seen,
>>
>> Can you show your code in VB 2005?
>
> Cor,
> Thanx for reply
>
> In VB6
> ----------
>
> CreateProcess(0&, ExePath, 0&, 0&, 0&, NORMAL_PRIORITY_CLASS, 0&, 0&,
> startinfo, procinfo)
>
> Where startinfo and procinfo are structures
>
> In VB2005
> ---------------
> Dim Obj As New Process
> Obj.Start(ExePath)
>
> Regards
> Immi
My System SpecsSystem Spec
Old 05-15-2009   #5 (permalink)
immi


 
 

Re: Difference in launching application thru VB6 and VB.Net.

> Have a look at the samples.Cor,

What i understand from the link that you want me to suppress the
message using "\S" as an command line argument. But its doesn't work.
Is there any other work around?

Thanks,
Immi
My System SpecsSystem Spec
Old 05-15-2009   #6 (permalink)
Cor Ligthert[MVP]


 
 

Re: Difference in launching application thru VB6 and VB.Net.

Show the code you made, because it is simply a bunch of examples on that
page

Cor

"immi" <i4innocent@xxxxxx> wrote in message
news:d69c65d8-2d05-429d-9349-c443d34cbb64@xxxxxx
Quote:
Quote:

>> Have a look at the samples.
>>
>> http://www.vb-tips.com/StartProcess.aspx
>>
>
> Cor,
>
> What i understand from the link that you want me to suppress the
> message using "\S" as an command line argument. But its doesn't work.
> Is there any other work around?
>
> Thanks,
> Immi
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
launching/not launching programs upon logging in Vista General
Application can not use mapped drive when launching from RDP session. Vista networking & sharing
Launching an application from a setup.exe program in InstallShield (elevated mode) Vista General
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY Vista General
Media Player playing files but not launching application window Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46