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 |
All times are GMT +1. The time now is 02:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com