The system maintains a single system message queue and one thread-specific message queue for each graphical user interface (GUI) thread. To avoid the overhead of creating a message queue for nonGUI threads, all threads are created initially without a message queue. The system creates a thread-specific message queue only when the thread makes its first call to one of the User or Windows Graphics Device Interface (GDI) functions.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
The classic book on Compiler Contruction is Compilers by Alfred V. Aho, Ravi Sethi and Jeffrey D. Ullman. A more modern (and more advance book) is Advanced Compiler Design Implementation by Steven S. Muchnick. The first book talks about all aspects of developing a compiler. The second book just talks about code generation and optimization. Both books I feel are quite good.
I am also wondering why you are doing this. Is it part of a compiler? Feel free to ask a follow up question.
Then I would try to read the book: Compilers by Alfred V. Aho, Ravi Sethi and Jeffrey D. Ullman. I
also wondering what kind of optimizations are you trying to do. For example, contstant folding,
strength reduction and copy propagation come to mind.
I believe the first book I mentioned tells you what you need. The flow of control optimization is
elminiating jumps that go to other jumps. That seems straight forward to me. If you are looking
for some code to download where all this is implemented, I do not know of any such code.
On XP, sometimes it works and other times it doesn't resulting in an Error code 5 being returned from the ShellExecute (error code 5 = SE_ACCESS_DENIED) indicating that the OS refused to launch the default web browser.
From the MSDN documentation for ShellExecute, I noticed the bit about if what you are launching uses COM, you will need to initialize COM in your app before calling ShellExecute. When I add the CoInitialize(NULL) at app startup (and the CoUninitialize at the close), it fixes the problem and the page launches every time.
This is all great...but why does it work? the only thing I can come up with is that Windows uses COM to determine what app should open html files. Except that doesn't make sense as to why it sometimes works...
What am I missing?
Oh, and Vista/win7 works. This behavior is only seen on XP
I have 14 tables in MS Access. I need to insert the tuples in those tables. Is there any way to insert by SQL Commands. I used fprintf to print those tuples in text file. Now need to inset in my existing MS Access tables.
i have a simple database application,and it has 5 edit boxes.
Whenever the application starts i want the application to populate the editboxes with whichever record is available at the top of the table(i.e the first record in the table.)
I m using ADO.
How do i do this ?
Do i have to use a sql query for this or MoveFirst( ) function ??
As im using a Doc/View i have to insert this in view`s OnInitialUpdate() function.