|
I see. Well, in case of the IRichEditOleCallback, as the documentation[^] states, you are responsible to provide an implementation of the interface methods, this is probably why the exsample creates IExRichEditOleCallBack (from IRichEditOleCallback) and feeds that to the rich edit control. He provides implementations of methods that will be called "by the rich edit" (or somesuch) allowing him to execute his specialized code when something needs to be done.
When you query for the IRichEditOle interface, its methods are already implemented, you don't need to make your own instance of it since what you want to do is to use the already impelemented functionality.
I hope this is understandable rather than making things seem to be even more complicated than before.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <
|
|
|
|
|
had my code in the Wrong Place put it in ::OnInitDialog after I connect my CRicheditctrl to the resource item via DDX_CONTROL
BTW I am a Madgar my parents were born in Debrcin
can speak Hungrian but obviously not write....
|
|
|
|
|
"Magyar" és "Debrecen", i live in Debrecen too.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <
|
|
|
|
|
I want to add listview to my MFC(.net2003) application interface.
any have simples or some links to help hoe to add the data to listview
and how to sort, get the selected item!.
i need also to add to the form a toolbar with icons. please help
|
|
|
|
|
|
I want to draw sea giving original view but i donot know how to do it in visual c++ in open gl.Can any one help me????
|
|
|
|
|
This thread on nehe[^] is a good start.
It's not a very easy things to do, especially if you want to make it realistic, but the basics should manageable.
Watched code never compiles.
|
|
|
|
|
This[^] CodeProject article also may help.
|
|
|
|
|
hi
i need to connect to remote computer by providing the
IP Address
User name
Password.
With this help i will be accessing files.
Kindly Provide me a way for connecting it.
|
|
|
|
|
There are a number of different options; try searching the MSDN site for possible solutions that match your requirements. Your starter for 10: Remote Desktop Connection[^].
It's time for a new signature.
|
|
|
|
|
Have you looked at NetUseAdd() or WNetAddConnection2() ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
mstsc
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I'm using CFileDialog to display a list of files to open, but when I change the extension type I don't get a displayed list of the newly associated files.
CFileDialog fileOpen(TRUE, "dat", "*.dat", OFN_EXPLORER | OFN_FILEMUSTEXIST, "Data Files (*.dat)|.dat|Doc Files (*.doc)|.doc|All Files (*.*)|.*||");
if(IDOK == fileOpen.DoModal())
{
....
}
It really is as simple as that, but the explorer doesnt seem to want to display the files associated with the new extensions.
Any ideas?
TIA
Tony
BTW - I'm using Visual Studio 2003 on an XP machine
modified on Monday, May 24, 2010 5:42 AM
|
|
|
|
|
Resolved.......
.dat should read *.dat etc.....
|
|
|
|
|
I have multiple excel.exe running on my system . When I called GetActiveObject() method then I am able to get only the one excel.exe not all . So please tell me how can I get all the running excel.exe
Trioum
|
|
|
|
|
from what Ive seen GetActiveObject() is only going to get one instance. If you are looking for a particular instance, you could try looping :-
GetActiveObject()
Is This instance what Im looking for ?
If No CLose the excel instance
repeat until you find the excel instance you want
I was thinking that you could enumerate windows with Excel in the title, somehow close the ones you dont want (assuming you can detect the one you do want by the window title), then do a GetActiveObject()
sorry .. maybe someone else has a better idea
|
|
|
|
|
No your idea is failed every time I got the same Excel. And I cannot close the running excel.exe
Trioum
|
|
|
|
|
|
btw how did you implement either of my ideas ? and
trioum wrote: And I cannot close the running excel.exe
why not ? obviously if you cant close any excel instance you dont want then you'll never get to the one you do want.. what do you have so many zombie excel instances ?
'g'
|
|
|
|
|
I have to work with mulitple excel files not one dude
Trioum
|
|
|
|
|
do you know if GetActiveObject() returns a reference to the Excel instance that 'has focus' or 'is currently active' ?
If that were the case, AND you could distinguish which excel instance was which by the Window title, then you could build a workable solution
a) enumerate all the excel instances and look at their window titles
b) force the instance you want (by window title) to come to the front ie give it focus
c) then do a GetActive Object
somehow I dont think its that easy - the GetActiveObject may have its own way of looking at the ROT or process table, not just the 'active excel instance' - thats confirmed by looking further : MS KB 238975 - http://support.microsoft.com/kb/238975[^]
says "NOTE: If there are multiple instances of an automation server running at the same time, the GetActiveObject() API function returns the IDispatch pointer to the instance that was first running."
So I dont think you're going to be able to do it
|
|
|
|
|
When I use MFC New Feature pack (VC++ 2010) e.g. MFC Property Grid control in my application by adding them directly to resource designer while running the application, MFC new controls appear with no style but the controls Like CButton appear correctly?
What's the problem , please Help
|
|
|
|
|
Hi
I want to change the image of button on mouse over. When the mouse pinter will be on button it should change the image of the button and once pointer come out from button it should come to its original state. My button havinf owner draw properties and I want to create the button at runtime.
Please provide me some same code
Thanks
|
|
|
|
|
|
I Have a CString which contains port names.
CString cs = "COM1";
char portname[5];
1. What is the memory representation of cs above (I have this question since I think it is multibyte/wide char)?
2. How to copy above cs into portname ? I need portname to contain
{'C','O','M','1','\0'}
Thanks
JC
|
|
|
|