|
James T. Johnson wrote:
You mean myRect.IntersectsWith() or myRect.Intersect()?
James, yes!
And it was damn easy to use!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Well...I have a problem here ..I can't debug my applications from VS.NET...not even an empty command-line application.
I can build all the stuff normally and launch it from the VS.NET command prompt and it works perfectly fine, but I would like to use the GUI debugger in VS.NET.
When I click Run, the output screen outputs all the normal lines until "Build: 1 succeeded" etc. Usually I get another "Deploy:" line, but VS.NET hangs before it gets there. I have to use the Win2000 Task Manager to shut it down and launch the program again (Quick Launch button).
I conjectured that VS.NET can't identify the process and to check, I clicked Debug Processes under Debug and sure enough, VS.NET hanged in the same way.
Anyone has the same problem or know how to fix it?
I'm using Windows 2000 and have administrator privileges.
|
|
|
|
|
You're going to want to ask this in the VS.NET IDE issues forum...
David Stone
dstone@newcenturytitle.com
Procrastination is like masturbation; it's all good until you realize you just screwed yourself.
-Writing on a bench at college
|
|
|
|
|
How can I copy a complete directory and its content? The File class has the
Copy/Move method, the Directory class has the Move method only. Why not the
Copy method?? Is there any reason?
Pranoti
|
|
|
|
|
|
How can we change this C++ function in C#?
foo(int x, int y = 10)
{
.
.
}
main()
{
int i = 5;
int k = 2;
foo(5);
foo(5, 2);
}
Thanks in advance.
|
|
|
|
|
I think you'd have to do this
<br />
private void foo(int x, int y)<br />
{<br />
.<br />
.<br />
}<br />
<br />
private void foo(int x)<br />
{<br />
foo(x, 10);<br />
}<br />
Andy Gaskell, MCSD MCDBA
|
|
|
|
|
Hi,
Anyone got a sample or a link to a sample of exception handling across threads?
i.e. got a worker thread that throws but i want to catch it in my main thread.....
|
|
|
|
|
There is an event on the AppDomain object that lets you know when an unhandled exception is thrown; but its only a notification that it happened; you can't do anything about it [AFAIK].
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Hi,
How to create separtor line in menu. (like in Visual C++)
|
|
|
|
|
neatSeparatorMenuItem.Text = "-";
Andy Gaskell, MCSD MCDBA
|
|
|
|
|
Does anyone else think this is an evil way to create separators, or is it just me?
I was thinking more along the lines of a MenuItemCollection.AddSeparator() method, or perhaps a class MenuSeparator derived from MenuItem.
Dunno if I got those names right, because I'm away from my dev computer -- stuck on this miserable vacation
Anyways, I'd be interested in other people's thoughts on this issue.
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
|
Eric Gunnerson (msft) wrote:
I think it's evil.
Nice one, Eric.
I'd be interested what your recommendation was/would have been for this.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
I am afraid that looks horrible
|
|
|
|
|
it doesn't mean that session will be terminated when you close the window.
james liu
|
|
|
|
|
|
I want to do some job on Session_End in global.asmx, but when I close the IE, it cannot be occured.
I'm amumu, and you?
|
|
|
|
|
|
Hi ,
I have to develop a SOAP service that will work over sockets.
The clients could be calling from any language on any OS, so remoting is no good.
ASP.NET only allows a service over IIS http so that does help.
Is there are way of doing this in C#? Is there a way in to the SOAP classess behind ASP.NET?
Thanks,
Keith
|
|
|
|
|
Situation :-
-------------
I have remoted an object, say A.
All fine, no problems.
In A I have a method that returns an object B.
The problem:-
-------------
When I call the method that returns B, I get an exception:-
Unhandled Exception: System.InvalidCastException: Return argument has an invalid type.at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
Why is this?
B is marked as [Serializable]
Nish
p.s. I can call other methods that return strings and ints without problems
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Is that your class/object that you are trying to return? If so, you may need to implement the ISerializable interface and write your own serialize method. On the other hand, it might be helpful to see the code that calls the remote method...
P.S. What is your MSN IM address, Nish???
David Stone
dstone@newcenturytitle.com
Procrastination is like masturbation; it's all good until you realize you just screwed yourself.
-Writing on a bench at college
|
|
|
|
|
David Stone wrote:
Is that your class/object that you are trying to return?
David, the issue was that, instead of putting my interfaces in a DLL and both client and server referencing the DLL, I put them in a header file and included them at client and server [MC++ code]
When I put them in a DLL, it worked
And we do not have to mark it ISerializable, just derive it from MarshalByRefObject.
Regards
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Right. I know that we don't have to mark it as ISerializable....but that can be helpful if you want to do your own serialization. Why were you using a header file? Isn't this the C# forum?
Just as a side note...what exactly does MarshallByRefObject do?
David Stone
dstone@newcenturytitle.com
Procrastination is like masturbation; it's all good until you realize you just screwed yourself.
-Writing on a bench at college
|
|
|
|
|
Hi There,
I'm very new to all this web services stuff and would like to learn. I tried downloading the C# web services examples and followed the direction on building and running it. I ran into this problem: When trying to access the *.asmx file from the browser, Internet Explorer prompted me to download the file. After downloading it, I asked IE to open it and all I got was the content of the *.asmx file. Something like the following:
<%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>"
Instead of the web page. I managed to compiled the solution just fine, the problem arise when I tried to view the page. Any comment or feedback would be more than appreciated.
Thanks in advance.
|
|
|
|