Solved

Problem with X10 interface

Posted on 2004-08-21
10
740 Views
Last Modified: 2008-01-09
Hello, i am trying to make my x10 remote control work on my pc.

Problem is i have this file "x10net.dll" and its just to import it as a type libarary, and it install fine.

But when i try to use "X10Control" from the Activex page i get error "Cannot assign a nil to a TX10Control"

So if i look in the interface for this file, it says:

// Errors:
//   Hint: Member 'Interface' of 'IX10Control' changed to 'Interface_'
//   Hint: Member 'Label' of 'IXCommand' changed to 'Label_'
//   Hint: Member 'Label' of 'IXDevice' changed to 'Label_'

So its because it uses some of delphis indentifying names i guess, but what can i do about this?

2 files for testing can be downloaded here (tlb file and dll):
http://www.asdev.dk/files/other/stuff/x10net.zip


Hope someone can help me, cause if i import the file in vb there is no problem at all...

Regards
    Dennis
0
Comment
Question by:Dennis9
  • 4
  • 3
10 Comments
 
LVL 1

Author Comment

by:Dennis9
ID: 11865782
More points for a solution...
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 11866583
Project / Import Type Library / Add
point to the NvRemote.tlb file and choose INSTALL

the installed classes are:
TNvRemoteManager
TNvRemoteRemoteProps
TNvRemoteApplicationProps
TNvRemoteGeneralProps

make sure x10net.dll is in the search path, but better copy it to %WINDOWS%\system32 folder. Then :
"regsvr32 x10net.dll" to register the DLL

and then try again.
0
 
LVL 1

Author Comment

by:Dennis9
ID: 11874117
no problem installing the NvRemote.tlb, but cant use thoose components to anything.

I need to get the TX10Control that exists in the dll file.
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 11878401
TX10Control ???

I didn't saw component like this.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Author Comment

by:Dennis9
ID: 11887510
Try import Type Lib and add file "x10net.dll" It has 2 components.
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 11887740
OK, I installed them. On ActiveX table I have the 2 components. And I can change the AutoConnect property, etc. It seems it is working, so man, I don't know how I can help you...

(using Delphi 7)
0
 
LVL 1

Author Comment

by:Dennis9
ID: 13344179
I managed to get it to work using the EventSink application.
0
 

Accepted Solution

by:
PAQ_Man earned 0 total points
ID: 15015565
PAQed with points refunded (500)

PAQ_Man
Community Support Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now