User Profile

Collapse

Profile Sidebar

Collapse
CK938
CK938
Last Activity: Jul 11 '11, 06:14 PM
Joined: Jul 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • CK938
    started a topic Returning dynamic array from C++ DLL to VB

    Returning dynamic array from C++ DLL to VB

    Hi,

    I was hoping someone could help me return a dynamic array from a C++ Dll to VB.

    Here's a simple example.

    Code:
    double * TestFunction(int count)
    {
         double* temp = new double[count];
    
         for (int i = 0; i < count; i++){
              temp[i] = i;
         }
    
         return temp;
    }

    Basically I want to return...
    See more | Go to post

  • CK938
    started a topic How do you pass an excel range to a <vector> in C++ DLL?
    in C

    How do you pass an excel range to a <vector> in C++ DLL?

    Hi,

    I was hoping someone could help me pass an excel range to a function in a C++ DLL.

    What I normally do is make the range into an array in the VBA code.
    I know I can pass this array to a C++ function that takes a dynamic array, but is there a way to pass it to a <vector>?

    Thank you.
    See more | Go to post

  • Thanks for all your help. I think I got it.
    See more | Go to post

    Leave a comment:


  • How to determine number of lines in a text file to return an array

    Hi,

    I'm new to C and I'm trying to read in a file that can have an arbitrary number of lines, and put each line into a string array. I guess my problem is that I dont't want to have to explicitly create a new array with a certain size since the number of lines can always change (in the code below I use 101). Is there a better way to return an array or a pointer to an array that contrains all the lines. This is what I have so far....
    See more | Go to post
No activity results to display
Show More
Working...