all groups > dotnet sdk > november 2005
HttpWebRequest Host header
Posted by barbutz at 11/24/2005 8:33:05 AM
Hi,
I use HttpWebRequest to send http requests. I use http version 1.0.
The problem is that for each http 1.0 request the framework automatically
adds the "Host" header. This header is a must for http 1.1 but NOT for http
1.0 (rfc 1945)! I need to send a http 1.0 request without this header. I... more >>
Serialization Problem to the extended attribute of a file.
Posted by Rich Schaefer at 11/23/2005 10:44:05 AM
I am having problems with the following method in a Serializable class:
public void SaveMap() {
// Three different ways to open a file
// a) With a handle to an extended attribute on file m_Path (Which is a directory)
// b) With a handle to a file in the directory m_Path
... more >>
bidi support?
Posted by David Thielen at 11/22/2005 10:00:03 PM
Hi;
What .net class has the same functionality as java.text.Bidi? (This is a
class for handling bi-directional text - Hebrew & Arabic.)
All I need is the ability to give a method a string and find where the
string changes direction.
--
thanks - dave... more >>
Where did IHostControl::GetDomainNeutralAssemblies go?
Posted by quension NO[at]SPAM gmail.com at 11/21/2005 2:20:22 PM
It's in the 2.0 SDK documentation, but it's not present in the SDK
headers nor the mscoree typelib, and I can't find any mention of its
removal. What happened? Is there any other hosting interface that
offers equivalent functionality?
... more >>
.NET equivalent for LookupAccountName() Win32 API function
Posted by David Adams at 11/17/2005 9:11:15 AM
Is there an equivalent method in the .NET framework that provides the same
functionality as the LookupAccountName() win32 function? Actually, all I
really need is to find the domain of an Active Directory user account. I
don't need the SIDs.
... more >>
getting value from FieldInfo
Posted by news.microsoft.com at 11/17/2005 12:00:00 AM
how can i get the value from fieldinfo. want to loop all properties and get
the value from my class
FieldInfo[] myFieldInfo;
Type myType = this.GetType();
// Get the type and fields of FieldInfoClass.
myFieldInfo = myType.GetFields(BindingFlags.Instance | BindingFlags.Public);
foreac... more >>
Can I get a truename or canonical filename without using interop?
Posted by Robert Houben at 11/16/2005 10:45:11 PM
I want to know that two forms of an absolute filename reference the same
file. How would I do this without using interop, or is it even possible?
TIA,
... more >>
.Net Windows Forms Audio Playback
Posted by Alex Maghen at 11/15/2005 9:54:32 AM
I'm looking for the simplest, highest-level method for playing back .WAVs
(and maybe .MP3s) from within a .NET Windows Forms app. I'm looking at the
Managed DirectX SDK but I can't find any nice samples. This should be really
simple: I don't need to select audio devices (use the default). I ju... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Books for VS2005 and .NET 2.0
Posted by Janiv Ratson at 11/15/2005 12:00:00 AM
When will Microsoft publish the books for VS2005 and .NET 2.0 .
Thanks,
Janiv Ratson.
... more >>
How to get an assembly's full name?
Posted by cindy liu at 11/14/2005 2:30:04 PM
Hi,
I know the assembly name, dll name and class name, and it is in gac. How do
I know its full name including its public key and version?
Actually what I want to do is to use .Net reflection to load an assembly
from GAC first. If it is not in the gac, let user provide its file path and
... more >>
Graphics.DrawImage(metafile) - no antialiasing
Posted by David Thielen at 11/13/2005 3:07:46 PM
Hello;
I am using the following code to render a metafile:
Metafile mf = new Metafile("../../text box line.emf");
System.Drawing.Bitmap img = new System.Drawing.Bitmap(mf.get_Width(),
mf.get_Height());
img.SetResolution(72, 72);
Graphics g = Graphics.FromImage(img);
SolidBrush sb = new S... more >>
Metafile does not work with emf file
Posted by David Thielen at 11/13/2005 2:56:02 PM
Hi;
I get a weird error if a file is missing. In the following code the emf file
is not there (wrong directory).
When I call:
Metafile mf = new Metafile("text box line.emf");
It throws:
ExternalException - A generic error occured in GDI+
Shouldn't it throw a FileNotFound or something l... more >>
Unable to install 2.0 SDK
Posted by steve bull at 11/9/2005 2:35:03 PM
I am unable to install the new .NET Framework 2.0 SDK. On two different machines. I keep getting the error :
Error creating process <C:\DOCUM~1\steve\LOCALS~1\Temp\IXP000.TMP\Install.exe>. Reason: C:Windows\system32\advpack.dll
I have all the latest patches to the operating system(XP) on... more >>
wmf Image raw GUID says memory BMP
Posted by David Thielen at 11/9/2005 11:20:17 AM
Hi;
When I create a Bitmap object with a file, I then look at the RawFormat GUID
to see what bitmap format the file was in. This works great for all of the
bitmap formats (gif, jpg, etc).
But when it is an emf file, it does not have the Wmg.GUID but instead the
MemoryBmp.GUID. Why does i... more >>
wmf --> bmp background color
Posted by David Thielen at 11/9/2005 4:46:06 AM
Hi;
I asked:
3) The rendered image has a black background. The metafile draws text, a
box, and a line. But the metafile does not first fill the canvas with white.
So the background starts off "empty."
Question:
3) How do I have it start off with a background/fill of white instead of
blac... more >>
wmf -> bmp transparent background
Posted by David Thielen at 11/9/2005 4:43:07 AM
Hi;
I asked:
4) And for bitmap formats that include alpha, how do I start with an empty
bitmap (ie nothing there, its all 100% transparent)?
You said:
4) As I said before if we want to create bitmap, we are draw onto the
bitmap. So what do you mean transparent?
Do you mean all the follo... more >>
wmf --> bmp image size
Posted by David Thielen at 11/9/2005 4:39:08 AM
Hi;
I asked:
Ok, I create an Image passing it a wmf file that is a placable wmf. It's
header has the values of:
bounding box: 06DF, F6F0, 080F, F788
twips/inch: 0048
decimal instead of hex from here down:
This gives us a size in device units of 304 x 144 and a physical size of
4.22" x ... more >>
wmf --> bmp, bitmap size
Posted by David Thielen at 11/9/2005 4:37:03 AM
Hi;
I asked:
Ok, I create an Image passing it a wmf file that is a placable wmf. It's
header has the values of:
bounding box: 06DF, F6F0, 080F, F788
twips/inch: 0048
decimal instead of hex from here down:
This gives us a size in device units of 304 x 144 and a physical size of
4.22" x ... more >>
How to extend an interface generated by WSDL.EXE
Posted by Michael Giroux at 11/8/2005 2:24:27 PM
The wsdl.exe tool generates an interface class xxx.vb
I placed the generated xxx.vb into my virtual web directory along with the
corresponding xxx.asmx file. I have searched the VB.NET docs, and do not
see how to include the interface into my asmx. I suspect Imports statement
might do the... more >>
How do I save a bitmap as a metafile?
Posted by David Thielen at 11/8/2005 12:42:01 PM
Hi;
I tried to take an Image that is a bitmap and save it as a metafile (ie one
record, a DIB) using: img.Save(mem,
System.Drawing.Imaging.ImageFormat.get_Wmf());
However, I get the following:
java.lang.IllegalArgumentException: Value cannot be null.
Parameter name: encoder
at System... more >>
How do I save as a RLE BMP file
Posted by David Thielen at 11/8/2005 12:22:04 PM
Hi;
I am using Image.Save (stream, ImageFormat.get_Bmp()); to create a bmp file.
The source used to create the Image is an uncompressed bmp file.
When it saves it, I want it as a compressed bitmap - the bitmap is 98% white
pixels. How do I tell it to save it compressed?
--
thanks - da... more >>
C# and VB Compilers Included with Free .NET Framework 2.0 Download
Posted by Greg at 11/4/2005 5:49:36 PM
Are the C# and VB compilers that are included with the free .NET Framework
2.0 SDK download the same ones in VS2005?
Why is Microsoft giving these away for free? Not that I am complaining, I am
trying to understand if there's any limitation besides that fact that there
is no IDE.
Thank Y... more >>
Where is WSDL.EXE?
Posted by Michael Giroux at 11/4/2005 1:02:36 PM
I'm looking at documentation in the SDK documentation describing wsdl.exe.
I cannot find the executable, not in framework 1.1 or in framework 2.0.
Can someone tell me where the tool is?
Thanks
Michael Giroux
... more >>
Why does CSocket->Create() hang forever?
Posted by Dave Leach at 11/4/2005 9:12:04 AM
The problem:
A class derived from CSocket is instantiated.
The class's "Create()" function is called.
The "Create()" function never returns -- hanging MyApp.
This only occurs on a small percentage of the PC's on which MyApp is
installed. I know the problem occurs on XP PC's, I don't know i... more >>
Config settings by <name>value</name>?
Posted by David Thielen at 11/3/2005 4:33:03 PM
Hi;
Is there a way other than writing my own xml handler to have config settings
that are a single level where thay are all <name>value</name> instead of <add
key='name' value='value'/>?
--
thanks - dave... more >>
app.dll.config instead of app.exe.config
Posted by David Thielen at 11/3/2005 4:15:01 PM
Hi;
Is there a way for code in my dll to get it's config info from
MyLibrary.dll.config instead of from TheApp.exe.config?
--
thanks - dave... more >>
bmp <--> wmf - setting DPI & size
Posted by David Thielen at 11/3/2005 2:50:02 PM
Hi;
If I want to convert a wmf or emf to a bitmap (bmp for example) using
Image.Save():
1) How do I tell it the dpi to use creating the bitmap?
2) If it is a non-placable wmf (ie no size information), how do I also tell
it the size of the final image?
If I want to convert a bmp to a wmf ... more >>
Getting exception in Image.Save()
Posted by David Thielen at 11/3/2005 2:39:03 PM
Hi;
I am doing the following:
// note data is a .bmp file read it to a byte[]
System.IO.Stream file = new System.IO.MemoryStream(data, false);
System.Drawing.Image img = new System.Drawing.Bitmap(file);
// get 64.4 for dpi - image is good
xDpi = img.get_HorizontalResolution();
yDpi = img.... more >>
|