Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2007, 06:38 PM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginner's Question

This may actually be a tough question since it's specific to a particular book, VB COM, by Thomas Lewis, published in 1999 so maybe a bit out of date. If I knew how, I'd try to contact the author directly.

I'm trying to work my way through the VBFarmSimulator project in this book, and believe me I typed everything exactly as instructed. Then I find that when I try to follow the instruction on p. 44 to 'compile the DLL' the only options I have are F5 = Start and Ctrl-F5 = Start with full compile. Either way I get a dialog window for which the book provides no instructions, so I leave it blank and proceed. However, I find that the program doesn't finish. My only choices are Break, End, and Restart. And of course the only way to get it to end is to choose End. However, when I do, and look in OLEView tool for all the interfaces the author claims get built, I find only IFarmYardAnimal, none of the nine others which he says should be present.

Then when I go on and try to build an EXE to access the component, and I get to the part where I must add a reference to VB COM Farmyard Server on p. 47, I find that no such object can be found in my References list. (I did provide that description for the project, as required, in the 'Project Properties' dialog box shown on p. 40.)

Please help!


Peyton
 
Old February 25th, 2007, 07:07 PM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Making progress... New to Visual Basic (I've gotta start with VB6 since the code I must maintain is in VB6), I kept exploring and stumbled upon a 'Make DLL' choice in the File Menu. When I took a guess and tried that, I found that I now do have a VB COM Farmyard Server choice in the references. But I still don't see the alleged 10 interfaces in OLEView...

Peyton
 
Old February 25th, 2007, 07:37 PM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay, now I found the interfaces in OLEView, too. Ignorant question, sorry.

Peyton
 
Old March 7th, 2007, 11:58 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No problem, glad we could help.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems





Similar Threads
Thread Thread Starter Forum Replies Last Post
A beginner's question Gene Reginato XSLT 5 May 17th, 2007 10:32 AM
Beginner's question re: WindowsForm DataGrid savoym C# 2 January 19th, 2004 02:51 PM
Help please: another beginner's question savoym C# 1 January 9th, 2004 11:45 AM
Beginner's question savoym C# 2 January 8th, 2004 03:58 PM
Beginner's SQL question pankaj_daga SQL Language 3 November 12th, 2003 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.