|
Hi,
I am interested in creating an Automation Client similar to Outlook.
Outlook exposes the IDTExtensibility2 interface via which we can connect to Outlook and it also exposes methods and properties via which we can use Outlook's functionality. These methods and properties are in mso9.dll and msoutl9.olb.
Could someone explain how to go about creating my own IDTExtensibility2 Interface for my application and how do I separate the COM portion in a separate dll. Also, what is an .olb file. It it similar to a .tlb file?
Thanks.
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
What's the maximum item count in 98. my need is to load 70000 items. it's fine 2000 and higher os. in 98 31,XXX is loaded. any one help me out.
thanks in advance!
Have A Nice Day!
Murali.M
|
|
|
|
|
Why you want to insert 70,000 to combobox ?
|
|
|
|
|
The number is 32767 (16 bit signed int maximum value).
Look at LB_INITSTORAGE Message in MSDN[^].
It refers to ListBoxes, but I think it also applies to ComboBoxes.
hope that helps
-- modified at 4:44 Saturday 6th January, 2007
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You can't store 70000 items. (Anyway is impractical to let user choose from 70000 items in a combobox - that's a lot of unique keys by the way).
You may consider using a virtual listbox or virtual listview to store data.
Alternatively, you may consider usage a "view|scroll" mechanism to store and display (i.e. your combo will display only a part of data - view - that will scroll depending on what user does in combo); possibly a dictionary-oriented will do it, or using partitions of data. Good luck anyway.
Nuclear launch detected
|
|
|
|
|
The Maximum Number of Items you can store in a Combo box = 32767. This has nothing todo with WIN98, if it is the Not same in XP or 2000 etc that's a fluke. (Never had occasion to try it)! But Why that much Data! Think about Usability! If it is that large( Like for arguments sake, you are preparing an alphabetic Telephone List for the Entire World, you should carry out Pre-Selection, e.g.Country,County, Town, combined with Other Criteria.) NoOne is going to scroll up a list of 70000 entries. If at the other hand you consider it essential to have that nymber of entries, and if you are aware that it runs on those quoted systems, you specify same under 'Minimum System Requirements'
LateNightsInNewry
|
|
|
|
|
Hi,
I am using Winsock2.0 and as seen in help everywhere, for using SSL with it, the function 'setsockopt' can be used with certain flags SO_SECURE, SO_SEC_SSL etc.
But on WindowsXP, in header file Winsock2.h, there is nothing like these flags.
Can't I do SSL with Winsock2.0 on Visual Studio6.0
Is there any other way?
Regards
|
|
|
|
|
SSL isn't supported on Windows sockets.
You can use Security Support Provider Interface (SSPI)[^] for SSL,
although it doesn't come with windows (the SSL part I mean).
So, yes you can do it but it's not included with Windows.
Mark
|
|
|
|
|
Hi All,
As i installing the Image Magic Dynamic library of Binary release and i had create a vc++ project,which has one dialogbox with in one button like magick,when i clicked the button a below block of code will be execute...
void SampleDlg::Onmagick()
{
Image image;
try {
image.read( "c:\\girl.gif" );
image.write( "c:\\x.gif" );
}
catch( Exception &error_ )
{
MessageBox(error_.what());
}
}
I got one runtime error when the image.read() will be execute...
Unhandled exception at 0x10023955 in ImgPros.exe: 0xC0000005: Access violation writing location 0x78eed7c9.
Now i using visual studio 8.
Anyone knows the reason of this error help me..
Thankx more in advance....
-- modified at 0:48 Saturday 6th January, 2007
|
|
|
|
|
Are you sure you enter correct path and if you use of other files like bmp did you get this error?
|
|
|
|
|
Hi whitesky,
yah i am sure that just i read a .jpg image. I think here is the problem that is InitializeMagic() function.
why can we call this funtion and which path is send to this function as a parameter...
But one thing i had successfully run on the console application of win32, within the same code....
So, what is the real problem...please tell me...
|
|
|
|
|
I didnt use of this library but check return values of InitializeMagic
|
|
|
|
|
If you just want to read gif, jpg, etc, use GDI+, it's far less painful and far better documented.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Sorry whitesky,
yah i am sure that just i read a .jpg image. I think here is the problem that is InitializeMagic() function.
why can we call this funtion and which path is send to this function as a parameter...
But one thing i had successfully run on the console application of win32, within the same code....
So, what is the real problem...please tell me...
|
|
|
|
|
Hey his name is Christian Graus not whitesky
|
|
|
|
|
I use SPY++ find HWND from the window that I want to control.
if I want to access that window by using CWnd function.
How I do this.
|
|
|
|
|
Use the member m_hwnd
<br />
CWnd cwnd;<br />
cwnd.m_hWnd =(HWND)0x00120112;
cwnd.ShowWindow(SW_MAXIMIZE);
Code-Frog:So if this is Pumpkinhead. Time for him to run and hide. It's an interesting thought really.
|
|
|
|
|
Why you don't find it yourself without Spy++?
Do it with CWnd::FindWindow() or ::FindWindow().
Good Luck
|
|
|
|
|
Do you want to get hwnd of a control on other programs?
|
|
|
|
|
ํYes,I want to inject text data to dictionary program when I copy text data to clipboard.
I use this function
::SendMessage(hwnd,WM_SETTEXT,0,(LPARAM)pchData);
|
|
|
|
|
A small code(I suppose you run Notepad)
char *MY="Hello";
HWND hWnd = ::FindWindow("Notepad", NULL);
CWnd *hWndEdit=FindWindowEx(hWnd,NULL,"Edit",NULL);
hWndEdit->SendMessage(WM_SETTEXT,0,(long)MY);
with this code you insert Hello to notepad now if you want to read this text of NotePad first you must determine length in characters of window
LRESULT l=hWndEdit->SendMessage(WM_GETTEXTLENGTH,0,0);
then you can get text of notepad
hWndEdit->SendMessage(WM_GETTEXT,l+1,(long)MY2);
Is it helpfuls?
|
|
|
|
|
After I inject text to target Edit Ctrl I have to click on it and press enter key then the dictionary program will work.
So, I want to try to send the message that user press enter key after inject text to target Edit Ctrl.
What this message is?
|
|
|
|
|
|
Well , i have put the control dynamically but each time when i add new item in the list view from the fileopen dialog it's place the control(progress bar) at the same postion and when i select entire row of the listview it goes disapper and goes behind selection(might not seen).
so i need to display the progressbar in such a way that when i add an item in the list view it will show with subitem in the listview.
and when event fired it shows the progress bar in the progress mode.
i am using win32 API on .net 2005. OS SERVER 2003.
i have seen some demos but they are realted with MFC.
Thank you
AMIT
|
|
|
|
|
i try to start another thread with this code
CGLMFCDlg * MyThread= new CGLMFCDlg;
_beginthread(MyThread->Thread, 0,NULL);
delete MyThread;
the new thread is a void function, i get a error message as follows:
error C3867: 'CGLMFCDlg::Thread': function call missing argument list; use '&CGLMFCDlg::Thread' to create a pointer to member
Any sugestions on how i can solve this?
thanks
|
|
|
|