|
I assume you've built on a standard Windows box. It sounds like you have a reference to a component in there that doesn't exist on WinCE 5."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hello,
i want create MMS File ,
To Create mms file have to write some haders .
First one (X-Mms-Message-Type: m-send-req)
i write that string to file when i open that file i can just read that string as normal text
but when i open the mms files it in Binary Format Like
Œ€ک1267008088 چ’‰
پ…K…—ê0122555383/TYPE=PLMN –
êFW: Dodo „ ³‰application/smil
i use that code
01.FileStream stream = new FileStream("C:\\mysecretfile.mms", FileMode.Create);
02.BinaryWriter w = new BinaryWriter(stream);
03.w.Write("X-Mms-Message-Type: m-send-req");
04.w.Close();
thank youJavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
There is nothing wrong with your snipset. I get this in file: 'X-Mms-Message-Type: m-send-req'
|
|
|
|
|
Sorry for my bad languish
what i want is get that
Œ€ک1267008088 چ’‰
پ…K…—ê0122555383/TYPE=PLMN –
êFW: Dodo „ ³‰application/smil
not the normal text .
thnak you for your hellpJavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
In that case, write as a byte[]
|
|
|
|
|
hello,
thank you for you help .
i convert string ti byte[] and write it still get the string as normal text .
i use that code
FileStream stream = new FileStream("C:\\mysecretfile.mms", FileMode.Create);
BinaryWriter w = new BinaryWriter(stream);
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
w.Write(encoding.GetBytes("X-Mms-Message-Type: m-send-req"));
w.Close();
JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
mohamed antar wrote: i convert string ti byte[] and write it still get the string as normal text .
Of course it is behaving that whay. You need to write each byte manualy. You can't easly convert string to binary format.
example:
FileStream stream = new FileStream("C:\\mysecretfile.mms", FileMode.Create);
BinaryWriter w = new BinaryWriter(stream);
w.Write(new bytes[]{0x42, 0x49, 0x4B, 0x69, 0xED, 0x47});
w.Close();
|
|
|
|
|
hello and thank you for your hellp
how i convert my string to thsi format
"0x42, 0x49, 0x4B, 0x69, 0xED, 0x47"JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Use program like HEX editor or viewer. Open your file and you will get proper binary format. Simple convertion from Binary to string results in a broken string. And if you wanted to convert back, you get a non working file
|
|
|
|
|
is ther a way to convert string using code ? JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
String is Binary, but you wan't specific format. What is this application you are creating and what kind of file is it?
|
|
|
|
|
i want create MMS Mobile File JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
You mean: Multimedia Messaging Service message file?
|
|
|
|
|
yes JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
|
thank you for your long help
i will try that ..JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:08am.
|
|
|
|
|
Sorry for my bad languish
what i want is get that
Œ€ک1267008088 چ’‰
پ…K…—ê0122555383/TYPE=PLMN –
êFW: Dodo „ ³‰application/smil
not the normal text .
thnak you for your hellpJavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:08am.
|
|
|
|
|
byte[] b = Encoding.ASCII.GetBytes("Hello World");
when i write the b its give me "Hello World"
how i convert Hello World to this format 0x01, 0x02, 0x03JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:07am.
|
|
|
|
|
thank you for your hellp JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Hi.
How i can edit listview item label like windows?
For example , in my listview have item and its text is "MyFile.exe" .
When i try edit, this label text selected fully:MyFile.exe.
But , in vista text selected without extention:MyFile.exe
How i can do it ?
Thanks .We are haven't bug,just temporarily undecided problems.
|
|
|
|
|
Look into selectedtext, you can specify the start position and the length of the text to be selected. Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi, Thanks for reply.
In ListView cantrol haven't selectedtext , startposition.
I'm using C# .net framework 2.0. I'm not shure , other .net framework versions have selectedtext
property.
Anybody help ?We are haven't bug,just temporarily undecided problems.
|
|
|
|