Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
following problem: in my EXCEL VBA-code I try to call a function from a C++ DLL which has the following declaration: long TestFunc( char* TestStr ); In this function the TestStr is modified. VBA-code: Declare Function TestFunc& lib "TestDll.dll" ( VBAString as String ) Dim DummyStr as String DummyStr = "this is a test" ret = TestFunc( DummyStr ) BUT, after calling TestFunc EXCEL crashes... As long as I don't touch the string in the C++ funtion everything is ok. Any other idea how to return a string from a DLL? Thanks, Johann |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I return a text string when a calculation returns a non who | Excel Worksheet Functions | |||
Help formula that returns a text string from another sheet | Excel Worksheet Functions | |||
A function that returns the formula of a cell as a string | Excel Worksheet Functions | |||
use concatenate function to put carrage returns in a text string | Excel Worksheet Functions | |||
calling variable within string | Excel Worksheet Functions |