|
This response skirts your question, but maybe it'll help anyway
I just outline the text with a color that would make the text stand out on; you wind up with 4 extra DrawString calls, but those should be faster than dimming the entire bitmap.
This is the most common technique used for subbing a film.
James
|
|
|
|
|
No I don't want that. Lets say I pickup the image of bob from CP website or for that matter your pic and I want it as a background of lets say a webpage. What all do I need to do so that the text is clearer and the image is also not that bad.
|
|
|
|
|
sounds like what you probably want is to reduce the image's contrast. not sure how you do that in C#/GDI+, tho.
-c
Cheap Oil. It's worth it!
|
|
|
|
|
|
The answer to your question is 42.
|
|
|
|
|
|
|
I'm trying to futz around with sending files using MSN Messenger, but by using its chat api instead of a direct connection.
so ive got a file i need to send 400 characters at a time[msn's max text length] as text. Ive copied the file into a byte[], but now i need to be able to send that as text.
any suggestions? i think this is easier than im making it, but ive never done anything like this.
|
|
|
|
|
I prersonally did not get the MSN MessengerAPI to work under C# (of course I could never get the Key from Microsoft for testing. Or are you by chance using the older API?
At the moment I am using the direct method to the server.
Rocky Moore
|
|
|
|
|
I've got the code from Sells Brother's site. works perfectly.
http://www.sellsbrothers.com/default.aspx
what do you mean by direct method?
I am going to push a byte[] onto a string buffer using spaces between entries. is that a good method?
|
|
|
|
|
Rocky Moore wrote:
I could never get the Key from Microsoft
What key?
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
|
We are facing a problem of :
We call a VC++ exe (Form View single document application) from C#
But we want to close it after it’s execute
We tried after
WaitForProcess
Process.CloseMainWindow
&
Process.Close
I want to load a flash movie in the initialization of a C# program
WaitForProcess
i tried both these functions:
Process.CloseMainWindow
&
Process.Close
there is another problem:
I want to load a flash movie in the initialization of a C# program
|
|
|
|
|
We are facing a problem of :
We call a VC++ exe (Form View single document application) from C#
But we want to close it after it’s execute
We tried after
WaitForProcess
i tried both these functions:
Process.CloseMainWindow
&
Process.Close
there is another problem:
I want to load a flash movie in the initialization of a C# program
|
|
|
|
|
I have a fundamental question about
the way .NET handles the object orientated way of
persistence. I am coming from JAVA and WebObjects (Apple)
World and I am looking for a convenient way of working
with objects without seeing any SQL statements only
objects. I have used that approach for years on the
WebObjects Platform (Enterprise Object Framework) and in
Java recently (Container Managed Persistence). I am
looking for something like that in the Microsoft world.
As far as I understand Microsoft does not distinguish
between the Object Model and the Relational Model. The
main difference is that the Object model allows n : m
relationships and the Relational does not allow them. Here
a small example to visualize the problem:
Example:
There is a Patient object with following Attributes
String patientGUID;
String name;
Int age;
Hashtable diseases; (or some other Container like
Collection or Array)
And there is a Disease Object
String diseaseGUID;
String name;
In the object Model there is relation between Patient and
Disease where the patient has his diseases but on the
other site one disease can belong to 1..* patients. (n :
m)
That n : m relationship can not exist within a relational
database without a link table that contains the
connections between the tables: Patient and Disease.
Now, I would like to connect the object Model containing
TWO Entities (Patient, Disease) with the relational
database (containing THREE tables). Then I want to work
with my objects; e.g. create new diseases connect them to
existing patients by putting the diseases into the array
or create new Patients and connect them with already
existing diseases or just change a Patients name. When I
am finished I just want to say SAVECHANGES and the
database is updated accordingly including all link table
entries.
So all I have to care about are my objects and the
relations between them, some invisible layer does all the
dirty work like building SQL, converting the data types
and caching. So if I fetch a Patient with a specified GUID
I do not have to care about fetching his diseases. They
are fetched automatically. If there are too many Diseases
I do not care some kind of algorithm handles that problem
in such a way that if I have to search all of them for
something they are simply there. They are loaded on demand
(lazy evaluation)
Supposing that the disease has a further connection with
some DiseaseType Object/Table and that table has an
attribute/column "Description" I can access it by typing
the following code:
TextField1.Text = currentDisease.type().description()
Please note that to retrieve the description value I did
only fetch the Patient. The diseases and its types were
fetched automatically.
Is something like that possible or am I excepting too much
of the .NET?
Pawel
|
|
|
|
|
I am not an expert on this, but I think the Dataset object in ADO.NET will do what you want. It isn't limited to single-table queries but can handle multiple tables and relationships.
It's also disconnected, and knows how to reconcile changes back to the source tables.
|
|
|
|
|
gicio wrote:
Is something like that possible or am I excepting too much
of the .NET?
It is possible, but I don't think there is anything available yet to do so. I've heard of several projects that are working on doing this, but I can't remember any names
James
|
|
|
|
|
gicio wrote:
Now, I would like to connect the object Model containing
TWO Entities (Patient, Disease) with the relational
database (containing THREE tables).
actually... I would claim that a good design gives you three objects, just like the relational model.
You have the Patient object, the DiseaseCollection object, and the Disease object.
that said, I think it would serve you well to take a look how Connections, Adapters, and Strongly Typed DataSets can fit together to create a very usefull and powerful data object engine.
|
|
|
|
|
is it something like Objectspaces ???
Pawel
|
|
|
|
|
couldn't really tell you the answer there because i'm not too familiar with objectspaces.
|
|
|
|
|
hi!
have you some infos about objectspaces???
Pawel
|
|
|
|
|
How can I open and preview the font in my app?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
Im using a mySQL DB and some obj that does the connect to it (called DBOperation).
in the DBOperation() constructor I do my connecting to the DB
myDb = new OleDbConnection(myConnectionString);
myDb.Open();
then i got some funtions for reading/writing..
in my ~DBOperation() destructor I call a Disconnect() fkt where i do:
myDB.Close
but while Calling that i get a Exception : "Handle is not initialized"
here is the full Exception Text:
Exception: Handle is not initialized.
at System.WeakReference.get_Target()
at System.Data.Common.WeakReferenceCollection.Close(Boolean flag)
at System.Data.OleDb.OleDbConnection.CloseReferences(Boolean canceling)
at System.Data.OleDb.OleDbConnection.DisposeManaged()
at System.Data.OleDb.OleDbConnection.Close()
at DBTest.DBOperation.Disconnect()
at DBTest.DBOperation.Finalize()
Can anyone tell me why this happens ... any Help would be great
Yours LaMagra
|
|
|
|
|
Are you sure your destructor is called?
It sounds like that on yoo, but the destructors in C# is not the same as C++' destructors. It's not a guarantee that C# destructors are called when an object is destroyed. I don't knwo why (have forgot it )
But this maybe wasn't big help to you, sorry!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
This code doesn't work for me:
String str = this.textBox1.Text;
String newStr = str.Trim();
MessageBox.Show(newStr);
The MessageBox that appears contain the string WITH all white spaces!!!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|