Wrox Programmer Forums
|
BOOK: Visual Basic 2005 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2005 Programmer's Reference by Rod Stephens; ISBN: 9780764571985
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2005 Programmer's Reference 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 October 4th, 2006, 08:02 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Sorry, I think I read the wrong posting before making my latest reply.

It shouldn't be that hard to use the C# DLL from VB. I don't *think* you even need a Declare statement. You need to set a reference to the DLL but I think it should be able to figure out what's available in the DLL from that. IntelliSense should even give you the VB version of the parameter list (for example, saying "Integer" instead of "int" and "Single" instead of "float").

If you decide to jump to C#, you might get Lutz Roeder's .NET Reflector (http://www.aisto.com/roeder/dotnet/). It's a remarkable program that can read an assembly (the DLL in this case) and then display its IL or VB ot C# code thaht might have generated it. It won't exactly do the translation for you but it may help you figure out a C# equivalent to some of your code or show you what the DLL is doing.

Rod

Rod
RodStephens@vb-helper.com
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html
 
Old October 19th, 2006, 09:30 PM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx Rod. I'll try to access the dll from VB.net.
I am still undecided on C#.
I looked at Wronx Professional C# 2005,but it is too advanced for me. I purchased Beginning Visual C# 2005, but it is organized too much like a class room course text. I need more of a reference which I can open when in the midst of a problem and look up the way out.
Is there any book on C# organized similarly to your Visual Basic 2005 Programmer's Reference?
....joisey

Author of NuRoads 2.0
 
Old October 20th, 2006, 08:02 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

I don't know of such a book, but I haven't looked for one much.

I would start with a relatively easy book ("Beginning Visual C# 2005" might work or a “Dummies” book) and read it through as quickly as possible. Don't try to pick up every detail just get a feel for the syntax and an idea about what can be done.

Then go back if you need to and look at specific topics more closely if you think you need extra work in them.

C# is practically the same as VB except for the differences in syntax so the basic ideas are the same. In fact, you can sketch out the outline of a routine in VB and then translate it fairly easily, changing “If Then” into “if {”, “End If” into “}”, and so forth. You’ll probably miss a few syntax errors which C# will catch for you but the basic structure is the same.

Sorry I can’t be more help. I do some C# programming but it’s mostly translating VB into C# so I haven’t looked at the C# books too much.

Rod

Rod
RodStephens@vb-helper.com
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html
 
Old February 18th, 2007, 04:17 AM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Velen
Default

Hi

Im very new to programing period but in my running around and scanning I can tell you that you dont need to learn a new language to load a C++ dll for use with VB Exspress as long as the dll is a net based dll. All you need to do is go to your projects window click show all files then right click reference/add referince then locate the dll and add it. If this is a wraper type of dll set up it will most likely be located under the COM tab. You will need to look at the DLL's examples for its exspected sytax when accessing it and use the correct sytax and your off nd running.

The beauty of MS's VS.net is you can mix and match VB, C#, C++ and J# in your programs with out changing interfaces. all you need to do is include the proper references. and intelasence will defenitly let you know the sintax for the variouse includes you added.

Hope this helps

And Rod thank you for a wonderfull book It is my bible so to speak at this point in my learning.

Toodles

Vel





Similar Threads
Thread Thread Starter Forum Replies Last Post
Textures Euqil C# 0 February 19th, 2006 10:58 AM





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