- I need a simple COM object for learning purposes, preferably written in VB.NET, C# or C++ (could use ATL).
- The object would need to implement one of these two methods:
TimesTwo([in] DOUBLE* doubleArray
-OR-
FillBuffer([in] unsigned char * MyBuffer)
## Deliverables
- I require a project for MSVS 2005 or 2008.
- I require one of the two following method implementations in the COM object, what they should do is:
a. TimesTwo([in] DOUBLE* doubleArray)
Should take a double array of any size and multiply all elements by two.
-OR-
b. FillBuffer([in] unsigned char * MyBuffer)
Should fill the passed buffer with a constant string that can be set in the code.
The IDL interface should define the parameters as [in] only, but an application such as VB6 or VBA should be able to pass an array and get the modified array back. I have seen this type of objects before and I know that it works.