Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have written a DLL in C++ and was able to call it successfully from a C++ program. However I am having a bit of problem calling it from a Excel macro. The function is declared in the DLL as extern "C" __declspec(dllexport) char* __stdcall SayHello(char *infile); and in VBA as Declare Function SayHello Lib "TestHello.dll" (ByVal sin As String, lenX As Long) As String The SayHello function reads the lines from the input file, concat into a long string and returns it as a char*. When the char* is shorter than 20,000 the function runs fine. But when the file is large, I am getting a gpf error. Is it becuase there is a limit on char*? Thanks, Jenn |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deployment problem with Excel WorkbookProject written in C# | Excel Programming | |||
Deployment problem with ExcelWorkbook Project written in C# | Setting up and Configuration of Excel | |||
Problem with VBA code written in Excel 2002 working in Office 2003 | Excel Programming | |||
xla written in C# | Excel Programming | |||
How do i calculate Written Down value | Excel Worksheet Functions |