Results 1 to 6 of 6

Thread: Atl

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    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"

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    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

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    what steps did you take to create these files though

    like from start to finish

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width