Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing clipboard through VBA pjelliffe[_2_] Excel Programming 3 May 11th 06 05:01 AM
Accessing the Desktop Raman325[_14_] Excel Programming 2 August 12th 05 07:58 PM
Accessing FTP through VBA Macro robsix6 Excel Programming 5 June 6th 05 02:36 PM
accessing controls Gixxer_J_97[_2_] Excel Programming 3 May 19th 05 04:55 PM
Accessing Excel from VB Wayne Ware Excel Programming 2 May 3rd 05 03:59 PM


All times are GMT +1. The time now is 01:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"