Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2005, 03:22 PM
jjd jjd is offline
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Array of Strings to dll

I posted this in the Visual C++ forum as well:

I am having difficulty passing an array of strings from Excel VBA to a C++ dll. The string comparison functions (i.e. stricmp) don't seem to work with the arrays being passed. Basically, I want to create 2 arrays of strings in VBA, pass them to my dll, and then determine if a particular string in one is equal to a particular string in the other. This is the basic problem I have, it is not the only thing I am doing, otherwise I would just use the built-in VBA string functions. I am using Excel 2002 and Visual C++ 6.0.

Thanks
 
Old June 23rd, 2005, 02:58 PM
jjd jjd is offline
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am still wondering about this, if anyone has any suggestions?

 
Old February 26th, 2006, 07:25 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

I don't know where exactly your problem is.
As a starting point you could make a DebugBreak in your C++ DLL function (you have to build a debug version). This causes an exeption in your DLL and a window should pop up allowing you to start the debugger (by clicking Cancel(!) ).
Then you can view the paramters of your DLL function and the memory content to see if the paramters in the DLL look like expected.

Be carefull with the DebugBreak because if you can not manage the C++ code to proceed, anything that you altered in the VBA script before is lost.
So always save yout changes befor you call the Dll functions.

Regards
Leo






Similar Threads
Thread Thread Starter Forum Replies Last Post
strings as array indexes cwalton Excel VBA 3 July 30th, 2007 02:50 AM
Array of Strings jjd Visual C++ 1 June 23rd, 2005 02:56 PM
sort array of strings error lanita BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 December 14th, 2004 08:52 PM
Sorting Array of date strings Arsi C# 4 October 22nd, 2004 04:18 PM
Re-Using an Array (for strings of varying lengths) WebDevel Javascript How-To 2 December 6th, 2003 06:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.