Hi
When I was using v4.8 I could get multiple threads working. When I upgraded to v4.9.0 it stopped working.
In a function I use this: C_EXTERNAL beginthread '_beginthread' (REF, VAL, REF):Integer*4
and then call it with: iNoErrorL = beginthread(iCalcSidesThreadTwo, 0, 0)
The function has the form: Integer*4 Function iCalcSidesThreadTwo(iDummyP)
Integer*4 iDummyP
Return
End Function
In the Project Explorer References I have: KERNEL32.LIB LIBCMT.LIB msvcrt.dll MSVCRT.LIB SIMPLE.DLL
I have no idea as to whether this is correct, I just bunged in what I need for my software. I have taken msvcrt.dll out as it wasn't in my Plato 2 project, but it makes no difference.
When I used Plato 2, under Options → Default Libraries, I had: MSVCRT.LIB LIBCMT.LIB KERNEL32.LIB MPR.LIB
The thread is not called as I have output to the screen that does not appear. I changed nothing but upgraded from v4.8 to v4.9.0.
I don't get any errors/warnings from the compiler to say that the libraries could not be loaded etc. If I use project/properties/configuration properties/compiler options/source/import libraries, I get the error: 'unable to import library msvcrt.lib' or 'unable to import library msvcrt.dll'
depending on what I try to set.
When attempting to use project/properties/configuration properties/compiler options/source/import libraries, I notice the use of the word STDCALL. Does that mean I need to find another way of using C_EXTERNALs?
Please could anyone shed some light on the matter, thanx.
Bri