Difference in launching application thru VB6 and VB.Net.

  • Thread starter Thread starter immi
  • Start date Start date
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
 
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
 
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
 
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
 
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
 
Back
Top