Click here to Skip to main content
15,916,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRGB (for Christian) Pin
24-Oct-01 3:42
suss24-Oct-01 3:42 
GeneralRe: RGB (for Christian) Pin
Christian Graus24-Oct-01 10:33
protectorChristian Graus24-Oct-01 10:33 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 10:59
suss24-Oct-01 10:59 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 11:01
suss24-Oct-01 11:01 
GeneralMenu in a tree control Pin
24-Oct-01 2:55
suss24-Oct-01 2:55 
GeneralRe: Menu in a tree control Pin
Tomasz Sowinski24-Oct-01 3:29
Tomasz Sowinski24-Oct-01 3:29 
Generalabout LoadLibrary Pin
Maer72724-Oct-01 2:31
Maer72724-Oct-01 2:31 
GeneralRe: about LoadLibrary Pin
Tomasz Sowinski24-Oct-01 3:40
Tomasz Sowinski24-Oct-01 3:40 
'Explicit' loading means that your app uses LoadLibrary[Ex] to bring a DLL into process adress space at some point of execution. You have to get the address of exported procedure[s] later with a call to GetProcAddress.

OTOH, 'implicit' loading (for which __declspec(thread) works correctly) means that system loader will load .dll automatically at the program startup --and-- it will resolve references to exported functions. You just need to link with import library to make this happen. No LoadLibrary, no GetProcAddress.

Now, the __declspec(thread) problem - there's some magic going on during the program startup. The C Runtime creates some thread-local storage space and puts the variables marked as __declspec(thread) there. This happens when all implicitly loaded .dlls are already in place. If you load .dll explicitly later with __declspec(thread) variables, there may be no space left - the C runtime doesn't know you've loaded some .dll. In such case, you have to use TlsXXX functions provided by Windows 'manually'.

Tomasz Sowinski -- http://www.shooltz.com
Generala simple problem about Dll Pin
Maer72724-Oct-01 2:27
Maer72724-Oct-01 2:27 
GeneralRe: a simple problem about Dll Pin
Steen Krogsgaard24-Oct-01 4:36
Steen Krogsgaard24-Oct-01 4:36 
Generaljust a test. don't bother.... Pin
Gilbert Jeiziner24-Oct-01 2:02
Gilbert Jeiziner24-Oct-01 2:02 
GeneralWhy do not use SetTimer() in CMyView:CListView Pin
24-Oct-01 0:42
suss24-Oct-01 0:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Masaaki Onishi24-Oct-01 4:31
Masaaki Onishi24-Oct-01 4:31 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Steen Krogsgaard24-Oct-01 4:42
Steen Krogsgaard24-Oct-01 4:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Tomasz Sowinski24-Oct-01 6:26
Tomasz Sowinski24-Oct-01 6:26 
QuestionMul64 function, how to include? Pin
24-Oct-01 0:37
suss24-Oct-01 0:37 
AnswerRe: Mul64 function, how to include? Pin
Tomasz Sowinski24-Oct-01 0:42
Tomasz Sowinski24-Oct-01 0:42 
GeneralRe: Mul64 function, how to include? Pin
24-Oct-01 23:22
suss24-Oct-01 23:22 
GeneralRe: Mul64 function, how to include? Pin
Alvaro Mendez26-Oct-01 11:53
Alvaro Mendez26-Oct-01 11:53 
GeneralDistributing Fonts Pin
David Lantsman24-Oct-01 0:05
David Lantsman24-Oct-01 0:05 
GeneralRe: Distributing Fonts Pin
#realJSOP24-Oct-01 0:55
professional#realJSOP24-Oct-01 0:55 
GeneralRe: Distributing Fonts Pin
markkuk24-Oct-01 1:19
markkuk24-Oct-01 1:19 
GeneralProvide ATL/DLL to Delphi programmer Pin
mimi23-Oct-01 23:51
mimi23-Oct-01 23:51 
GeneralLoading Icons Pin
Drawil23-Oct-01 22:56
Drawil23-Oct-01 22:56 
GeneralRe: Loading Icons Pin
Eugene Pustovoyt24-Oct-01 0:01
Eugene Pustovoyt24-Oct-01 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.