Search found 23 matches

by michaelleewebb
Jul 12, 2019 19:24
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

yes i was taught that before but forgot to apply it. thank you mrswiss.
by michaelleewebb
Jul 12, 2019 17:42
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

"My old Office 2003 copy still works perfectly. Poor Micros**t, nobody wants to buy their new toys" it would help if they would add new useful features to msaccess. change line from: Function SayHello(text As string ptr) As integer EXPORT to: Function SayHello(byval text As ZString ptr) As...
by michaelleewebb
Jul 12, 2019 15:29
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

" I can now see a plague of FB dlls for MS Access coming over the horizon"
tcp without mscomm, modbus, mqtt,email sent from within msaccess. would be a good start.
by michaelleewebb
Jul 11, 2019 19:31
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

good to know mrswiss, i think i've got the numbers thing figured out. i'm looking a strings now. i see pointers (shudder). i used to use them back in the turbo c 2.0 days. lots and lots of fun. do you know a way around using pointers ?? i tried changing this line: Function SayHello(text As string pt...
by michaelleewebb
Jul 11, 2019 18:40
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

mrswiss, you were correct about integers being different sizes in msaccess and fb. i went back to the addnumbers program. if i declare in fb: Function AddNumbers(byval x as integer, byval y as integer) As integer EXPORT and then declare in msaccess: Declare Function AddNumbers Lib "c:\freebasic...
by michaelleewebb
Jul 11, 2019 18:07
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

from my newbie point of view the problem was with the bits and btyes. as long as i was compiling a 64 bit dll and using msaccess in 32 bit then things were never going to work out. from here i would like to take over myself until i hit another snag. it seems i need to learn how to pass and receive s...
by michaelleewebb
Jul 11, 2019 17:59
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

jj2007, that worked, downloaded freebasic 32 bit and created a new folder called c:\freebasic32. created dll add to it: #include "Windows.bi" Extern "Windows-MS" Function SayHello(text As string ptr) As integer EXPORT return MessageBox(0, text, "Gimme an answer:", MB_YE...
by michaelleewebb
Jul 11, 2019 17:42
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

error code is 48.
by michaelleewebb
Jul 11, 2019 17:41
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

hmmm, i running freebasic 64 bit verison. should i change to 32 bit verison ??
by michaelleewebb
Jul 11, 2019 17:37
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

hummm, am running 64 bit windows 7. 32 bit msaccess (office 2007)
by michaelleewebb
Jul 11, 2019 16:16
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

when i type this: Declare Function addnumbers Lib "C:\testdll\newaddnumbers.dll" Alias "addnumbers" (ByVal x As Integer, ByVal y As Integer) As Integer and press return, msaccess automatically changes it to: Declare Function addnumbers Lib "C:\testdll\newaddnumbers.dll"...
by michaelleewebb
Jul 11, 2019 16:11
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

msaccess understands "integer". is 2 bytes long. we have another call "long" is bigger and can contain a higher number. we have "double" for floating point. we also have another one called single i believe, i never use it. "pedantic" mode ?? i had to look that...
by michaelleewebb
Jul 11, 2019 15:59
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

srvaldez,
in msaccess if the function name and the alisa is the same msaccess automagicly removes the alisa statement
by michaelleewebb
Jul 11, 2019 15:30
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

i tried this: created new bas program called newaddnumbers.bas this is the code: #include once "windows.bi" ' To access Windows data types Extern "Windows-MS" Function addnumbers(byval x as integer, byval y as integer) As integer Export function = x + y End Function End Extern co...
by michaelleewebb
Jul 11, 2019 15:05
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 13975

Re: use freebasic dll with msaccess

mrswiss, i agree. i'm going to go back to my "addnumbers" example and try to apply what ive learned.

Go to advanced search