|
Thanks to both of you - the code sample is excellent and meets my reqs perfectly. Ultimately the data will come from an SQL server which can dump out the data in XML so we'll read in eventually from that.
Thanks again.
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
|
|
|
|
|
Hello,
how to import dll created with MFC into WTL project? The problem is with COleDateTime class which require ATLComTime.h to be included. But ATLComTime.h defines some types like CString which are also part of WTL library. It causes ambiguity problems.
How to solve this problem?
|
|
|
|
|
|
Hello everyone,
I want to create an ATL Dll and want to
Have a good article about it?
Any Ideas or links?
Best Wishes,
Thanks.
|
|
|
|
|
|
I have an ATL Server application (combined DLL), with server mappings set to all the extentions available. How do I, for example, handle requests for Image.jpg? I need to build a custom security system, and this is a very important aspect. So how to I catch all the extentions and call a specific function on their request?
|
|
|
|
|
During the work i have provided the task for Creating the
#1 evaluation version Component or ActiveX Dll
#2 Developer Version DLL
#3 Runtime DLL.
i have almost sorted out First task By producing a Modeless Atl dialog box .
but i still can't understand what about Developer DLl and Runtime Dll ,as i was told that you have to stop runtime dll to connect to IDEso that only application can use that.
can any body provide me any good pointer towards it.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I have create a atl propertypage, and use OleCreatePropertyFrame to create a framework for it. When I open this propertypage, press F1 on it, no help message is appears, why? And how can I let this function work, who can help me?
I have use Spy to monitor the message, the framework has received this WM_HELP message. If I add one EDIT in the propertypage and set the focus to it when open this propertypage, press F1 can get the help message, why this occurs?
Thanks very much.
I had written n bugs today.
|
|
|
|
|
I know HOOK can resolves this issue, but is there any other way to resolves this?
|
|
|
|
|
I added CAxDialogImpl to an ATL project using (insert -> new ATL object -> misc ... -> dialog).
I also added Web Browser ActiveX control to this dialog. I tried to catch Web Browser's events by simply going to the dialog box resource and right-clicking 'events' but I didn't work. For some reason I was not able to catch any of the Web Browser events.
Then, I tried to convert the dialog into a COM object by adding CComObjectRootEx, CComCoClass, IDispEventSimpleImpl ... but it didn't even compile!
How do I implement CAxDialogImpl derived control that hosts a web browser and sinks its events?
THANK YOU VERY MUCH, any help will be appreciated
andreytab@hotmail.com
|
|
|
|
|
|
Hi,
I'm new to COM and ATL so I think this is a simple question!
How can I add my structs and enums to my type library?
I'm using the export attribute like this:
<br />
[export]<br />
typedef enum<br />
{<br />
MyEnumValue = 1,<br />
}MyEnum;<br />
this creates the enum in the auto generated idl file, but doesn't show up in the type library.
What am I missing?
Thanks!
|
|
|
|
|
I had this problem about a month ago as well.
I found a way around it by actually creating a method that has the enumeration variable as a parameter (but actually does nothing). The presence of a method that uses the enumerator seem to export it to the final library.
This is definitly not a solution, just a workaround, and I have no idea why this works; so If anyone wants to enlighten me..feel free.
I Dream of Absolute Zero
|
|
|
|
|
Do you need to put your struct and enums under "library " section of you IDL as well ???
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
(My COM Blog - http://lovecom.blogspot.com)
modified 21-Apr-21 21:01pm.
|
|
|
|
|
When I run my WTL program I get a resource leak in atlframe.h line 1225:
HWND CreateEx(HWND hWndParent = NULL, ATL::_U_RECT rect = NULL, DWORD dwStyle = 0, DWORD dwExStyle = 0, LPVOID lpCreateParam = NULL)
{
const int cchName = 256;
TCHAR szWindowName[cchName];
szWindowName[0] = 0;
#ifndef _WIN32_WCE
#if (_ATL_VER >= 0x0700)
::LoadString(ATL::_AtlBaseModule.GetResourceInstance(), T::GetWndClassInfo().m_uCommonResourceID, szWindowName, cchName);
HMENU hMenu = ::LoadMenu(ATL::_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(T::GetWndClassInfo().m_uCommonResourceID));
#else //!(_ATL_VER >= 0x0700)
::LoadString(_Module.GetResourceInstance(), T::GetWndClassInfo().m_uCommonResourceID, szWindowName, cchName);
HMENU hMenu = ::LoadMenu(_Module.GetResourceInstance(), MAKEINTRESOURCE(T::GetWndClassInfo().m_uCommonResourceID));
#endif //!(_ATL_VER >= 0x0700)
I'm using WTL 7.5 and ATL 3.0. Is the leak because the two are incompatible? If so, how do I update ATL? I only found ATL 2.0 on the MS web site.
-thanks.
|
|
|
|
|
What is RPC? How we implement that?
|
|
|
|
|
RPC = Remote Procedure Call.
How you implement it is up to you. You can use DCOM or CORBA a google search will give you tons of information on both of these RPC implementations
Forever Developing
|
|
|
|
|
Will anybody explain me the difference between COM and ATL
|
|
|
|
|
ATL is merely a template class library designed to make COM development easier or at least quicker - does most of the boilerplate code for you.
Kevin
|
|
|
|
|
Kevin McFarlane wrote:
ATL is merely a template class library designed to make COM development easier or at least quicker - does most of the boilerplate code for you.
Please Don't Mind,from whatever I know, Com is mere Specification and Win32api are Application program interfaces.
you can't treat Com and Win32 to MFc and ATL
|
|
|
|
|
hmm...
The same difference that is between programming in Platform SDK and MFC
ATL is a set of classes used to make COM Programming *easier* (some purists might disagree and call ATL Spaghetti programming)
hope this sheds some light on the subject, get a good book or read some articles
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
COM is a specification for creating binary reusable components.
To develop these components, You implement COM specification in a programming language like C,C++,JAVA,VB, etc
ATL is template library that helps you code/develop COM components faster. It uses Templates extensively.
I hope this helps
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
(My COM Blog - http://lovecom.blogspot.com)
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hi,
I have an instance of a CTreeViewCtrl. I initialise it like so:
CTreeViewCtrl tree = GetDlgItem(IDC_TREE1);
I have set show "Check Boxes" to true for my tree in the resource editor and they are displayed. However when I add an item and then set the check state like so:
HTREEITEM item = tree.InsertItem(name, TVI_ROOT, TVI_LAST);
tree.SetCheckState(item, TRUE);
The change isn't shown in the GUI. Is there something else I have to do?
I am using VC7 and WTL 7.5 build 4291.
Thanks in advance.
|
|
|
|
|
This is a problem I remember having a while back, so I checked out some of my old code. I found this in one of my classes:
<br />
<br />
m_myTreeCtrl.ModifyStyle(TVS_CHECKBOXES,0);<br />
m_myTreeCtrl.ModifyStyle(0,TVS_CHECKBOXES);<br />
<br />
... later on in code ...<br />
<br />
m_myTreeCtrl.SetCheck(hTreeItem);<br />
<br />
Try using the ModifyStyle fix and see if it works for you.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
That worked perfectly. Thanks a lot for that, it was giving me a real headache!
|
|
|
|