|
Securely? Nowhere. What are you doing that requires an encryption key and why must you ship the key with the application?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thx RageInTheMachine9532,
Well, the key is not ship with the application. But the encryption key(in binary) is generated from a human signature to encrypt file on PocketPC. Where can I store the key?
|
|
|
|
|
In a CSP where it belongs. How you do that depends on which Windows Mobile OS you're targeting (2002 or 2003).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I looked at converting a windows app I had to run on my iPaq but saw that DESCryptoServiceProvider was not supported. What is available on PocketPC 2003?
|
|
|
|
|
Look at the "Supported Platforms" section at the bottom of the documentation topics.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hello --
http://www.unicode.org/charts/PDF/U1D100.pdf[^]
Thank you for reading my thread.I have read several books on rendering with Unicode. But in looking at the Unicode Music Fonts chart (See link above) it would seem that in some instances, there are several Unicode numbers that must be combined to create a musical example. If this is true, is not Unicode in this case a kind of GDI+ ?
Please look at the following example below:
http://www.unicodemusic.bravehost.com/[^]
Can someone please provide an example of how the above musical example can be done in Unicode? If so this would be most appreciated. I can't find anyone who understands how this can be done.
Thank you so much and I hope you are having an excellent day!
|
|
|
|
|
Unicode is a way to encode text - nothing more. It comes in 16-bit and 32-bit flavors.
What renders characters to the screen is a different subject, something you don't really need to worry about. What you do need to worry about is finding a font that actually contains the characters for the musical notes. To date I've not seen any (then again, I haven't looked specifically for fonts with these characters defined). Just because glyphs are defined for certain code points doesn't mean a font has to contain them.
To enter Unicode code points in C# (many other managed languages use the same syntax), use \uXXXX where XXXX is the hexadecimal number of the code point.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
hai all ,
i am creating a c# application where i have a panel and on top of that i have an user control. when i click the usercontrol at any position, i need to capture the exact mouse position on the panel.
Sweta
|
|
|
|
|
in your OnMouseUp event of your control, add the following code:
MessageBox.Show("X: " + Cursor.Position.X + ", Y: " + Cursor.Position.Y);
You can use the Cursor.Position property to find the current location of your mouse cursor on the screen.
Jon G
www.Gizmocoder.com
|
|
|
|
|
After retrieval of the mouse position as described by the preceding posting use the PointToClient method of your Panel to convert the mouse position from screen coordinates into client coordinates of your Panel.
www.troschuetz.de
|
|
|
|
|
Hi~
using CEMAPI
The function
HRESULT IMAPIable::QueryRows(LONG lRowCount, ULong ulFlags, LPSRowSet *lppRows);
The maximum number of return of row is 10 and cannot get the retral rows.
How to get the next 10 rows?
Thanks
|
|
|
|
|
Hi guys i got the question keep asking but haven't got the right answer yet.
The question is how can make the progress bar working with long run process using threading. I have 1 form, a long run process method e.g
public void LongRunProcess(), and a progress bar. i would like to make the progress bar run based on the time of the LongRunProcess(), ie. when the process the progress bar show 100% complete and the UI won't freeze. Anyone help me to do so. Thank you
Popoxinhxan
|
|
|
|
|
You have haven't said what the problem is, other that a general "UI freezes", all we can do if refer you to examples of other Progress Bar controls. Check out Building a Progress Bar that Doesn't Progress[^] for a threaded Progress Bar. The code is in VB.NET, but can easily be translated to C#.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You wrote :
Hi guys i got the question keep asking but haven't got the right answer yet.
This is simply a trick.If are getting good suggection i recommand you to go ahead with that.
I can suggest you one thing. Create a custom event which will increase the value of the progress bar. I mean you need to fill the progress bar without any user interaction or something. Call this event in different stages of your thread execution.
For eg: You have a thred which will execute 100 lines of code. You can call your custom event in alternate 10 lines. You can step the status bar value by 10 in your event handler.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Here is my code but i don't know how to make this work
private void btnUpdate_Click(object sender, System.EventArgs e)
{
timer1.Start();
Thread t = new Thread(new ThreadStart(GetWebServices));
t.Start();
}
//Update the progressBarFormAction this will be put in tick event of timer1
private void UpdateProgressBar()
{
if(prgBar.Value!=prgBar.Maximum)
prgBar.PerformStep();
}
//Long run method
public void GetWebServices()
{
//int noWs =0;
com.strikeiron.www.StrikeIronDirectoryService service = new com.strikeiron.www.StrikeIronDirectoryService();
com.strikeiron.www.LicStatus lic = new com.strikeiron.www.LicStatus();
com.strikeiron.www.RespStatus res = new com.strikeiron.www.RespStatus();
com.strikeiron.www.WebServiceInfo [] list =null;
try
{
list = service.GetAllPublicServices(this.siLicense,out res,out lic);
}
catch (System.Net.WebException)
{
MessageBox.Show(this,"Internet connection error");
}
System.Threading.Thread.Sleep(100000);
}
Popoxinhxan
|
|
|
|
|
You can't monitor the progress of the call to .GetAllPublicServices . Also, by putting the progress increment in a timer, you're not showing the actual progress of the call, but of the timer itself. You best bet to to use a progress bar class that shows something is going on, but not actault progress towards a "100% goal". The link I gave you is a perfect example of this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Still you are into same issue ?. What about my last post. Did you tried ?
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Hi!Dear,
How to conjoin C# code with vc++6.0 code?
where can I get tips about this?
Thanks lot!
|
|
|
|
|
You should start by reading the .NET Framework SDK, such as the section entitled Interoperating with Unmanaged Code[^]. This explains interop'ing with COM servers, clients, and unmanaged functions exported from native DLLs.
There's also a lot of other articles on this site discussing .NET Interop.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi!Heath Stewart,
Thank you very much! I am a new hand with .NET Framework and C# programming,but I found myself fall my love into them.What's more,this website always offers much help,so many warmhearted people there. I am a Chinese programmer,I love this website and I love you all!
Thanks again!
Momer
|
|
|
|
|
hey guys,
if anyone has idea about how to stream a video via asp.net application using flash player or windows media palayer pls post me related site,tutorial or code sample as soon as possible.
best regards from mohan
|
|
|
|
|
You should ask this in the ASP.NET forum.
Honestly, ASP.NET shouldn't stream the video. There's already servers that do that, such as Windows Media Server on Windows 2000 Server and Windows Server 2003.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
i've a private void drawGraph(PaintEventArgs pe) function and i triggle it only after i click the button. However, after i click the button,if i minimise my form or drag it away from view, the drawing disappear. why is it like this?
|
|
|
|
|
You need to override OnPaint and perform your painting operations using the PaintEventArgs.Graphics object passed to the method. Also, don't forget to call base.OnPaint before starting your painting (typically).
If you don't do this, when the form gets invalidated (such as minimizing it) then it will not get repainted.
There are many articles about custom drawing on this web site and you should try searching for some using the search box below the logo at the top of every page.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
hi,thanks for the reply.
(1)However, now i'm using a function to draw my graph.i did not use "PaintEventArgs e" but i did this way
private void drawGraph()
{
MessageBox.Show(""+ getValue);
Graphics myGraphics = CreateGraphics(); //instead of e.Graphics;
Pen myPen = new Pen(Color.Black,1);
............
} because i need to call this function when button1 is click. So how should i go about doing the override OnPaint and base.OnPaint ?
(2)After button1 is click, how do i display the graph onto a PictureBox instead of display it onto the form?
|
|
|
|