Subj.
How can i declare my DLL with using an assembly in order to use it in single-threaded mode !?
Thanx for any answers!
:grin:
PS: if i post my message into wrong forum folder please talkt to me, where can i post messages with programming subject!
How can i declare my DLL with using an assembly in order to use it in single-threaded mode !?
Thanx for any answers!
:grin:
PS: if i post my message into wrong forum folder please talkt to me, where can i post messages with programming subject!
Hi Pablo
The Main section is the place.
I'll move it for you.
KetilO
The Main section is the place.
I'll move it for you.
KetilO
If you know how to program a basic Dll using assembly then that should do for what I think you mean by single threaded mode.
By default in assembly langauge you process will only have one thread unless you create a new one (with CreateThread).
By default in assembly langauge you process will only have one thread unless you create a new one (with CreateThread).
KetilO thanx!
Huh, i dont need created another thread neither from my DLL nor for my DLL. I want my DLL would be single-threaded only i.e. any process has as many instances of my DLL as threads are in the process.
Huh, i dont need created another thread neither from my DLL nor for my DLL. I want my DLL would be single-threaded only i.e. any process has as many instances of my DLL as threads are in the process.
Do you mean for each thread, the DLL has a completely different .data section?
I my DLL is in single-threaded mode, i can use a .data section for temporary data, but if my DLL is in multi-threaded mode, i must use stack for temporary data.
My DLL uses .data section for temporary data.
So, i must declare it as single-threaded DLL. C++Builder asks style (single-threaded or multi-threaded) of new DLL after beginning a new DLL project, but i dont know where it declares style of the DLL.
My DLL uses .data section for temporary data.
So, i must declare it as single-threaded DLL. C++Builder asks style (single-threaded or multi-threaded) of new DLL after beginning a new DLL project, but i dont know where it declares style of the DLL.