By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,200 Members | 1,584 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,200 IT Pros & Developers. It's quick & easy.

C# TAPI - ITBasicCallControl -- ERROR-- "SPECIFIED CAST IS NOT VALID"

P: n/a

Hello,

I cant get past this error, can anyone help?
ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?

Thanks!

Nov 16 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Isn't "sender" a reserved word??

"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

Hello,

I cant get past this error, can anyone help?
ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?

Thanks!

Nov 16 '05 #2

P: n/a
Try:
Call = (ITBasicCallControl) (object) callInfo;

and no; sender is not a reserved word.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

Hello,

I cant get past this error, can anyone help?
ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?

Thanks!

Nov 16 '05 #3

P: n/a
Don't you have to cast this line too?

ITCallInfo callInfo = (ITCallInfo)objCallNotification.Call;

--
Frank Wisniewski MCSE 4.0, MCP+I, A+
f p w 2 3 @ h o t m a i l . c o m
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

Hello,

I cant get past this error, can anyone help?
ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?

Thanks!

Nov 16 '05 #4

P: n/a
Try casting this line too:

ITCallInfo callInfo = (ITCallInfo) objCallNotification.Call;

--
Frank Wisniewski MCSE 4.0, MCP+I, A+
f p w 2 3 @ h o t m a i l . c o m
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

Hello,

I cant get past this error, can anyone help?
ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?

Thanks!

Nov 16 '05 #5

P: n/a
Try casting this line too:

ITCallInfo callInfo = (ITCallInfo)objCallNotification.Call;

--
Frank Wisniewski MCSE 4.0, MCP+I, A+
f p w 2 3 @ h o t m a i l . c o m
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

Hello,

I cant get past this error, can anyone help?
ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?

Thanks!

Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.