|
Actually i want to embedd custom fonts in the app and use them on the clients machine i.e without installing the fonts on their machines.
I use a class that create a bin file from the font file.
To use this font I have a method in my FontEmbedder class
This method requires the handle to the control that contains the text to be shown.
o O º(`'·.,(`'·., ?,.·''),.·'')º O o°
»·'"`»* *? t4ure4n ?* *«·'"`«
°o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°
|
|
|
|
|
Is it possible to target Silverlight using C# 2008 Express yet?
|
|
|
|
|
SP1 AFAIK (or was that just for MVC?).
|
|
|
|
|
Thanks, I'll give it a go and risk the SP1 Beta.
|
|
|
|
|
Can anybody help me how to use HTTP protocol in client server application uisng scoket programming
|
|
|
|
|
Do you have specific problem? Or do you lack the ability to search the Internet?
|
|
|
|
|
Hi All,
I want to generate reports dynamically. Please guide me.
Thanks.
Chanzeb Chaudhary
|
|
|
|
|
myReport.GenerateDynamically();
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Hi,
Hope every1 is doing fine. i want to read .DTD file programmatically. is there any way to do this in C# 2.0? do DOM provide such facility? i googled alot but could not find any helpfull material.
any kind of help is appriciated...thanks in advance!
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
How did you fail to see the same question being asked less than 4 hours ago?
|
|
|
|
|
Hi all,
I am trying a sample program to retrieve second highest element in an array (not arraylist)?
But i am unable to retrieve it,can anyone help me in this?
Thanks
AKP
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
yadlaprasad wrote: I am trying a sample program to retrieve second highest element in an array (not arraylist)?
Then you need to sort the array (descending oder, i.e. highest to lowest), then take the second element.
|
|
|
|
|
or loop through the array after sorting to check if the value arr[n] is different from arr[o] and take that value.
It depends if you can guarantee uniqueness of items
|
|
|
|
|
Hi Guys,
has anyone ever done anything like interact between two programs?
I have one program that authenticates people based on their biometric data written in MFC (one EXE).
Now i'm writing another program for medical records. (Another EXE).
How do i know when the biometric authenticating program has finished authenticating, and its result, i.e: true or false.
I need to run the first program, then based on its results, run the second. Any help please. I'm stuck!
Help!
He who goes for revenge must first dig two graves.
|
|
|
|
|
Creamboy wrote: has anyone ever done anything like interact between two programs?
Yes.
Creamboy wrote: How do i know when the biometric authenticating program has finished authenticating, and its result, i.e: true or false.
What external interfaces does it provide?
Creamboy wrote: I need to run the first program, then based on its results, run the second. Any help please. I'm stuck!
Do you mean that the authentication program does the authentication, exits with some sort of return code which your second program can then use to determine if it can continue or not? If so then that really sucks! There is no real security in that scenario, the first program could potentially be swapped out easily by something malicious.
|
|
|
|
|
Colin,
the program exits with no exit code. After identifying, it exits normally. All i'm saying is, before its exit, how do i know if it identified the person as already registered, or not.
i was thinking i could write a value, like 0 or 1, to a file then use a timer from the second program to check the value written. Is that logical and safe?
Colin Angus Mackay wrote: Creamboy wrote:
has anyone ever done anything like interact between two programs?
Yes.
please can u give a scenario on how u did this.
Big thanx.
He who goes for revenge must first dig two graves.
|
|
|
|
|
Creamboy wrote: i was thinking i could write a value, like 0 or 1, to a file then use a timer from the second program to check the value written. Is that logical and safe?
File systems are too easily compromised. Also this method is increadibly inefficient.
Creamboy wrote: please can u give a scenario on how u did this.
There are tons of scenarios. WCF (Windows Communication Foundation) is the way to go these days as it encompasses so many ways of communication in a consistent way.
The first thing you really need to do, based on your replies, is to buy a book on security and read it. This is one area where writing code based on a little information can get you in to real trouble. You need to really understand how your system hangs together. Without that knowledge you'll end up blowing great big security holes in your system.
|
|
|
|
|
i've used remoting to do this before.
You have to watch out for "man in the middle" type attacks as Colin said.
I would guess you want some kind of 2 way authentication to ensure that the authorisation component isn't compromised
|
|
|
|
|
Russell, please could you explain how you achieved this with remoting. Although, i have an idea of remoting i've never used it. What about the writing to files method? Is that okay?
He who goes for revenge must first dig two graves.
|
|
|
|
|
Hello everyone,
I can not find answer from MSDN. My question is, when Console.ReadKey is called on a thread,
1. the thread will be still in running status (like we call Sleep), which will consume CPU time?
2. or the thread will be in wait status like we call WaitOne, and keyboard press will signal the event?
thanks in advance,
George
|
|
|
|
|
ReadKey will block till it gets a key press. IT should not use any CPU while in this state. I am not sure what you mean by the rest of the question.
|
|
|
|
|
Thanks leppie,
Question answered. Cool!!
regards,
George
|
|
|
|
|
Hi everybody,
in my project i receive via sockets an array of bytes.
I send the data from a C++ application to my C# instance.
The Byte-Array is decoded via ASCIIEncoding.ASCII.GetString()
For all standard-chars it work fine, but special characters like ä,ö,ü
aren't translated correctly.
I did a test with a loop, which creates me a byte-array from 0 to 500
then i decode it with ASCIIEncoding.ASCII.GetString() into a string.
I can't find the ä,ü,ö characters into the created string.
if i write string s = "äöü"; the characters are also recognized and are
working correctly.
How i can translate my byte-array that i get the correct characters?
Big thanks for any help
|
|
|
|
|
Use Encoding.Default or a UTF8 or Unicode one.
|
|
|
|
|
I've tested different encodings, UTF8, Unicode, ... nothing worked for me
then a simple Encoding.Default, like you told me works perfect
Big thanks to you !
|
|
|
|