Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. passing pointers from DLL to VB to DLL

passing pointers from DLL to VB to DLL

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structureshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IGeorgeI
    wrote on last edited by
    #1

    Here is what I want to do VB front end is main app DLL # 1 creates an array of doubles DLL # 2 performs some task on an array of doubles passed to it Vb frontend will get a pointer to an array of doubles (double * array) from DLL #1 and pass the pointer to DLL #2 which accepts pointers to arrays of doubles. How do I get VB to do this ie. recognize what a pointer to a array of doubles is?????? Thanks in advance for all help

    F 1 Reply Last reply
    0
    • I IGeorgeI

      Here is what I want to do VB front end is main app DLL # 1 creates an array of doubles DLL # 2 performs some task on an array of doubles passed to it Vb frontend will get a pointer to an array of doubles (double * array) from DLL #1 and pass the pointer to DLL #2 which accepts pointers to arrays of doubles. How do I get VB to do this ie. recognize what a pointer to a array of doubles is?????? Thanks in advance for all help

      F Offline
      F Offline
      FlorianS
      wrote on last edited by
      #2

      Between dll's you can pass pointer like long value and inside the second dll you can assign this long to the real pointer and do the conversion

      I 1 Reply Last reply
      0
      • F FlorianS

        Between dll's you can pass pointer like long value and inside the second dll you can assign this long to the real pointer and do the conversion

        I Offline
        I Offline
        IGeorgeI
        wrote on last edited by
        #3

        Thanks for the reply. I thought about that but my ploblem is that the 2nd DLL(receiving the pointer) must have a (double*) as it's parameter. I can not redeclare the function to accept "void pointers". If I could, I would. Any other suggestions? :((

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups