Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
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: |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
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: |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Adding a custom function to the default excel function list | Excel Programming | |||
When I Import an Access Table With an Excel Function in a Cell it Displays as Text not as a Function in Excel | Excel Programming |