Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Accessing dll
I am having difficulty in passing string information thru a dll which is in C++. Below are the statements that I use that work with the dll. Private Declare Sub PropCalc Lib "C:\Wrapper.dll" _ Alias "FluidPropCalc" (ByVal Inputxml As String, ByVal Outputxml As String, ByRef lgth As Long) Dim l As Long Outputxml = String(255, 0) PropCalc InputXml, Outputxml, l Outputxml = Left(Outputxml, l) I get an "Unhandled exception at 0x0600003a in EXCEL.EXE: 0xC0000005: Access violation reading location 0x0600003a" I am beginning to think excek does not work well with the dotnet framework; can anyone tell me if this is so? I don't want to use a com interop wrapper. I am using mixed mode c++. Thanks to anyone that can provide some help -- MortisReaper ------------------------------------------------------------------------ MortisReaper's Profile: http://www.excelforum.com/member.php...o&userid=34488 View this thread: http://www.excelforum.com/showthread...hreadid=542512 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Accessing clipboard through VBA | Excel Programming | |||
Accessing the Desktop | Excel Programming | |||
Accessing FTP through VBA Macro | Excel Programming | |||
accessing controls | Excel Programming | |||
Accessing Excel from VB | Excel Programming |