|
Stephane Rodriguez. wrote:
has been made available by Lutz Roeder
He's done some really interesting things. Thanks for the FYI.
Stephane Rodriguez. wrote:
With these tools in hands, it is possible to know how EVERY .NET class is actually implemented.
So will you be rewriting everything, just for fun?
-Nick Parker
|
|
|
|
|
When you see the immediate benefits of these tools for those wildly posting issues, it's too bad we don't clearly show permanent links to these tools in the forum. Quite cheap an improvement.
Nick Parker wrote:
So will you be rewriting everything, just for fun?
I don't think so. I am even thinking about giving up the interop stuff altogether, and go to a more creative side (ASP.NET). So, may be bye bye C# forum and good morning ASP.NET forum!
All those interop details are much like learning by heart tons and tons of tiny details. We developers were sold seamless interop, and the truth is that, just to give a crude example of where we developers are now, the CLR 1.1 does not even release running COM instances when told to (chris brumme blog).
Someone bold enough could rewrite the entire Windows Forms code, or sell a total replacement. It's clearly lagging behind today's needs, especially when you see how people are used to MFC controls and the like. After all, that's business opportunities for companies like Infragistics. According to me, this portion of the run-time is utter crap (internal classes, too tightly coupled with WIN32 controls, while being hardcoded at the same time).
|
|
|
|
|
Stephane Rodriguez. wrote:
When you see the immediate benefits of these tools for those wildly posting issues, it's too bad we don't clearly show permanent links to these tools in the forum. Quite cheap an improvement.
Interesting thought, maybe you should suggest this to Chris in the Suggestions forum....
Stephane Rodriguez. wrote:
So, may be bye bye C# forum and good morning ASP.NET forum!
Not sure how much of a UI designer you are for Win32, however if you haven't done much web stuff you will soon hate the limitations.
-Nick Parker
|
|
|
|
|
I am creating a console sort of like quakes in which the user can modify variables and execute commands by typing them into a command line. So I have a Shell class which keeps track of variables and commands that are registered to it. Each command that can be executed has a delegate to the function that it calls when the user types its name in. I want to know if its possible to pass a function name as an arguement to another function, the purpose being that the Shell class would take care of creating the actual delegate. I noticed that in the delegate constructor it uses the parameter void() target, but when i try that it generates a bunch of errors. Any help would be appreciated.
Thank you.
Steve
Not all who wander are lost...
|
|
|
|
|
You'll have to wait for .NET ver2 for anonymous delegates, in the meantime you will have to template each of them, or maybe you can use Reflection.Emit to build delegates dynamically, but that a bit difficult.
another suggestion is to go the COntrol.Invoke way, not sure if you can define a delegate with a "params" parameter.
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
Hi There !
I'm trying to create a Windows Service (not a Web Service) in C#.
I am using VS.Net Enterprise Architect:
Microsoft Development Environment 2002 Version 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
I read about installutil.exe but I can't find it.
Can someone tell me where can I find it ?
Thanks.
|
|
|
|
|
nahumtakum wrote:
I read about installutil.exe but I can't find it.
Can someone tell me where can I find it ?
On my machine in C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
heinz r. vahlbruch c++ & c# programmer from germany
If IntelliSense doesn't have it, it ain't worth calling - Anonymous
My compiler compiled yours - Seen on a VC++.Net T-Shirt
|
|
|
|
|
I know it should be there... But its not !!!
Can you please send it to nahumtakum@hotmail.com ?
|
|
|
|
|
nahumtakum wrote:
Can you please send it to nahumtakum@hotmail.com ?
Perhaps you'll need some more files. You can get them all by installing the .NET Framework SDK instead of the Redistributable version you may have installed. You can find the SDK here[^].
Greetings,
heinz r. vahlbruch c++ & c# programmer from germany
If IntelliSense doesn't have it, it ain't worth calling - Anonymous
My compiler compiled yours - Seen on a VC++.Net T-Shirt
|
|
|
|
|
|
There are 4 fields in my database table. First fields is an integer, second is a string, third is a date field, and the fourth is a currency field.
I am using a combo box to select the field to be search, a text box for the value of the field to be searched, and a command button once clicked will invoke the filter.
Items in the combo includes the 4 fields names and another item "<everything>" which will disable the textbox for the filter value but once the command button is clicked, the recordset will be refreshed and set filter to nothing.
How to implement it. Please show example statements to filter using each of the above 4 fields. Also please include how to set the filter to nothing.
Thanks in advance
|
|
|
|
|
Can someone tell me what the best way is to split messages received from an irc server. So that I can simply use the parameters parsed from the message ?
Greetings....
|
|
|
|
|
I suggest using the excellent Sharkbite IRC library on SourgeForge. It gives u a solid framework to build a GUI on.
Sorry I cant find the link now.
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
in addition, check out my irc client lib, Nebo.
|
|
|
|
|
Hi there,
I want to show all of folders (looks like Window Explorer) on the TreeView but I dont know how to do. If you know, please help me!
Thank for your reading.
Tran Hoang Chuong
|
|
|
|
|
See the source code for Carlos Perez's ExplorerTree control on CP.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I'm wondering how to have an MDI application that behaves like the newer versions of Word and Excel. I notice that they don't actually keep each document inside the main container like all of the MDI tutorials I've ever seen seem to show.
I'd like to have my app follow this more mainstream form of interface, but I haven't been able to find any resource that explains and/or show how to do this.
Can anyone point me in the right direction?
Thanks.
Bob McCormick
XebraTech
|
|
|
|
|
I wrote sth like this :
Object [] idxProp = index.ToArray();
pi.SetValue(obj, null, idxProp);
i want to set just one value of a index property using Reflection (or all if its not possible)
when i use this form, it throws :
"
An unhandled exception of type 'System.Reflection.TargetParameterCountException' occurred in mscorlib.dll
Additional information: Parameter count mismatch.
"
what am i doing wrong ??
|
|
|
|
|
Seems to me like you might need to include both the index and the new property value in the array.
Burt Harris
|
|
|
|
|
I'm tring to create a program that can read and write cab files. Unfortunatly the CabCreator class was removed from .NET after the beta and the Setup SDK doesn't appear to have the functionality that I need. Does anyone have any ideas on how to accomplish this???
Thanks!!
|
|
|
|
|
You can use the SharpZipLib[^] to create zip files. It is free and open-source.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Thanks for the reply that looks like an interesting library unfortunalty the LZW compression alorgthium is patented, and unfortunatly it is impartive that I use the CAB format.
Thanks,
John
|
|
|
|
|
The cabinet reader/writer is a C dll (cabinet.dll) provided by MS along with their CAB SDK (cab-sdk.exe).
You can find the CAB SDK here[^] for instance.
To access these functions using C#, you only need to premarshal these structures and function signatures (less than 10).
In case premarshaling is too hard a job, consider using MC++ mix mode.
|
|
|
|
|
hello,
is there any way that we can use C language code in C#?
What are the alternates of header files in C#?
and
How to convert a header file to a namespace if namespaces are the alternatives to header files?
regards
|
|
|
|
|
You can declare C functions in C# using the extern keyword along with the DllImport attribute. Once the function is declared, you just call into it. For example:
using System.Runtime.InteropServices;
<P>
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);
<P>
MessageBox (0,"API Message Box","API Demo",0);
See the following and other articles on the topic:
http://www.thecodeproject.com/csharp/c__and_api.asp
There is no need for headers in C#. You just put all your code in the .cs class. You generally wrap your code within a namespace as a way of organizing things and to avoid name conflicts with other code -- it doesn't really correspond to a header.
|
|
|
|