Difference in launching application thru VB6 and VB.Net.

I

immi

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
 
C

Cor Ligthert[MVP]

Immi,

Never seen,

Can you show your code in VB 2005?

Cor

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
 
C

Cor Ligthert[MVP]

Immi,

Never seen,

Can you show your code in VB 2005?

Cor

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
 
I

immi

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
 
I

immi

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
 
C

Cor Ligthert[MVP]

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

Cor
 
C

Cor Ligthert[MVP]

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

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top