Results 1 to 3 of 3

Thread: Connecting to C++

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I've got some fairly hardcore maths to do on some very large arrays and I was thinking it might be faster to do it using a C++ backend for the maths.

    I can write the source code for the functions themselves but I have absolutley no Idea how to connect to them with VB.


    basicly how do I go from something like this


    Code:
    int CalculateArray (long* TargetArray,int Param1, int Param2)
    {
    
    int retval = 0;
    
        //Lots of C++ Code
    
        return retval;
    
    }
    to something I can connect to like I connect to the API

    thanks in advance

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    How about using c++ to create a .dll and connect to it through VB. I have no exp. with c++, but from what i do know, it makes no diff. to vb what lang. a .dll was written in.

  3. #3
    Guest
    I found a Customized VB Linker, that linked VB object files with C++ object files.. I forgot where I found it (I didn't ofcourse download it) but if I find it agian, i'll post the link here, you may be able to compile the C++ code and then link the obj file with VB's file...

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