|
Thread: Atl
-
Jul 21st, 2001, 03:59 PM
#1
Thread Starter
Frenzied Member
Atl
i would like to make a SIMPLE DLL object with visual c++
that i can use in vb (just like the simplest thing possible)
maybe a function that returns "hi, this works"
-
Jul 21st, 2001, 04:24 PM
#2
Monday Morning Lunatic
Try returning a simpler value before you move onto strings - you can't just "return" one like in VB - in C++ strings are arrays.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 23rd, 2001, 06:22 PM
#3
Thread Starter
Frenzied Member
sure you can
if you use the string library 
i was more interested in the ATL part of making the dll
i will check out the example now
thanks
-
Jul 23rd, 2001, 06:24 PM
#4
Monday Morning Lunatic
You said from C++ to VB - you can't return a c++ class to VB because they have no conceptual equivalent
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 23rd, 2001, 06:42 PM
#5
Thread Starter
Frenzied Member
what steps did you take to create these files though
like from start to finish
-
Jul 23rd, 2001, 06:44 PM
#6
Monday Morning Lunatic
Create "Win32 Dynamic Link Library" project. Add a .cpp file, put a test function in. Add a .def file and write the export table. The linker sorts it out for you if you have a .def file in the project.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|