|
|
I want to operate outlook 2007 on my app. (I'm using visual studio 2005 / WTL)
But, I couldn't find data about office automation, especially outlook.
do anybody help me?
please.
- Tristan -
|
|
|
|
|
what exactely are you trying to do ? the Outlook (Exchange) Server 2007 uses for example WebDav (being phased out) and now, Web Services to communicate with it - using these you can list emails, extract their attachments, do calendar type things
There is plenty of info on MSDN about this
'g'
|
|
|
|
|
Searching CodeProject for "outlook #import", I find several articles, including this one[^], which looks pretty good to me.
Just searching CP for "#import" yields several decent articles on Office automation - this one[^] is pretty good.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Hi All,
I have a tabbed control on my dialog and wish to add other controls to it on 2 different tabs. I can see that .Net framework has "System.Windows.Forms.TabPage" control that holds the page. I wish to know if their exists anything equivalent in ATL/WTL? I am restricted to use these (ATL/WTL). I read about CPropertyPage / CPropertySheet but I am not sure if that can created using dialog editor (I did not see the control).
How can I add controls using dialog editor on Tab Pages to the CTabCtrl?
Thanks and Regards,
Atul.
|
|
|
|
|
Try this[^] article.
L u n a t i c F r i n g e
|
|
|
|
|
Thanks for the reply. I have already read it. I am not sure if it clearly relates to my case.
For, it talks about creating property sheets/pages/wizard using program or single dialog based. I am talking about have a small CTabCtrl on the dialog apart from a list box and 2 check boxes on the dialog, etc. So it is not just showing one bunch of property pages. It has other things which I need to set on the Dialog editor interface.
|
|
|
|
|
Build dialog classes and add controls using the graphical editor in the usual manner so the classes reference descriptions with an .rc file:
class CStatusDlg : public CDialogImpl<CStatusDlg>,
{
enum { IDD = IDD_STATUS };
...
Within the .rc file IDD_STATUS (in this case) describes the the dialog
IDD_STATUS DIALOGEX 0, 0, 589, 442
STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CLIENTEDGE
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
PUSHBUTTON "Update",IDC_BUTTON1,77,247,51,15
GROUPBOX "Drive Faults",IDC_STATIC,17,16,163,221
....
Then create the tab control and the dialog windows and add the dialog to the tabcontrol (Other dialogs similarly created can be added to other tabs on the same control in the same manner).
CTabView m_tabView;
CStatusDlg m_StatusDlg;
....
m_tabView.Create(m_hWnd, rcDefault, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_CLIENTEDGE);
m_StatusDlg.Create(m_tabView.m_hWnd,rcDefault, NULL);
....
m_tabView.AddPage(m_StatusDlg.m_hWnd, _T("Status"));
....
|
|
|
|
|
Hi,
I'm marshalling some data in a timerproc thread using the GetInterfaceFromGlobal and Release function. However I noticed there is a high cpu usage when calling this function multiple times. Any ideas why this is happening?
Thanks
|
|
|
|
|
Hi,
I have for some time (ok, over a decade) had a gaping hole in my C++ knowledge, in that I don't really know much about the STL. I can use basic template classes and functions, but that's about it.
Now I need to learn about the STL, and there appears to be a dearth of good introductory books on the subject.
I have done a search on the forums, but the links seem to have expired.
So, does anyone have any recomendations for good introductions to the STL?
Thanks,
Richard
|
|
|
|
|
There is a useful link in the first answer to the question below this one, and another one here[^]. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
The Bible for stl is the C++ Templates the complete guide
|
|
|
|
|
And why are you telling me this?
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
I'm so sorry about that.
I am a new guy with passion in codeproject.
|
|
|
|
|
lisunlin wrote: I am a new guy
You've been a member of CP for 2 years 6 months!
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
OK. Look, I am really sorry for my mistake.
|
|
|
|
|
List of things wrong with your post:
- You replied to the wrong person
- The book you specified barely mentioned the STL…I suspect you meant another book by one of the co-authors. And yes, I have both books, I know what I'm talking about…
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
|
can body give a scenarios where u have to use vector ,map and list .itz confusing???
Thanks all
|
|
|
|
|
|
I am converting an old VB COM object (which I didn't write) to C++ using ATL. One of the methods, according to the IDL, takes an IDispatch* as a parameter and the documentation and samples for this method claim that you can pass either a string (which is the progid of an object that will be created and used by the control) or an IDispatch* to an object that has already been created. How on earth do I implement this in ATL?
For example, the IDL:
[id(1)] HRESULT Test(IDispatch* obj);
The samples (which are all JScript):
obj.Test("foo.bar");
or
var someObject = new ActiveXObject("foo.bar");
obj.Test(someObject);
To make matters even more bizarre the actual VB code that implements this method actually declares the 'obj' parameter as a string! However, it all seems to work.
Can you even pass a string to a COM method that takes an IDispatch* ? If so, can I determine that the IDispatch* is actually a string in my C++ ATL code? Even better, if it's an IDispatch that implements a specific interface I will want to call methods on it, or instantiate an object if it's a string.
I think that fact that JScript is in play here could be crucial (for example, JScript doesn't pass arrays as a SAFEARRAY and requires some magic to extract the length and the value of each element.)
|
|
|
|
|
Rob - firstly - can you examine the type library of the old VB object, to verify that the IDL declaration matches it? Use the OLE/COM object viewer that's part of the Windows SDK and use the File->View TypeLib... option to do that.
Because what your saying makes me think the method's parameter is actually a VARIANT ...that would certainly allow a client to pass string or IDispatch with impunity.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
That's what I concluded and have changed my ATL object to use a VARIANT with a check for VT_DISPATCH or VT_BSTR accordingly - and it works a treat.
|
|
|
|
|
Excellent! Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Hi All.
I develope an addon based on MotleyFool example. User must do login to that, for using its functionality. In IE 8 when adding new tab or opening new IE window, new login is need. This occures beacause new instance of this addon creates.
How I can share any instance between multiple tab or multiple IE win?
Excuse me for weakness of my language.
thanks a'lot.
|
|
|
|