I was told that you can add c++ classes/dll's to a vb prog. Nobody wants to tell me how, though. I'm running .net on XP. Help!
p.s. i'm still learning vb, so go easy on the technical mumbo jumbo, pls. ;)
Printable View
I was told that you can add c++ classes/dll's to a vb prog. Nobody wants to tell me how, though. I'm running .net on XP. Help!
p.s. i'm still learning vb, so go easy on the technical mumbo jumbo, pls. ;)
well, you can make a class library project in one language and when you compile it, it will make a dll for you
then you can add that dll to the REFRENCES of your other projects and use the functions in that dll
I'm not that good in .NET, that's as far as I have done this:D
close, but no cigar. what do u mean, REFERENCES? like i said, im still learning (teaching myself, really). also, how would i use it in a regular windows app?:confused:
umm, in the Solution Explorer on the right side, there is a category called refrences under your project's nameQuote:
Originally posted by white_as_snow
close, but no cigar. what do u mean, REFERENCES? like i said, im still learning (teaching myself, really). also, how would i use it in a regular windows app?:confused:
right click on it and clickn on Add Reference, and then browse for your dll to add it
btw I'm not the best person to explain this, so feel free to ask this again, maybe someone else could help you:D
Some explanations require technical mumbo jumbo you know. Anyway you project references certain dlls by default. You will see a references node in the solution window. Expand it to see what is referenced by the project. Right-Click on it to add a reference. This allows you to select from the .net class library of dlls, com objects or project dlls.
If you created a dll in C++ you would browse to it and add a reference to it in your project. You can now create an instance of it in your code etc.
If that is too technical I advise you buy a book.
thanx
btw sorry i just meant that since im still learning, i don't know all the fancy stuff yet. i would buy a book, but that's money i don't have at this moment. so, i just learn what i can by asking ?s out here. this is my book/teacher. :)
th best thing u could do to urself is buy a book to learn the theory behind programming otherwise u'll be just programming in the dark :eek:
i know the top-down, 6-step, whatever theory, and a bunch of the other stuff about it. i can teach myself, more or less. it goes faster if i can ask a person instead of a book. a book only gives u so much insight on something, and isn't problem specific. ive taken one course already, but that was 5.0 and a cheesy highschool-level bunch of bs. i just ask a bunch of ?s.
ps. im in college. i don't have money.
I'm in the same boat as you pretty much, although I was lucky enough to have the cash to get started right - If you can cough up enough dough for a good book it'll answer questions you don't even know how to ask yet. I got a tremendous amount of info from Programming Visual Basic .NET by Francesco Balena and will be reading it for months to come. It's sixty bucks but I'm sure you could shop it around and get it much cheaper.
I accept that a book may be too expensive for a student (even though it does seem contradictory) but at least read some tutorials on websites etc. I like answering peoples questions here and on other forums because I believe in spreading the knowledge but and there is a but I do get annoyed when people ask questions like:-
"Can someone tell me how to access, update and add rows to a database and the best method to use for a 3-tier system. Oh yeah and how do 3-tier systems work?"
Now thats unfair to forum posters. We're not here to write books for people but to answer specific questions like:-
"I get an error when trying to update a row in a databse on a ........etc."
In other words if you want to know how to do something properly then read about it, try it and if it doesn't work then ask on a forum for help with your problem.
dont worry, Musician, i try to only ask specific questions. i try to find tutorials, but a lot of them are low level stuff. ive got the basics down; i just need a way to 'expand my horizons' (i hate that cliche).
ciao