how do i connect microsoft access to c language

D

Douglas J. Steele

You'd be best off reposting this question to a newsgroup related to C.

Be advised that when you use a newsgroup, you're expected to come back to
the newsgroup to get your answers. Posting your real e-mail address in a
newsgroup is a surefire way to be bombarded by spam.
 
C

Chris O'C via AccessMonster.com

Nobody's emailing you info except consultants who charge you. If you want
free info, post a question in the groups and read the replies.

To connect Access or Excel to your c code, create a dll with your c compiler
and place it on the user's pc, usually in c:\windows\system32. You can add
it to your library references or in code. If you want to code it, declare
each function in the library you need in a standard code module in Access or
Excel:

Public Declare Function functionname Lib "mylib" _
(ByVal arg1 As String) As Long

Public Declare Function functionname2 Lib "mylib" _
(ByVal arg2 As Long) As Long

There are several variations, you can make it private vs public, in a class
module vs standard module, different data types and names for the args, etc.
Just make sure it's in scope where you call the function.

Chris
Microsoft MVP
 
Top