|
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.1434
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
Syntax: RegAsm AssemblyName [Options]
Options:
/unregister Unregister types
/tlb[:FileName] Export the assembly to the specified type library
and register it
/regfile[:FileName] Generate a reg file with the specified name
instead of registering the types. This option
cannot be used with the /u or /tlb options
/codebase Set the code base in the registry
/registered Only refer to already registered type libraries
/asmpath:Directory Look for assembly references here
/nologo Prevents RegAsm from displaying logo
/silent Silent mode. Prevents displaying of success messages
/verbose Displays extra information
/? or /help Display this usage message
|
|
|
|
|
HI..
Thank you very much...
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Hi,
I have developed a Excel2003 addin program in .net2008, but the problem is i unable to deploy it in my client's computer i have developed the setup it also runs but my addin does not add in the addins collection .Please help me
Regards
|
|
|
|
|
did u check on your on machine if it work properly
then in Client machine go to Help>about MsExcel>DisableItem i Think it is disabled automatically my MSEXCEL. Enable it from there.
wasim khan
|
|
|
|
|
No it isn't disabled in my client system.
does any one had deployed Excel addin2003 using .net2008.
|
|
|
|
|
How is it possible to give the name of the machine to this code so that it runs against the machine name?
Thanks
This code is fine for my machine where I am developing but I would like to give it a machine name on the network and so the code runs gives information on that machine.
How is this done please?
//Create WMI Class
ManagementClass mc = new ManagementClass("Win32_Processor");
//Populate class with Processor objects
ManagementObjectCollection moc = mc.GetInstances();
//Iterate through logical processors
foreach (ManagementObject mo in moc)
...
|
|
|
|
|
not all machine gives the information u want, it depent on the vandor of the device
But from the thing i understood from u, u want to connect via local network and ske the comupetr to give u his name??
if so u can ask it by using the GetHostName() feunction in the tcp/ip classes
Have Fun
Never forget it
|
|
|
|
|
What about something like this:
ManagementObjectSearcher mySearcher = new ManagementObjectSearcher("\\\\remotemachinename\\root\\cimv2", "SELECT * from Win32_Processor");
foreach (ManagementBaseObject obj in mySearcher.Get())
{
...
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm trying to create a program that converts an image file(PNG,GIF,JPG,JPEG) to an Icon file.
using the Bitmap class, i tried saving it something like
Bitmap bitmap = new Bitmap(imageSource);
bitmap.save("test.ico", ImageFormat.Icon);
The result, I was able to produce a .ICO file. Ok here's the problem, I wanted to use the Icon for my Application in C# so I click on the ICON properties of the FORM and It let me browsed the location of the ICON file I want to use. So I used the recently converted image and BAM!! ERROR!!!.. I dont know why.. but if i use other icon files it is working.. am suspecting I did something wrong with the code.
|
|
|
|
|
If I am correct, .NET does not natively support exporting to .ico. You can probably get the same effect of what you are doing by renaming the extension of a bmp to ico. Then you can emulate the appearance of an ico but it will be unusable. I believe their are a few articles on this site that may be able to help you with converting images to an ico.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
This works - it's code I found on the internet in VB which I've converted to C#. It's a bit messy so could probably be tidied up a bit but it's a starter.
Bitmap myBitmap = new Bitmap(@"c:\pic.jpg");
Bitmap bmp = new Bitmap(32, 32);
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(myBitmap, 0, 0, 32, 32);
IntPtr HIcon = bmp.GetHicon();
Icon newIcon = System.Drawing.Icon.FromHandle(HIcon);
FileStream stream = new FileStream(@"c:\pic.ico", FileMode.Create);
newIcon.Save(stream);
stream.Dispose();
g.Dispose();
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
We have an ASP.NET forum. And, it's easy to integrate Google maps to your site.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hello everyone,
When we sending Http request, does the fields (key/value pair) in Http header (througt POST) or the key=value pairs in URL after ? (in Http GET) case sensitive or case in-sensitive? I can not find a standard document mentions this point.
thanks in advance,
George
|
|
|
|
|
You may want to search for the word "case" or "sensitive" in
this document:
HTTP 1.1[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark!
In section "4.2 Message Headers", seems the document does not cover whether values are case sensitive or case in-sensitive, it only mentions the header names are case in-sensitive -- "names are case-insensitive.". Any comments?
regards,
George
|
|
|
|
|
George_George wrote: it only mentions the header names are case in-sensitive -- "names are case-insensitive.". Any comments?
Section 14 has the details for all the headers.
From section 2.1 (which states how to read the details in
section 14):
""literals"...Quotation marks surround literal text. Unless stated
otherwise, the text is case-insensitive."
So from that I would assume all case-insensitive unless it
states otherwise in section 14.x
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
You think the Http header values of key/value pairs are so called "literals" in this document? But I can not see the BNF formular in this document formally defines values for key/value pair as "literals". Any comments?
regards,
George
|
|
|
|
|
George_George wrote: You think the Http header values of key/value pairs are so called "literals" in this document?
No. Section 2.1 tells you how to interpret the notation used in section 14.
For example:
14.9 Cache-Control
Cache-Control = "Cache-Control" ":" 1#cache-directive
cache-directive = cache-request-directive
| cache-response-directive
cache-request-directive =
"no-cache" ; Section 14.9.1
| "no-store" ; Section 14.9.2
| "max-age" "=" delta-seconds ; Section 14.9.3, 14.9.4
| "max-stale" [ "=" delta-seconds ] ; Section 14.9.3
| "min-fresh" "=" delta-seconds ; Section 14.9.3
| "no-transform" ; Section 14.9.5
| "only-if-cached" ; Section 14.9.4
| cache-extension ; Section 14.9.6
cache-response-directive =
"public" ; Section 14.9.1
| "private" [ "=" <"> 1#field-name <"> ] ; Section 14.9.1
| "no-cache" [ "=" <"> 1#field-name <"> ]; Section 14.9.1
| "no-store" ; Section 14.9.2
| "no-transform" ; Section 14.9.5
| "must-revalidate" ; Section 14.9.4
| "proxy-revalidate" ; Section 14.9.4
| "max-age" "=" delta-seconds ; Section 14.9.3
| "s-maxage" "=" delta-seconds ; Section 14.9.3
| cache-extension ; Section 14.9.6
cache-extension = token [ "=" ( token | quoted-string ) ]
All those directives in quotes are literals. They are case insensitive
unless otherwise noted.
I see no reason to use any other case but exactly what they show in the
specicification
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
1.
I think we have got the conclusion, for key/value string pairs, both keys and values are case insensitive, correct?
2.
How about URL? I know domain part of URL is case insensitive, how about other parts? I read the RFC and found there are separate parts for URL and URI, and I am confused which should be the correct conclusion for URL case sensitive/insensitive?
regards,
George
|
|
|
|
|
George_George wrote: both keys and values are case insensitive, correct?
That's what I see. I think there's only one that mentions case sensitive
quoted strings.
George_George wrote: How about URL?
It's not entire clear, but from section 3.2.3 -
SHOULD be case-sensitive except for the host name and scheme name,
where "SHOULD" is apparently defined in RFC 2119.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
Let us summarize our discussion here.
1. For Http header key/value pair, all of the characters are case in-sensitive;
2. For URL, scheme/domain parts are case in-sensitive, and other parts (e.g. query part) are case-sensitive;
Correct understanding of our long discussion?
If yes, two more questions,
1. "case sensitive quoted strings." -- I think you are talking about Http header key/value pairs, but which part in RFC do you refer to when make this conclusion?
2.
"SHOULD be case-sensitive except for the host name and scheme name, where "SHOULD" is apparently defined in RFC 2119." -- could you let me know from which BNF formula or definition do you have this conclusion please?
regards,
George
|
|
|
|
|
Hi,
I wanted to validate a digital certificate by checking online CRL by C# code. To do this task, I use, X509Certificate2 and X509Chain class. But, a status saying "RevocationStatusUnknown" is coming as a result. CRL specified in the certificate is accessible via internet explorer on my m/c. Is there any access permissions we need to set @ IIS in order to access CRL?. IIS is running on local m/c here.
Could anyone please throw light on this?
Thanks In Advance
Ajil
|
|
|
|
|
Have you set the X509Chain.ChainPolicy.RevocationMode to X509RevocationMode.Online?
|
|
|
|
|
hi all,
we developed windows application (c#),we created setup file using bellow
linq,
it is showing error message at the time of installation
as "object reference is require".
http://www.codeproject.com/KB/install/sqlscriptinstall.aspx[^]
|
|
|
|