|
The question is why would you need to ? ATL is designed to be lean, why fatten it up with MFC ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hello,
I am trying to write an application in WTL with CListView.
But that CListView Can not implement Extended List-View Styles
:LVS_EX_FULLROWSELECT.
Could some one send me a link or code to create ListView that LVS_EX_FULLROWSELECT in WTL.
Thanks in Advance
dkwang
|
|
|
|
|
From my WTL code, m_listctrlData is a CListViewCtrl.
m_listctrlData.SetExtendedListViewStyle(LVS_EX_FULLROWSELECT);
hope this helps,
Michael
|
|
|
|
|
|
Dear friends
Hi
Will u please any one help me how to select/access a particular text using drag-mouse movement.as an output display file i want to use this selected text.how it is possible.Please help me,i am new to VC++,so kindly help me in getting the solution.
Thanking you in advance.
Bye
Binay
|
|
|
|
|
Is there a standard way to add buttons to a menu bar like outlooks vertical one?
and if so could someone tell me where i can find more info on using this type of toolbar
|
|
|
|
|
I created dll by MFC AppWizard (dll).-> Dialog based
Now I want to provide it for another language.
I saw that I can adding class type : ATL Object to my project and the wizard adding for me all the support for ATL.
1. Is it can help me to match my dll to another language ?
2. If yes , How ? What I have to do in this ATL so that every developer(vb, delphi atc) will can implement with my dll my dialog ?
|
|
|
|
|
I don't believe adding ATL support will fix your problem, you're probably better off building an IDispatch implimenting ATL dll from scratch.
I could be wrong, it just seems to me that adding ATL support still means you need to impliment all the interfaces you want anyhow, so why not start again ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
because I dont success understand how to do it !!!!
What is IDispatch ?????
When I create by the wizard project ATL COM I dont know how to convert my code in mfc to the strange language( IDL ??) that ATL uses.
Please HELP ! It is very urgent !!!!!!!
|
|
|
|
|
Create an ATL object such as MyDialog with the Wizard.
Add a method to the interface such as ShowDialog
Inside the ShowDialog function, call your dialog
m_MyDialog.DoModal()
Declare an instance of m_MyDialog in the class definition.
hope this helps,
Michael
|
|
|
|
|
Sorry, but it's clear you don't know enough about COM in order to write a COM dll. Adding ATL support allows you to write ATL code, it does not link everything up magically for your dll to become a COM object.
IDispatch is an interface derived from IUnknown, which is the base interface for all COM objects. IDispatch is the interface for automation objects ( those visible to VB, etc ). IDL is the language use to define interfaces ( that's what the I stands for ), and you can't convert MFC to IDL, they are different beasts. Again, you're in real trouble if you need to achieve this in a hurry, you cleary do not have the skills you need.
I recommend you buy some books on ATL. I don't know that much about it myself, but you clearly are hoping for a magic bullet, and you aren't going to find it in the solution you're looking for, sorry.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
What you need in your dll are COM interfaces. These will allow you to access the controls methods and properties from other applications.
The best way to do this using MFC is to start with a different project type, MFC ActiveX control. Otherwise use Class Wizard to add automation interfaces. Go to the Automation tab. Choose Add Class, create your class and click the Automation radio button. This will add, not only a new class, but an interface. When you look in Class View, you will see CMyNewClass and IMyNewClass.
Thanks for the help,
Bill
|
|
|
|
|
Can someone tell me how to get CListCtrl::SetBkImage() to 'actually' work??? I've been messing with it for quite a few hours and just can't seem to get it to work. TIA
Kevin Power, Jr.
|
|
|
|
|
|
Can someone tell me how to get CListCtrl::SetBkImage() to 'actually' work??? I've been messing with it for quite a few hours and just can't seem to get it to work. TIA
Kevin Power, Jr.
|
|
|
|
|
Hi everyone,
I was wondering if anyone could tell me how i would go about implementing a Napster / Scour Exchange like interface for my app.
The app isnt a file sharing program, i just need to know the best way to have multiple panes of information that can be activated using a button. I think napster used some sort of embedded property sheets or something.
The app needs to be resizable. ie look like a normal SDI/MDI prog and each view will be a listview or a html view or something else.
What i'm really aiming for is something like the Scour Exchange client which had an Outlook like toolbar down the side and each icon in the toolbar would activate a different view on the right hand pane.
Thanks for any help!
Ash
|
|
|
|
|
Napster actually uses a tab contol, but with the styles set so that the control shows buttons instead of tabs.
--Mike--
http://home.inreach.com/mdunn/
"The Earth is doomed." -- Rupert Giles
your with and
|
|
|
|
|
It is quite shame for me but here is my problem. I had been using SDK for some time. However, I am still quite confuse on what does SDK(software development kit) stand for. ie:
1. what library package should belongs to SDK?
2. does windows.h and stdio.h belongs to SDK?
thanks a lot.
|
|
|
|
|
No wonder you're confused - you've confused me...
SDK stands for software development kit. Lots of people release SDK's, for example Flash has one.
You're talking about the Windows SDK I presume - how do you mean belongs to the SDK ? Everything the SDK installs 'belongs' to it. Do you mean .lib files ? I'm lost.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I am using microsoft visual c++. I am confusing since from the documentation in msdn cd, they place the function like MessageBox() under SDK catagory while printf() under another category.
|
|
|
|
|
Ah... Unlike C# or Visual Basic, C++ is a language that exists on multiple platforms. It was written by Bjarne Stroustrup, and if you program C++, you should own his books.
printf is part of the C++ standard, and so is applicable to all implimentations of C++. MessageBox() is specific to Windows - a system running C++ code needn't even have a display, let alone a GUI, and only output of text is supported in the standard. So the differentiation you notice is between M$ specific code and code generic to the underlying language.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Actually printf() is part of the C standard RTL.
|
|
|
|
|
Quite possibly
I've never done any straight C, so I really have only vague ideas what is C and what is C++.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I've never done any straight...
There is a joke in there somewhere...
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
how can i add a version number to the CDocument class?
ZHANGYIFEI
|
|
|
|