Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

VB.NET Automation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy - 29 Jan 2006 12:05 GMT
Hello,

I am trying to automate a game with VB.NET but I am having trouble doing so.
I have added a reference to the library (GameLib 1.0) and typed the
following code.

Dim A as Object
A = GetObject("","GameLib.Game")

but I always get an error saying unable to create activex control.
Apart from GameLib.Game there is also GameLib.GameClass and GameLib.IGame
I have used Spy++ to identify the window as an ATL window.

In the registry, neithier GameLib.Game/Class or IGame appears in
HKEY_CLASSES_ROOT/CLSID, is this where all automation ojects are stored?

I have tried reading tutorials on COM,VB and automation but I cant make
sense of them.
What do I need to do with library and class file so that I can automate the
program?

Thanks
Andy
Michael D. Ober - 29 Jan 2006 14:33 GMT
When you added the GameLib reference, the IDE should have created a new
class called GameLib for you.  You need to reference this class instead of
the underlying COM object.

Mike Ober.

> Hello,
>
[quoted text clipped - 19 lines]
> Thanks
> Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.