![]() |
Using Excel VBA to run C function in DLL
Dear Excel Gurus,
I would like to use Excel VBA to run some C functions in a DLL. Can someone provide a good weblink or advice on how to go about doing this? Thank you very much in advance. |
Using Excel VBA to run C function in DLL
You can't necessarily call a function in a standard Win32 DLL from VBA.
First, the DLL function must have been compiled with the __stdcall declarator and must have been exported in a DEF file. If both of those are true, see the help from the "Declare" statement. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "Sing" wrote in message ... Dear Excel Gurus, I would like to use Excel VBA to run some C functions in a DLL. Can someone provide a good weblink or advice on how to go about doing this? Thank you very much in advance. |
Using Excel VBA to run C function in DLL
On Sep 25, 8:56 am, "Chip Pearson" wrote:
You can't necessarily call a function in a standard Win32 DLL from VBA. First, the DLL function must have been compiled with the __stdcall declarator and must have been exported in a DEF file. If both of those are true, see the help from the "Declare" statement. I am trying to call functions from a DLL file that supports Visual Basic 6.0. So, I assume that it should also work for Excel VBA. Is this assumption valid? When I tried to run the program using the DLL, I encountered the error "xxx.dll not found". I have put the dll file in the same directory as the Excel file. When I tried add it to reference (Tools- References ...), I get the error "Can't add a reference to the specified file". Any advice? Thank you very much. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consultingwww.cpearson.com (email on the web site) "Sing" wrote in message ... Dear Excel Gurus, I would like to use Excel VBA to run some C functions in a DLL. Can someone provide a good weblink or advice on how to go about doing this? Thank you very much in advance. |
Using Excel VBA to run C function in DLL
A&A - PRESTAÇÃO DE SERVIÇO.
Melhore suas planilhas! - Deixe-as mais rápidas - Torne-as mais funcionais - Aplique lay-outs mais modernos - Melhore a apresentação dos seus dados - impressione os gerentes e a diretoria Crie o seu M.I.S. personalizado, desenvolva um Dataware, implemente seu BI. - Envie dados do seu Banco de Dados diretamente para a sua aplicação - Recolha informações diretamente da Web (Cotações, Taxas, Alíquotas, etc...) Programação VBA, Reports, Dashboards, Pivot Tables (Tabelas Dinmicas), Ordenações, Agrupamentos, Interfaces, etc. . . Entre em contato. Prestamos serviço diretamente pela Internet. Você envia e implementamos sua solicitação. Também desenvolvemos aplicações MS Access. Mail: |
All times are GMT +1. The time now is 01:35 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com