|
Rich,
Check out Ingo Ramners .NET Remoting site at: http://www.ingorammer.com/Software/OpenSourceRemoting/BiDirTcpChannel.html
His Bidirectional channel will solve the problem you are having of getting events when behind a firewall.
Good luck,
John
|
|
|
|
|
Thank You, this is the first piece of useful information I've found on this subject after almost a week of searching the internet / forums. I've literally just bought Ingo's book, and was hoping that would explain it all to me.
Thanks again.
Rich.
|
|
|
|
|
Hi Richard,
Ingo's book has been very helpful to me. Also be sure to check out the Remoting newsgroup at
microsoft.public.dotnet.framework.remoting
Also check out http://test.labdotnet.com/GenuineChannels/GenuineChannels.html
Its a commercial product which includes a bidirectional TCPIP channel that also includes compression and more. Only $49 and includes source. I have tried his demo and will be purchasing the full product shortly. Looks like a good value for $49.
John
|
|
|
|
|
in Visual Studio J++, you can "import com.ms.wfc.* "
Where do i find this wfc class and its methods like app and core in J# using visual studio?
please help
mail me at malluprincez@yahoo.com
---ashwathi
|
|
|
|
|
I am implementing the ISerializable interface to serialize objects using the BinaryFormatter. The BinaryFormatter provides specific type information when serializing objects. I would like to use the type information, more specifically the version to handle objects which change over time. In the serialization process I can see that the type information is properly being saved. However, in the deserialization process, I cannot see the type information of the saved object. There is an property of the SerializationInfo object passed into the deserialization constructor called AssemblyName. I believe this should be the Assembly data of the previously saved object, but it appears to be the Assembly data of the current object. Is this correct? If so, how do I know the version of a previously saved object?
LindaK
|
|
|
|
|
hi all,
i'm using dynamic assembly at runtime, but i want to change it at the runtime by overwrite on it. System message: "Can not copy (file.dll): It is being used by an other person or program. Close any programs that might be using the file and try again." could you tell me how to change or replace assembly at runtime
thanks
cuong
|
|
|
|
|
cuong_nguyentuan wrote:
i'm using dynamic assembly at runtime, but i want to change it at the runtime by overwrite on it.
Then why save it to disk? Why not keep in memory? Anyways to get the type unloaded you will have to unload the appdomain. My PluginManager article mite be of use. http://www.codeproject.com/useritems/PluginManager.asp[^]
Cheers
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Hiya I am looking to see if I have SourceSafe 6.0 ( that ships with .net - Enterprise developer - which is what I have ) installed...
Does anyone know where abouts it is in the MICROSOFT VISUAL STUDIO.NET directory.
Also where can I get info on using it.
Thanks,
grahamoj.
|
|
|
|
|
grahamoj wrote:
MICROSOFT VISUAL STUDIO.NET directory.
Not there, look under program files, it has its own directory and a few menu items if I rememebr correctly, personally I use CVS. Also it doesnt get installed by default.
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Hi,
I want to make an extensive API library that wraps as many API calls as possible but I don't know how I would implement them.
There are a few possibilities:
- By DLL (User32, Kernel32, etc.)
- By Category (Graphics, Files, XPThemes, etc.)
- Alphabeticly (nooooo!!!!)
- ???
I would like to have some suggestions on how to do it.
The programming itself is no problem, only the maner of implementing them.
btw: If you have classes/code to share please I could use them as it will speed up the process a little bit.
Thanks in advance.
Greets,
Poolbeer
Speak Out! Use the Source, Luke!
(Dr. GUI .NET #5)
|
|
|
|
|
Have a look at the beta implementation of Win32 security by MS on GotDotNet. Lotsa interop. But it will give you an idea.
On the other hand, you want to make you classes as OO as possible. Have a look at my nBASS library where I have to deal with static and "instance" objects. I say "instance" as the interop is on a library written in C hence no OO structure at all and only give me a pointer to work with. It took several (4/5) drafts to get the final OO model in place. Even with to soon to be released version, I have incorporated designer support, which is quite a task when your object is a singleton.
You can find the latest source on SourceForge: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/nbass/nBASS/[^]
It might be of some interest. All I can say is plan, plan, plan, then action.
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Thanks,
I will have a VERY good look on your library. I think I'll just start small and incorporate a few APIs at a time and change as much as possible to get that OO thingy in place.
Greets,
Poolbeer
Speak Out! Use the Source, Luke!
(Dr. GUI .NET #5)
|
|
|
|
|
Hiya I was wondering how to do this. Myself and my mate work on the exact same project in .NET, but doing different parts of the project each.
What is the best way to update our projects so that we both get each others new parts of the project when we need too...
Thanks,
grahamoj.
|
|
|
|
|
Break the project up into asseblys and each work on your own bits.
Either that or use some type of version control system.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Unknown wrote:
"I love long walks, especialy taken by those that annoy me."
|
|
|
|
|
Source Control. Best is use an internet CVS host like SourceForge (much less driving ). CVS AFAIK sorts out most of the merging of source files. I dont have much experience in multiuser projects, but has just made a project of mine public. Not much going on at the moment though.
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Hi all,
The simple test-case below shows a trivial WinForm with an exception in one of its event handlers.
Before the form is created and run, an exception handler is declared. Note that when the app. is run without the debugger (i.e. Ctrl+F5 as opposed to F5), the exception IS NOT CAUGHT...
Any body have any explanations / workarounds?
many thanks,
dm.
<br />
using System;<br />
using System.Drawing;<br />
using System.Collections;<br />
using System.ComponentModel;<br />
using System.Windows.Forms;<br />
using System.Data;<br />
<br />
namespace WindowsApplication7<br />
{<br />
public class Form1 : System.Windows.Forms.Form<br />
{<br />
private System.ComponentModel.Container components = null;<br />
<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
<br />
<br />
}<br />
<br />
protected override void Dispose( bool disposing )<br />
{<br />
if( disposing )<br />
{<br />
if (components != null) <br />
{<br />
components.Dispose();<br />
}<br />
}<br />
base.Dispose( disposing );<br />
}<br />
<br />
#region Windows Form Designer generated code<br />
private void InitializeComponent()<br />
{<br />
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);<br />
this.ClientSize = new System.Drawing.Size(290, 260);<br />
this.Name = "Form1";<br />
this.Text = "Form1";<br />
this.VisibleChanged += new System.EventHandler(this.Form1_VisibleChanged);<br />
<br />
}<br />
#endregion<br />
<br />
[STAThread]<br />
static void Main() <br />
{<br />
try<br />
{<br />
Application.Run(new Form1());<br />
}<br />
catch<br />
{<br />
MessageBox.Show("caught");<br />
}<br />
}<br />
<br />
private void Form1_VisibleChanged(object sender, System.EventArgs e)<br />
{<br />
<br />
object i = null;<br />
i.ToString();<br />
}<br />
}<br />
}<br />
|
|
|
|
|
I don't think this has ever worked - I see exactly the same thing in v1 of the framework, using the command-line compiler. Even if you add a handler to the AppDomain.UnhandledException event, you can't prevent the default unhandled exception dialog box from being shown.
using System;
using System.ComponentModel;
using System.Windows.Forms;
namespace App
{
public class Form1 : System.Windows.Forms.Form
{
public Form1()
{
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(290, 260);
this.Name = "Form1";
this.Text = "Form1";
this.Click += new System.EventHandler(this.Form1_Click);
}
private void Form1_Click(object sender, System.EventArgs e)
{
object i = null;
i.ToString();
}
[STAThread]
static void Main()
{
try
{
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(UnhandledException);
Application.Run(new Form1());
}
catch
{
MessageBox.Show("caught");
}
}
private static void UnhandledException(
object sender, UnhandledExceptionEventArgs e)
{
try
{
Exception ex = e.ExceptionObject as Exception;
if (null == ex)
MessageBox.Show("Unhandled exception");
else
MessageBox.Show(ex.Message);
}
catch
{
Console.WriteLine("ERROR");
}
}
}
} The only workaround seems to be to wrap all of your event handlers for windows forms controls in try { ... } catch {} blocks.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Hey Rich,
I figured it out; look at Application.ThreadException...
d.
|
|
|
|
|
Hello!
Compared to a wide plateform availability of a web service, how a .net remoting server with http formater relates?
|
|
|
|
|
Is there a .NET equivelent to MFC's CDC::Draw3dRect?
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
I don't know what CDC::Draw3dRect does exactly but you might want to take a look to ControlPaint.DrawBorder3D, I have used it to draw a three-dimensional style border on the specified graphics surface and within the specified bounds on a control.
I hope it helps you.
Omar
|
|
|
|
|
CDC::Draw3dRect draws a rectangle on which one side of it is a darker shade then the rest of it to make it appear lit as if 3d.
"We will thrive in the new environment, leaping across space and time, everywhere and nowhere, like air or radiation, redundant, self-replicating, and always evolving." -unspecified individual
|
|
|
|
|
How do you go about adding to the .Net tab of the Add Reference dialog box? I thought adding stuff to the GAC would have done it, but that doesn't seem to work
|
|
|
|
|
I have seen this problem posted numerous times before, but alas, I don't recall the workaround. Try searching this and the C# forums.
Cheers
|
|
|
|
|
I think you need to add them some where in %WINDOWS%\Microsoft.NET\, I had the same problem with DX9beta.
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|