|
|
here actually.
And I swallow a small raisin.
|
|
|
|
|
Anyone has any library for lan communication written in c#??I want to use it for my recent project?If you don't have any,i'll still appreciate your advice on how to write a new one.
|
|
|
|
|
look at remoting - System.Runtime.Remoting
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Hi,
we're creating a class scheme which needs to keep the properties instances from the childs classes on the main base class. To do this we're passing the instance of each class once by each child constructor to the main one, I mean:
class child (propertyX A) : base (A) {...}
...this way we pass the instance of one property to the child class when it's instanced so the base class will get it.
It works.
The only problem is that the VS.NET IDE doesn't shows the child window in the design mode, getting an Exception message explaining that there's no instance of the base object or other strange messages like this.
Does anyone knows a solution or a cause?
Thank you in advance,
Edgar
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
Hi,
For that too work you are gonna need a default constructor, in fact for any designer to work, you will need the default constructor. The default constructor is a constructor that takes no arguements. In your case, you could do this:
public DerivedControl():base("some value here")<br />
{<br />
this.var1 = default1;<br />
this.var2 = default2;<br />
}
UPDATE: Note this is only really for designer support. At runtime use your own construtors.
Hope this helps
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
You know I was extremely irritated when I had the same problems earlier. Thanks for the tip...
|
|
|
|
|
I am currently cobbling together an IEnumerable for a class which contains 2 related collections. The problem I have is how to check that the object which is being enumerated does not alter during the enumeration.
What would be nice is......A class to which I can pass any object, and this class will look at all the objects internal data and return an int32 as a hash code. This class could be reused by any collection or object for that matter.
Anyone know of such a class??
Regards,
4space
|
|
|
|
|
Simple things tend to escape me...
Suppose I create a dataset on the main form of my application. This dataset will hold multiple foreground and background colors of my application.
Now when I want to set the color of my text, all I have to do is go to properties and DataBind my ForeColor to a value in the dataset. It's really pretty darn neat! The drop down box will list the dataset and I can pick what value I want.
Now I open up a new form, but unfortunately, my dataset is sitting on the other form. Sure, I can manually type in the code to tie a field to the ForeColor, but this is .NET
So here's the question: How can you create a 'reference' to an object on a different form? I want to be able to use a dataset from one form via the properties on a second form.
In other words, I want a Global DataSet that I can access from any form I create in my project. Is that possible?
Thanks!!!
|
|
|
|
|
|
Does anyone have any information, examples, or ideas about Global Common, Shared memory, File Mapping, etc...? I am trying to share a structure of information between 3 different applications. The shared area needs to be accessed every 100 milliseconds. Any kind of idea will be appreciated.
Thanks,
Tom
|
|
|
|
|
Maybe .Net Remoting will work for you.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
I have done very little with .Net Remoting. I am under the impression that .Net Remoting simply uses network sockets to pass objects between applications "behind the scenes". I am worried that this will not be fast enough for the updates that I need.
I may be wrong about the above.
Anymore ideas?
Tom
|
|
|
|
|
I am looking at using something more time dedicated other than socket routines. I was hoping to see if anyone has implemented something close to the kernel32.lib routines "CreateFileMapping and MapViewOfFile". I have used "CreateFileMapping and MapViewOfFile" with Visual Basic 6.0 and Visual C++ 6.0 and it worked as I expected it to. Does C# have anything like these routines? Can C# use the kernel32.lib?
|
|
|
|
|
Tom McDaniel wrote:
Can C# use the kernel32.lib?
Yes, via the DllImportAttribute C# can use most, if not all, extern functions from an umanaged dll. See further down the forums, in the last week we had quite alot of talk about it.
Also look at MSDN, NET Framework Developer's Guide, Interoperating with Unmanaged Code Section.
Hope this helps
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
Thanks for the answer. This is what I have been looking for. Your help is greatly appreciated.
Tom
|
|
|
|
|
I have a main project and a Dll project in the same solution.
Randomly Visual studio tells me (in debug mode) this:
Unable to write to output file '.....mydll.dll': The process cannot access the file because it is being used by another process.
Unable to write to output file '.....mydll.pdb': Access is denied.
To fix this I have to quit Visual Studio and go to the project folder and remove those files. I can't remove them while Visual Studio is running because they are writeprotected.
It must be an other way to fix this, any ideas?
|
|
|
|
|
I get this frequently as well, and got it in MFC occassionally.
I shut down Visual Studio, but have never really had to remove the files manually.
|
|
|
|
|
I get this too, very annoying. It seems to happen when using multiple (3 or more) projects in one solution (guess it isnt a solution then, is it?). I find 9/10 times doing a rebuild will solve the problem. Very occasionally i had to go and delete files as well.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
When i load my project i got the following message: "Cannot widen from target type to primitive type." ( build error) about 12 times.
I can do every thing that i use to do but after a while Visualstudio removes some controls from one of my winForms and I have to redesign the whole winForm. What is happening? Please help!
|
|
|
|
|
Clearly it's whatever item you are putting on your form. Something in the source code in the ImplementControl area is incorrect.
And I got that message when converting floats to integers myself. Make sure you use the Convert class such as the Convert.ToInt32 function when doing type casting.
|
|
|
|
|
I am envisioning a component that you can drop on a form and specify what controls on the form are maditory, and which ones are not. Also to be able to specify what values for each control are valid. It should also place a small inidcator in the corner of each control to indicate that it is required. The control should also give feedback by altering the background colors of the controls it is watching if there is a data entry error or not.
As far as I understand I will need to learn how to write something called a control extender?
Anyone have any good examples / articles to recomend?
|
|
|
|
|
I wrote two control extenders and put them on the board.
One for Toolbars
http://www.codeproject.com/cs/miscctrl/extendedtoolbar.asp
One for Statusbars
http://www.codeproject.com/cs/miscctrl/extendedinterface.asp
I hope this is what you are seeking.
|
|
|
|
|
How can I open, query SAS Dataset using C#?
Jassim Rahma
|
|
|
|
|
SAS?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|