Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Building an XLL from C / C++

Many people have trouble with buiding XLL ( Excel Worksheet Functions )
from C / C++.

The Microsoft Excel API can be hard to use and the framework template
from MicroSoft has a bug.
It it tries to convert the C strings " some string" into LPSTR by the
updating the first character at runtime. This causes the XLL to fail.
The solution is to make a copy of the string and then update the first
character with the proper LPSTR size. This is what you then pass to
xlregister.

However, the easiest way to build XLLs from C/C++ is to use RapidXLL.
http://www.RapidXLL.net

One simple tag exports the function in an XLL. It also automatically
builds a .NET wrapper for use in winform applications, and creates html
user documentation for your addin.

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
Building a TOC phil1ray Excel Discussion (Misc queries) 2 February 10th 06 02:46 PM
building a web site Paul Charts and Charting in Excel 0 January 27th 06 01:26 AM
building xsl for an xml venk Excel Programming 0 January 7th 05 07:31 PM
Building COM Add-in in XL2003 Alex T Excel Programming 1 July 12th 04 03:53 PM
Building xll No Name Excel Programming 2 February 28th 04 06:25 PM


All times are GMT +1. The time now is 06:55 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"