If I have ONE function in my DLL that uses say 5 others, and does a Thread Create InitThread(id) To g_Result for example, I can't pass parameters to it.
How do I make global variables in the DLL from the one function?
I've BEEN doing it like this:
Function One(Param as String) Export As Long
Thread Create InitThread(id) To g_Result
Function = g_Result
End Function
OK That works great, but what if I need to do this with a parameter between the functions?
Thread create only allows one long integer parameter...
Do I need to dupliate my values?
Ie, in teh DLL
DLL_St as string
Function One(St as String) Export as long
Thread Create InitThread(id) To g_Result
Function = g_Result
End Function
Function InitThread(ByVal x As Long) Export As Long
St = Mid$(St,1,4) 'or whatever
End Function
Is this St the same St that will be returned to the original function?
I'm slightly confused as to how the variables interact, my ASSUMPTION is that this is a new value of St and I will get a compile error if i do not declare it in the Thread function
Scott
-------------
Scott
mailto:[email protected][email protected]</A>
How do I make global variables in the DLL from the one function?
I've BEEN doing it like this:
Function One(Param as String) Export As Long
Thread Create InitThread(id) To g_Result
Function = g_Result
End Function
OK That works great, but what if I need to do this with a parameter between the functions?
Thread create only allows one long integer parameter...
Do I need to dupliate my values?
Ie, in teh DLL
DLL_St as string
Function One(St as String) Export as long
Thread Create InitThread(id) To g_Result
Function = g_Result
End Function
Function InitThread(ByVal x As Long) Export As Long
St = Mid$(St,1,4) 'or whatever
End Function
Is this St the same St that will be returned to the original function?
I'm slightly confused as to how the variables interact, my ASSUMPTION is that this is a new value of St and I will get a compile error if i do not declare it in the Thread function
Scott
-------------
Scott
mailto:[email protected][email protected]</A>
Comment