|
I am looking for a book on ATL.
It must:
1.) Teach how to use ATL. Not just a browse through of ATL concepts/technologies, but in
depth explanation, expounding, and analysis on usage of ATL.
2.) Explain the workings of ATL.
In short I am looking for an ATL version of Bjarne's "The C++ Programming Language"
Can any of you guys suggest what should I read?
I am a Win32/MFC programmer. I think - am I right? - that common controls were implementated as ActiveX controls. If it is, can any of you guys provide/suggest an article/book that explains how the Redmondtians did this. Basically how an application through the Win32 api instantiate and interact with the common controls (Not an explanation of windows messaging or message routing, but on how message routing was implemented in Win32 api).
|
|
|
|
|
These are two excellent ATL books.
Developer's Workshop to COM and ATL 3.0 by Andrew Troelsen
ATL Internals by Brent Rector, Chris Sells, and Jim Springfield
Kuphryn
|
|
|
|
|
|
I'm fairly new to COM/ATL and found a couple tutorials at MSDN that I wanted to do. But they are all designed for VS7. The wizard looks different and has a tab for stock properties, interfaces, appearance. But I'm not sure how to accomplish the same things in VC++6. Is there a comprehensive article and what I have to do to get the same results as the vs7 wizard without installing VS7? Thanks for the feedback
paully
|
|
|
|
|
I'm trying to register an atl com object.
The self-registration succeeds in windows NT but not in win98.
http:??iesharp.8163.com
|
|
|
|
|
Are all of the required DLL's for the ATL object in the PATH variable for both operating systems?
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
YES
sdfsdfffffffffffffffffffffffasdf
|
|
|
|
|
When you use events with ATL, the default implementation of the Fire_XXX function is to to loop thru the clients list and invoke the event. the problem is that the client might hang when the event is called, so it will not return, and the hole atl server is stuck until you release the client.
This is not an acceptable situation. So what I've done is a try to do the invokation of the event in a diffrent thread for each client. It works most of the times, but some times it hangs the server, as if i got a dead lock.
So I figured, I'm probably not the first one to try to do it. Why not use a working implementation?
So everyone that have an idea / code of what can I do to make the invokation of the event in a diffrent thread for each client, please post me back.
thank you.
Arik Poznanski
COM is NOT dead.
|
|
|
|
|
see to this one: Q157437 Fireev.exe Fires Events from a Second Thread
it's for MFC , but it's a good starter.
The whole thing lies in fact, that you have to marshall the 'callback' interface when you pass it between threads.
If you're interested, sometime ago we did developed a specialized version of atlcom.h header, that does it automatically - you just have to include atlcommt.h instead the original atlcom.h . But it's for VC6 and I didn't test it on the new versions yet. But might be useful as source to look into.
|
|
|
|
|
Hey..
since I work with VC6, it would greatly help if you give me the atlcommt.h file, and some info about what you have changed.
mail me please at arikp@hotmail.co.il
and thank you very much..
Arik Poznanski
|
|
|
|
|
|
Hello ppl, i was going through Nishant's winsock tutorials and was trying them with WTL. In a simple console application, including winsock2.h works like a charm. but when i try it with WTL appwizard generated code, i get a huge list of 114 errors!!! (mostly type/macro redefinition errors). But if i change it to winsock.h, it works. i have included ws2_32.lib in my project settings also. can anyone give me a clue on this? thanks in advance.
I am using VC++ 6.0 with February 2003 platform sdk and wtl 7.0 on WinXP Pro.
-Tareq
|
|
|
|
|
Can anyone suggest the easiest way to print html documents from an ATL applications?
The computer will have Internet Explorer installed, can I use it to do all the work? And just specify the printer and document name?
Joanne;)
|
|
|
|
|
Hello Dears
I'm student. I've to make a plug-in for MS Outlook. This plug-in will take a particular date, and will delete all the attchments of the e-mails which are older than that specific date.
Kindly guide me for the task. Provide/guide me some sample code if possible. I'll be very grateful to you.
Waiting for your kind response.
Atif
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your Beliefs for they will determine your destiny.
|
|
|
|
|
This article[^] is a good starting point.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hi
I have created a ATL COM dll.The component will be used in WINDOWS 2000 machines which will not have Visual Studio.What are the ATL com dlls that I have to distribute along with the COM component?Please help.
Rgds,
venkatesh
|
|
|
|
|
Distribute the ReleaseMinDepdency build and you won't need any ATL or CRT DLLs. This is the preferred way since the situation with ATL.DLL is nasty (diff builds for 9x/NT, not 100% backwards-compatible)
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--=
NO CARRIER
|
|
|
|
|
I am trying to time a function so that when the function
completes I can get information regarding how long the
function took to complete a calculation. Currently I
am using this method:
<code>
clock_t start, finish;
double solver_time;
start = clock();
finish = clock();
solver_time = (finish - start) / static_cast<double>(CLOCKS_PER_SEC);
</code>
whereby I go on to report the time to the user by appropriately
dealing with solver_time.
Now, I am finding that for fast functions, this does't accurately
give an indication of the time (ie: sometimes it says 0 sec,
sometimes it reports a fraction of a second for the same
function as I presume I am reaching the accuracy limit of
the machine.
My question is: is there a better way of doing this?
|
|
|
|
|
You'll need a timer with a resolution less than 1 second. There is GetTickCount() which returns the time in milliseconds, however its resolution isn't 1 ms, it's dependent on a hardware timer. But give it a shot.
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--=
NO CARRIER
|
|
|
|
|
If you need really good timings, you can always use QueryPerformanceCounter . Not guaranteed to be implemented on all hardware/in all HALs, but I've usually found that it's available.
GetTickCount 's resolution on Windows NT/2000/XP/2003 (bleargh, that's getting worse...) is dependent on the HAL installed on your system. I seem to recall that there's some way to modify what this resolution is, but can't currently find it.
|
|
|
|
|
|
Thanks guys. Went with your suggestions - works well.
|
|
|
|
|
...instead of a dialog. I can't get it working and it's seriously pissing me off! Could someone give me some lines of code on this... or tell me if its even possible or if I'm just wasting time here...
|
|
|
|
|
Come on please anybody, I'm begging you! I'm certain someone has tried (done?) this before... please..
|
|
|
|
|
How can i make the dockable windows just like the Developer studio has?
|
|
|
|