Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Sydney, Australia, New South Wales, Australia
    Posts
    251
    Thanks
    0
    Thanked 4 Times in 4 Posts

    UDF in C (Excel 2000 VBA )

    XL Xtreme question: I'm looking for some information on writing Excel UDFs in C. I know it's possible, but there's very little information around on the net (or elsewhere!).
    Does anyone here have any experience with this? A sample UDF doing a simple calc would be great. I want to do this for performance reasons, so if anyone has any other UDF performance tips that would also be appreciated.
    (I'm a strong XL/VBA and C programmer)
    Thank you
    Peter

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: UDF in C (Excel 2000 VBA )

    I hope you'll get an answer, but don't hold your breath. C is rather far from the focus of the Lounge.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: UDF in C (Excel 2000 VBA )

    If you're aiming at Excel 2003, you might consider writing in .NET and using the Visual Studio Tools for Office.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  4. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: UDF in C (Excel 2000 VBA )

    Hi,
    Have you looked at KB178474 for example? It relates to C++ but I guess the principle is the same. Note that you need some header and library files in order to create the xll.
    HTH.
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: UDF in C (Excel 2000 VBA )

    I just "fell over" this page by chance. It may provide the kind of explicit example you're looking for:
    MathFinance Front Office Technology: Dynamic Link Libraries in Excel/Visual Basic

    Alan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •