|
OK, I took a look thru the C# docs, trying to find how to write a COM server DLL, but I found nothing. (My plan was to write a shell extension using C#.) Can anyone point me in the right direction here?
--Mike--
http://home.inreach.com/mdunn/
I'm finger-lickin' good!
|
|
|
|
|
The runtime does most of the dirty work for you. The steps are:
1) Write your component in C#, as if you were writing it in COM but with .NET data types. How difficult this is depends upon how complex the interface is and what kind of types are used. You might want to look at the data marshalling docs before you start, and I think there's also a COM interop document as part of the SDK docs.
2) Build your component, register it with regasm, and then put it in the Global Assembly Cache with gacutil. VS will do part of this for you if you add a deployment project, but it doesn't do the GAC part for you in Beta 1.
3) At this point, COM should be able to find your component, and the runtime takes it from there.
If you come up with a cool shell extension, I'd love to see it.
|
|
|
|
|
*headscratch* hmm... methinks I need to pick up a C# book to make sense of all this new stuff. Know of any good books?
--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
|
|
|
|
|
The best C# book is Inside C# 2nd ed by Tom Archer.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Now a days c# sharp has got a nice fame in the market can u help me y? Is it a platform independent i heard that exe files cannot be opened in all the operating systems please help in this point.
Murthy
|
|
|
|
|
You can open the exe files only if the .NET Framwework is installed!
otherwise your exe will not start - showing a "missing dll" messagebox.
maybe the .NET framework will be modified for linux , i don't know.
hope this 'll help
prie
|
|
|
|
|
google is your friend.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Please go through the .NET basics to get a better idea of the buzzwords.
C#.NET programs run with the .NET runtime, just like Java programs run with the JVM. So you need to have the .NET runtime installed in order to run C#.NET programs. Unlike JVM, however, atleast currently Microsoft has implemented the .NET runtime only for Windows OS.
If you are interested in running C#.NET programs on other operating systems, please note that right now such support is only in experimental stages. Microsoft itself is not providing any such products/support. See the Mono[^] effort to get a hang of people doing .NET implementation on Linux.
|
|
|
|
|
I use the wizard in VS 7 to make a web service, but it takes forever to create a web service, it
just hangs on the dialog, during the web service creation, in the status bar it says that it's initializing
the application root.
I followed the correct procedures for installing VS7, i configured the Frontpage Web Extensions, but no matter what i do, i can't simply put the damn wizard to work !
What can i be doing wrong ? I'm using windows 2000 Professional.
Some kind of enlightment will be appreciated , thanks,
|
|
|
|
|
Hi,
Spice up your hardware with more RAM ... and not to mention that 1Gig Processor
Cheers
Kannan
|
|
|
|
|
Dear friends:
I am a student in Beijing Polytechnology University.
I am learning computer application.This year I will graduate,so I
am preparing my project-- The image identification of the number plate
uesed VC or C,but I find few data in China.I want you help me.
My email: zx8@sina.com
Thanks a lot lot lot lot lot lot lot lot lot lot lot lot lot lot lot
lot lot lot lot lot lot lot lot lot lot ...
Yours sincerely zx
|
|
|
|
|
This is the C# forum. You are in any case unlikely to find much info on this stuff on the web, except siggraph, or similar. I'd recommend buying a book from amazon, I have one called Image analysis or something similar which covers this sort of thing really nicely.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Does anyone know how to create dockable/undockable menu's and toolbars??
|
|
|
|
|
hi
i have Only C# Language Ref (Downloaded from Microsoft.com), i want more Details & Codes For that. Please Give sites , ftp address. i am a child of c# .
|
|
|
|
|
Try this:
http://www.csharphelp.com/
|
|
|
|
|
install .net studio in your computer and go through the documentation and tutorials.
|
|
|
|
|
You're already on the best site on the web for C# articles. Between this and MSDN, you have all you need. In addition, I recommend Inside C# by Tom Archer ( it's a book )
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I am recording visitor information to my site at www.mctainsh.com. By giving them a cookie I am able to see if they come back. (C# cookie code below).
HttpCookie x = new HttpCookie( "XXX", "UniqueString" );
x.Expires......
Response.Cookies.Add( x );
I would like to know if it is possible to detect if the browser accepts cookies without having to read this cookie back again to check.
I would like to do this so that I can see what the 2 visitors is get a day are interested in, without recording details of the 20 search engines that visit each.
|
|
|
|
|
John McTainshz wrote:
browser accepts cookies
You mean browser support cookie or you mean does it enabled in client? Check HttpRequest.Browser properties to see if browser support it. If you want to do the other thing the way I know is to check it again like the thing you said yourself
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
|
What on earth for ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
This is to help people understand delegates better in Abdul Azeez's article. (See that article under C# Articles - about delegates and events).
I found a bunch of mistakes in the article. First:
1. In your example for a Single Cast Delegate, you passed a function without an object reference, you created the object too late, and you used "this" in a static function (which is illegal and makes no sense). The correct code is:
TestDelegateClass tdc = new TestDelegateClass();
MyDelegate mdg = new MyDelegate(tdc.MyFunction);
Boolean f = mdg(tdc,1);
2. You state that in a Multi-Cast Delegate, that the MDelegate points to the head of the list. (You even have a diagram showing a delegate with Fn1,2,3,4 and pointing to Fn1) This is impossible. That is how a usual list works, with ".Next". However, the first delegate in the list has no information about the next delegate. If the multicast delegate pointed to #1, and then you "popped" that function off the stack, you'd be left with no reference to #2, as there is only a .prev, and no .next. In fact, if you look in the "locals" window (or "watch" window) you'll find that the Multi-cast delegate points to the last delegate which in turn has a reference in it to the second to last, and so on up the line. So the digram should look like this:
MultiCast Delegate
---------------------
MCDelegate1
MCDelegate2 ^
MyMCDelegate ------> MCDelegate3 ^
Those "up" carrots mean that the delegate is pointing (i.e. holds a ref. to in their "_prev") to the delegate above.
If the MyMCDelegate pointed to MCDelegate1 (which it pops first), then it would have no way of knowing what's next, because it would be pointing to nothing. Further, it wouldn't know when to stop, since there would be no field to say "null" or stop. So instead, MyMCDelegate "walks" up the list (through the "_prev") until it hits a null value in "_prev", and pops them off until it gets back to the head where it started.
Hope this helps!
DM
|
|
|
|
|
Anonymous wrote:
This is to help people understand delegates better in Abdul Azeez's article. (See that article under C# Articles - about delegates and events).
I found a bunch of mistakes in the article.
I'm confused. Why did you post this here instead of in the article, where people can see it and the author is bound to read it ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
http://www.csharpindex.com/articles/2001/01/MiddleTier.htm
HERE
|
|
|
|
|
hi there,
I build an application with Visual Studio .NET (C#) and after I build this project as Release application and after I move the .exe file on other machine don't runs
I try to build an setup project with dependencies but don't works
what can I do?
thank you
|
|
|
|