VB.net shell call

Add-in Express™ Support Service
That's what is more important than anything else

VB.net shell call
mading the code wait for a shell to close 
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jonathan.

I am a little confused. Could you send me the whole project? I will try to help.
Posted 20 Jun, 2005 04:24:44 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
how do you want me to send it???
Posted 20 Jun, 2005 04:26:01 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Jonathan, I have just sent you an email. Please check your inbox.
Posted 20 Jun, 2005 04:33:32 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
i upload it to http://www.dorling.biz/DMCRM.zip

the whole think is there

Jonathan
Posted 20 Jun, 2005 04:34:34 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Ok, thank. I will reply to you soon.
Posted 20 Jun, 2005 04:37:46 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
Hello Jonathan,
Sergey Grischenko asked me to help you fix the problem.
I ran your project. I don`t have the OutlookCRM addin, but the whole code in your project works correctly. For you to be able to find out where the project crashes I recommend running it in the Debug mode.
So, in Configuration Properties -> Debugging, you need to check Start external program and specify the path to Microsoft Outlook, e.g. C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE
Now if you run the project by clicking on the Start button (or F5), the project will be run in the Debug mode.
Posted 20 Jun, 2005 08:10:36 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
it only crashes when i run
PID = Shell(cmdline, AppWinStyle.NormalFocus, True, 600000)


and then when i quit the cmdline program outlook comes out of crashing?

Why is this???

Jonathan
Posted 20 Jun, 2005 08:14:55 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
I recommend you using the code below
       
 Try
    PID = Shell(cmdline, AppWinStyle.NormalFocus, True, 600000)
 Catch ex As Exception ' Catch the error.
    MsgBox(ex.ToString)   ' Show friendly error message.
 End Try

in this case you will be able to see what kind of exceptions you are getting.
Posted 20 Jun, 2005 08:35:21 Top