CreateThread problem (continued)

D

Domac

Hi,

What is with Addressof operator in Access97 ???

It causes an error ,BUT when I write "Addressof " it enlist all of my global
functions ????


How to "activate" addressof keyword?????


Please help!
 
D

Domac

Thanks Doug,

I've implemented AddrOf() function (from xls example) , function itself
works fine but , now i have following problem :

Following expresion don't seem to be legal in Access 97 :
hThread = CreateThread(ByVal 0&, ByVal 0&, AddrOf("MyFunc"), ByVal 0&,
ByVal 0&, hThreadID)

So I am using this :

hThread = CreateThread(0,0, AddrOf("MyFunc"),0, 0, hThreadID)

But when I execute code access crashes after returning from CreateThread
function.

What to do ?? How to achive my goal?

Please advise.

Thanks a lot!
Domac
 
D

Douglas J. Steele

What are you trying to accomplish? I don't understand the advantage of
trying to introduce multi-threading into Access (much less into such an old
version of Access) since you may not be able to ensure that updates are done
in the correct sequence.
 
D

Domac

If user-experiences are negative on subject i will solve my problems with
alternative solution.

I was using multithreading in c++ and realized some great advantages ...

Thanks a lot!

Domac
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top