Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check if file is executable Pin
vcplusplus12-Sep-03 2:48
vcplusplus12-Sep-03 2:48 
GeneralRe: Check if file is executable Pin
David Crow12-Sep-03 7:31
David Crow12-Sep-03 7:31 
GeneralRe: Check if file is executable Pin
David Crow12-Sep-03 7:33
David Crow12-Sep-03 7:33 
GeneralThreads and object Pin
El'Cachubrey12-Sep-03 1:07
El'Cachubrey12-Sep-03 1:07 
GeneralRe: Threads and object Pin
Dangleberry12-Sep-03 1:36
sussDangleberry12-Sep-03 1:36 
QuestionWhere can I find a table of all functions inside in kernel32.dll? Pin
Tommy Svensson12-Sep-03 0:34
Tommy Svensson12-Sep-03 0:34 
AnswerRe: Where can I find a table of all functions inside in kernel32.dll? Pin
El'Cachubrey12-Sep-03 0:53
El'Cachubrey12-Sep-03 0:53 
AnswerRe: Where can I find a table of all functions inside in kernel32.dll? Pin
Mike Dimmick12-Sep-03 2:15
Mike Dimmick12-Sep-03 2:15 
The reason for the restriction is that you don't know what order the loader will decide to initialise DLLs in, and you shouldn't use any DLL that hasn't been initialised.

The only DLL it's always safe to use at this point is kernel32.dll, because that's where the Win32 bit of process setup lives - it's guaranteed to be initialised first.

A large amount of the GUI code lives in User32.dll and Gdi32.dll, so you shouldn't do what you're proposing to do. If you must do it, delay it until some other function in your DLL is called. Personally I would advise not doing it at all.

For information on how the .NET Framework breaks these rules, and the impact that has, read Chris Brumme's blog entry[^] on the subject.
AnswerRe: Where can I find a table of all functions inside in kernel32.dll? Pin
David Crow12-Sep-03 2:52
David Crow12-Sep-03 2:52 
Generalhelp - mfc, and entering text Pin
lxxrya00112-Sep-03 0:14
lxxrya00112-Sep-03 0:14 
GeneralRe: help - mfc, and entering text Pin
valikac12-Sep-03 6:04
valikac12-Sep-03 6:04 
GeneralRe: help - mfc, and entering text like on paint Pin
lxxrya00112-Sep-03 11:13
lxxrya00112-Sep-03 11:13 
Generalproblems with textfile and dialog Pin
coda_x11-Sep-03 23:13
coda_x11-Sep-03 23:13 
GeneralRe: problems with textfile and dialog Pin
David Crow12-Sep-03 2:50
David Crow12-Sep-03 2:50 
GeneralProcess command line Pin
confalonieri11-Sep-03 22:54
confalonieri11-Sep-03 22:54 
GeneralRe: Process command line Pin
valikac12-Sep-03 6:09
valikac12-Sep-03 6:09 
GeneralAnother problem with memory Pin
abhi197111-Sep-03 22:44
abhi197111-Sep-03 22:44 
GeneralRe: Another problem with memory Pin
Mike Dimmick12-Sep-03 2:40
Mike Dimmick12-Sep-03 2:40 
GeneralRe: Another problem with memory Pin
David Crow12-Sep-03 2:44
David Crow12-Sep-03 2:44 
GeneralRun a function every 100ms Pin
kurnaziso11-Sep-03 22:41
kurnaziso11-Sep-03 22:41 
GeneralRe: Run a function every 100ms Pin
Dangleberry11-Sep-03 22:58
sussDangleberry11-Sep-03 22:58 
Generalplacement new Pin
Dangleberry11-Sep-03 22:26
sussDangleberry11-Sep-03 22:26 
GeneralRe: placement new Pin
Dangleberry11-Sep-03 23:55
sussDangleberry11-Sep-03 23:55 
GeneralC++ editor Pin
Jerome Conus11-Sep-03 22:06
Jerome Conus11-Sep-03 22:06 
GeneralRe: C++ editor Pin
berndg12-Sep-03 0:19
berndg12-Sep-03 0:19 

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.