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

MSCOMM32.OCX exception

P: n/a
Dear sirs
I`ve got the file MSCOMM32.OCX from visual basic 6 and used it in C#
I`ve includedit in the references and also used it in the project "using MSCommLib;"

I also have written the following declaration in the constructor

MSCommLib.MSCommClass msCom = new MSCommLib.MSCommClass();

when I run this program it gives me an exception says "Class is not licensed for use"

what should I do to fix this exception??

thanks
Mohammed
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Mohammed Abdel-Razzak" <Mo*****************@discussions.microsoft.com>
wrote in message news:6B**********************************@microsof t.com...
I`ve got the file MSCOMM32.OCX from visual basic 6 and used it in C#
I`ve includedit in the references and also used it in the project "using MSCommLib;" I also have written the following declaration in the constructor
MSCommLib.MSCommClass msCom = new MSCommLib.MSCommClass();
when I run this program it gives me an exception says "Class is not licensed for use" what should I do to fix this exception??


Hi. See:

http://tinyurl.com/3g4j5

-- Alan
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.