Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I see this project Control Electrical Appliances using PC[^] in here , when I run this project in my pc it given the following error

Warning 1 Could not find type 'AxHWINTERFACELib.AxHwinterface'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. 0 0

Warning 2 The variable 'axHwinterface1' is either undeclared or was never assigned. C:\Documents and Settings\Md Kamrul Islam\My Documents\Downloads\Control_e_appliances\Control_e_appliances\Form1.cs 381 0


Warning 4 Cannot load type library for reference "AxHWINTERFACELib". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) Control_e_appliances

Warning 5 Cannot load type library for reference "HWINTERFACELib". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) Control_e_appliances

Warning 6 The referenced component 'AxHWINTERFACELib' could not be found.

Warning 7 The referenced component 'HWINTERFACELib' could not be found.

Error 3 The type or namespace name 'AxHWINTERFACELib' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Md Kamrul Islam\My Documents\Downloads\Control_e_appliances\Control_e_appliances\Form1.cs 16 11 Control_e_appliances

could you please give me a solution for this
Posted
Updated 1-Oct-11 5:14am

I suggest you load this page (Control Electrical Appliances using PC[^]) and use "New Message" below the article text to ask your questions. The author will receive e-mail notification on your post and will be given a change no notice your questions and answer them.

—SA
 
Share this answer
 
Comments
Simon Bang Terkildsen 1-Oct-11 11:16am    
Beat me to it by less than a second XD
Sergey Alexandrovich Kryukov 1-Oct-11 23:37pm    
No matter, no race.
Thank you, Simon.
--SA
Espen Harlinn 1-Oct-11 12:17pm    
5'ed!
Sergey Alexandrovich Kryukov 1-Oct-11 23:37pm    
Thank you, Espen.
--SA
0x8002801d is the COM "Library Not Registered" error.

I guess you need to register a COM library (probably hwinterface.ocx)

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Simon Bang Terkildsen 1-Oct-11 12:27pm    
my 5, didn't catch that one.
For the OP you can register the COM library by running the Visual Studio Command Prompt and typing regsvr32 hwinterface.ocx
Espen Harlinn 2-Oct-11 5:44am    
Thanks Simon!
Sergey Alexandrovich Kryukov 1-Oct-11 23:39pm    
Most likely so, my 5.
--SA
Espen Harlinn 2-Oct-11 5:45am    
Thanks Sergey!
The best person to ask this is the author of the article.
You can post a question at the bottom of the article page, here[^]
 
Share this answer
 
Comments
Espen Harlinn 1-Oct-11 12:17pm    
5'ed!
Sergey Alexandrovich Kryukov 1-Oct-11 23:38pm    
We know that :-), a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900