|
Have a second, identical window behind it and then destroy it? It's a brute-force-and-ignorance approach, but it may work if you time it right.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Wrong forum, mate.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
See Marshal.ReleaseComObject[^] method, but if the memory leak is consequence of a defective programming of the COM object, maybe this will not solve the problem and, maybe, nobody will be able to solve it except for the company which developed it.
|
|
|
|
|
I told you what to do the last time[^] you asked this. For the benefit of others, the component you're talking about is Flash, and I suggested that you need to use AppDomains to cope with this.
|
|
|
|
|
Hi all,
I'm not a all day programmer, but C#/.Net is nice to get little administration processes.
But nothing is good without good coding style...
I will create a class which gives solutions to use if someone is calling this method.
I.e. like (ImpLink, Internetwork).
Sample Pic
In my method I will give a way to select different switches by choise with this options.
I know only this possiblity via "summary, and params" to give options for Intellisense
|
|
|
|
|
I'm afraid your question is not quite clear....
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
What is your question
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Maybe you want to know how to make an enum[^]?
|
|
|
|
|
yes I think I'm walking a step forward.
I was creating an enum and read out the integer.
But how can I transfer enum values to a method ?
At the moment i use "int MessageType"
I will call the Method Loggerschema
i.e:
LoggerScheme(ex.ToString(),MessageType.Error);
public enum MessageType1{Information=1,Error,Warning};
public void LoggerScheme(string ex, int MessageType)
{
if(MessageType==1)
{
// This is a Information Message
// But I prefer to give Type "Information" instead 1
}
if(MessageType==2)
{
// This is a Error Message
// But I prefer to give Type "Error" instead 2
}
if(MessageType==3)
{
// This is a Warning Message
// But I prefer to give Type "Warning" instead 2
}
}
modified on Friday, November 5, 2010 10:53 AM
|
|
|
|
|
Use the name of the enum type, instead of int:
public void LoggerScheme(string ex, MessageType1 MessageType)
Edit
And don't cast it to int, it is not necessary:
if (MessageType == MessageType1.Information)
...
|
|
|
|
|
Thanks a lot, that is the solution for all my problems
|
|
|
|
|
You're welcome. I wish all of my problems were like this one...
|
|
|
|
|
Erik's example above is a good way of making things typesafe.
|
|
|
|
|
Hi All,
I am new to .NET platform.
I have a C#.NET executable(.EXE) application. I would like to expose some interfaces for my client applications. What are the possible options for doing this?
Some of my ideas are..
1. Exposing interfaces via COM Interop
2. Using .NET remoting
Please help.
prvn
|
|
|
|
|
I think WCF[^] is better.
|
|
|
|
|
what happens if my client applications are not using .NET?
prvn
|
|
|
|
|
Then you're only interface of choice would be COM.
|
|
|
|
|
Is there any method to expose COM interface from C# executable(EXE)? All examples I have seen were to expose COM interface from C# class library.
Please help.
prvn
|
|
|
|
|
There's serveral different ways of exposing your objects through COM. None of them are what I would call ".NET easy". Which method is best for you depends on your skill level, COM knowledge, Win32 API experience, ...
Google for "C# out of process COM server" or "C# DCOM Server" and you'll get a ton of articles, opinions, pitfalls, and examples, but little in the way of documentation.
|
|
|
|
|
That depends on what your clients are using.
If, for example, your clients are using Java, you can find something about WCF-Java interoperatibility here[^].
If your clients are using COM+, here[^] is a point of start for WCF-COM+ interoperability.
You just have to search for WCF-(technology) interoperability, whichever the technology of your clients is.
|
|
|
|
|
WCF does not limit the subscribing applications to .NET. Remember that WCF is a communications technology and you can subscribe using pretty much any of the standard comms mechanisms, such as named pipes or TCP.
|
|
|
|
|
Akt_4_U wrote: Some of my ideas are.. 1. Exposing interfaces via COM Interop2. Using .NET remoting
If you are using C#, hese are both old technologies.
Web services might be a better idea.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hello,
I would print a PDF file on any printer X, how i can do this with c# ? thank you verry mutch.
|
|
|
|
|
There are many ways but, if you only want to print PDF files, I think this[^] is a good one.
|
|
|
|
|