Search found 23 matches

by michaelleewebb
Jul 11, 2019 14:51
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

deltarho, you may be on to something, msaccess doesn't handle pointers very well. i'm reading this web page: https://codekabinett.com/rdumps.php?Lang=2&targetDoc=api-pointer-convert-vba-string-ansi-unicode looks complicated. and still may not work. i had no idea that 32 bit dll's go into the sys...
by michaelleewebb
Jul 11, 2019 13:04
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

tried:
Declare Function SayHello Lib "C:\testdll\sayhello.dll" Alias "SayHello" (ByVal pString As String) As Integer
still same error message

tried placing dll in c:\windows\system32
same error message
removed dll from c:\windows\system32
by michaelleewebb
Jul 11, 2019 12:54
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

well if everyone else is going to keep trying so am i. i did all of the following in the c:\freebasic folder. i created a bas file named sayhello.bas in it i copied and pasted: #include "Windows.bi" ' for e.g. MessageBox(0, "Hello string", "Hello title", MB_OK) Extern &...
by michaelleewebb
Jul 10, 2019 16:42
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

yes from this i learned alot https://www.freebasic.net/forum/viewtopic.php?t=2878 access and excel need dlls to be setup different more like this in the dll part: Function cube alias "cube" ( ByVal arg As Double) As Double Export cube=arg^3 End Function then in access, in a module more lik...
by michaelleewebb
Jul 10, 2019 15:16
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

tried placing the dll into c:\windows\system32 tried Private Declare Function AddNumbers Lib "mydll.dll" (ByVal x As Integer, ByVal y As Integer) As Integer tried Private Declare Function AddNumbers Lib "c:\windows\system32\mydll.dll" (ByVal x As Integer, ByVal y As Integer) As I...
by michaelleewebb
Jul 10, 2019 14:55
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

tried:
Private Declare Function AddNumbers Lib "c:\testdll\mydll" (ByVal x As Integer, ByVal y As Integer) As Integer

still no joy.
by michaelleewebb
Jul 10, 2019 14:06
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

Re: use freebasic dll with msaccess

moved both files to their own folder c:\testdll. i changed the msaccess code to: Private Declare Function AddNumbers Lib "c:\testdll\mydll.dll" (ByVal x As Integer, ByVal y As Integer) As Integer so there are 2 files in the testdll folder. dlltest.accdb mydll.dll the dlltest.accdb is the m...
by michaelleewebb
Jul 09, 2019 21:26
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 20227

use freebasic dll with msaccess

the problem here is probably sitting right in front of me but i don't see it. i'm using the example program found under the examples/dll progam. i moved the files to the c:\freebasic folder where the fbc.exe program sits. i compiled the mydll.dll file and compiled the test program. the test program ...

Go to advanced search