|
Rincewind wrote:
Here the problem is much bigger, you have numbers of interfaces to implement to make it working.
You have been talking about the download manager, which is a simple callback mechanism. Other interfaces, such as IObjectWithSite, are interfaces that of course have to be implemented since you are building a IE host, but that's a total different story than the download manager stuff itself.
As you have probably seen from the samples I have referred to, there is a way to simplify your life as a coder by just querying the IServiceProvider services, instead of building a full fledge host. You decide.
Rincewind wrote:
any tool for implementing them automatically?
And yes, ATL provides some default implementation for a lot of these standard ActiveX interfaces.
Codeproject is often the automatical implementation for your needs.
|
|
|
|
|
Rincewind wrote:
I want to implement the IObjectWithSite interface (and
others too, this is just a concrete example).
Did Microsoft already implemented these interfaces?
In addition to Stephane's links, here is Microsoft's implementation of BaseCodeGeneratorWithSite[^] that was a public class in VS.NET 2002 but made internal in VS.NET 2003.
Some add-ins made use of this class, notably .NET CollectionGen[^].
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
Hello everyone,
I have been working on C# programs, my friend gave me a C++ program that is useful to me and i need to call that C++ program from my C# program. Is there a way to do that? Thanks for any help in advance
min
|
|
|
|
|
It depends on what you mean by "call".
If you mean "executed the executable", you can use the Process class to spawn out a new process.
If you mean "call into the code", look at this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp12192002.asp
|
|
|
|
|
if you Call the .exe file.You can call the API :ShellExecute().Of course,you must import the function at first.;)
|
|
|
|
|
Hello everyone,
I got this error when i try running my C# program: "Fatal out of memory error."
anyone knows how to solve this problem? Thanks alot in advance
min
|
|
|
|
|
|
my program consists of a few classes so it is quite hard to post online..
by the way, is there a way to free the memory allocated? Cos i got this error "System.OutOfMemoryException".
Thanks alot
min
|
|
|
|
|
Thanks alot for your help, i have solve the problem.. Thanks again..
|
|
|
|
|
Hey,
I have been working through many attempts to communicate with a ServerIron load balancer from a c#/ .Net app. I have tried an approach using a TcpClient, StreamReader and StreamWriter. Herein, I basically use a multithreaded approach and IAsyncResult callbacks. I have also tried a synchronous variation and a single threaded variation to reduce complexity in the face of continued lack of communication between my app and the load balancer. Alternatively I have tried using a Socket with my own read and write methods. I have searched and adopted a few other approaches from the web all to no avail.
Basically, I am having issues where I cannot find a return of control from the ServerIron and/ or It pauses at odd places in the return stream. It will not recognize the terminating character variations be it; cr, lf or crlf.
Apart from the specific implementation details, I am wondering if I am simply missing someting fundemental about telnet or about these machines. Others have recomended expect scripts, which I have looked at and effectively do the same thing I am attempting to do; read till you get a terminating character, then send data. I also do not want to leave the c# world at all, nor do I feel I should have to. I am not a beginner and I have several .Net apps in production. any help would be greatly appreciated.
Thanks,
Chris
|
|
|
|
|
What is the best way to prevent user to change the size of form?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Set the FormBorderStyle of the form. There are 6 or 7 different styles, so pick which one best suites you.
|
|
|
|
|
Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Hi All,
I would like to get answer for the following questions.
1. In C# How do we create new themes for Desktop?.
2. How Intellisense Editors are build?. Is is it possible to do using C#?
3.Is there any book for Internationalization using .NET or C#?
Thanks and Regards
Balachandar Ganesan.
|
|
|
|
|
|
gbala wrote:
In C# How do we create new themes for Desktop?.
You don't. The DLLs have to be signed by Microsoft in order for them to be used as proper themes. Otherwise you have to use ThemeXP or WindowBlinds. And I think those have to be C++ and COM DLLs.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
hi,
Could you suggest some link about "who to make this MFC code in C#", ebook,book or something like this ?
thanx
I thing many people will need this
Wizard_01
|
|
|
|
|
Could you convert apple to orange?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
As the title, how can I perform that with programmatically?
My Com+ plus is inherited from ServicedComponent and implements
an interface(dual) defining by myself. Thanks ahead!
|
|
|
|
|
Does anyone know why the click event won't fire when the opacity is set to 0?
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
No idea, but it may well be that when opacity is 0 its visibility is effectively set to false and so click events can't be generated. Doesn't really help, but a possible rationalisation
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Paul Ingles wrote:
but it may well be that when opacity is 0 its visibility is effectively set to false and so click events can't be generated. Doesn't really help, but a possible rationalisation
Ahh, that may very well be true, I guess that leads me to my next problem, locating the mouse coord. when outside the form? Ah, this is so much damn fun.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Nick Parker wrote:
locating the mouse coord. when outside the form?
That part is easy
Use the static MousePosition property on the Control class. This property calls ::GetCursorPos and returns the result, so the behavior behind it is the same.
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
James T. Johnson wrote:
Use the static MousePosition property on the Control class. This property calls ::GetCursorPos and returns the result, so the behavior behind it is the same.
Thanks James, that worked perfectly.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
James T. Johnson wrote:
Use the static MousePosition property on the Control class. This property calls ::GetCursorPos and returns the result, so the behavior behind it is the same.
This works very well, however any ideas as to how I can check this value when another Window such as IE or another application has focus?
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|