|
leppie wrote:
The texteditor component is by far the biggest hog.
I'd have to agree. It's both a memory- and resource-hog. Incidentally, in Windows 98, if you have less than about 45% GDI resources, it doesn't repaint - it gives an error because the bitmap can't be created.
If you manage to do major improvements, you might want to help to get them integrated back into SharpDevelop.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I have to say that the the codebase was well designed, but not well coded. Basically someone needs to get in there and clean up the mess.
jdunlap wrote:
If you manage to do major improvements
I have suggested things but neither of them appear to be implemented. Actually one is a coding error with respect to font quality. They override it with there own setting (instead of leaving it to Default), and as you can see the text looks @#$@ especially using Lucinda Console. Also they are creating too many GDI resources instead of reusing existing resources. Line quality is also not very good.
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
leppie wrote:
I have suggested things but neither of them appear to be implemented.
Me too!!! I actually suggested back when i was reviewing their book however still the same approach. I got to give to them #D is a really good iniciative including with some clever design with the Adding tree and all that however as you stated "Line quality is also not very good".
Yep, it is very hard to get open source up and running
Furthermore, I was really interrested in an Babel service as well for IL... ...I dont really have the time to code an entire Unmanaged by myself.
When I find a Babel service then we will be able to grow old together....;P
Cheers,
Erick
PS: Great blog!
|
|
|
|
|
Erick Sgarbi wrote:
Furthermore, I was really interrested in an Babel service as well for IL... ...I dont really have the time to code an entire Unmanaged by myself.
When I find a Babel service then we will be able to grow old together....
The templated Babel service is rather good. It took all of a few minute to make a code highlighter, mind you I never did figure out the yacc bit. But not to fear.
I'm busy writng a lexer/parser in C for uni (that will be ported of course) that is quite dynamic. It handles context free scanning as well grammer based parsing, and I have a nice idea to make a nice compiler interface for it. Also it uses a simplified flex/yacc notation. This will fit nicely in with the babel service.
Erick Sgarbi wrote:
PS: Great blog!
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Do you have any idea on how i could write a program which could search for any unwanted and unused entries in the registry?Target platform is Win XP. I just need an overview or strategy about how to design a program which could clean the registry.
Thanks.
|
|
|
|
|
hi, got a very straight forward question about Hashtable. Here's my C# code:
Hashtable users = new Hashtable(57);
users.Add("admin", "adminpwd");
users.Add("custofficer", "cust");
users.Add("branchmanager", "manager");
Console.WriteLine("passwd: {0}", users["admin"]);
I just want to do the same in C++:
Hashtable *users = new Hashtable(57);
users->Add(S"admin", S"adminpwd");
users->Add(S"custofficer", S"cust");
users->Add(S"branchmanager", S"manager");
//Error here: "...error C2143: syntax error : missing ';' before '.'"
String * passwd = users[S"admin"];
//"...error C2143: syntax error : missing ';' before '.'
Console.WriteLine("passwd: {0}", users["admin"]);
Any idea?
norm
|
|
|
|
|
|
thanks for the feedback. but, it didn't work for some reason:
Hashtable* users;
users = new Hashtable(53);
users->Add(S"admin", S"admin");
users->Add(S"custofficer", S"custofficer");
users->Add(S"branchmanager", S"branchmanager");
//Compiler error here.
if(sPasswd==(String*) users->[sUser])
return "account number: 90210";
else
return "invalid password";
norm
|
|
|
|
|
norm wrote:
//Compiler error here.
if(sPasswd==(String*) users->[sUser])
return "account number: 90210";
else
return "invalid password";
(String*) not allowed, use the proper casting technique.
users->[sUser] what happened to S"User"?
norm wrote:
return "account number: 90210";
else
return "invalid password";
Now you are return unmanaged strings....
And lastly, try this: users->get_Item(S"User")
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Hello, this is my first thread here. Mmmkay.
I'm not sure if i am right, but i assume that this forum is for C/C++ ? I compile most of my projects with LCC for win32.
So...What i am looking for but am unable to find ANYWHERE is some sort of 128-bit string encryption. Since i am developing a server application which holds some very sensitive settings which currently is for display if anyone decides to hexedit my application.
So...I want to encrypt these settings which currently are stored in strings as this: const char Password[] = "TEST";
Now you probably know what i mean when i say my current method is very, very insecure. I have searched the net for something that would encrypt my strings but i am very new into this and especially encrypting stuff (I just began growing interest for this stuff a month ago or so...)
Is there anyone out here who knows how i could encrypt strings and then decrypt the strings in WinMain ? So that it is usable by the application again....Please help it's very important and i will ofcourse give full credit for whoever decide to help me out...I'm getting rather desperate for something which would encrypt my settings...I don't like passwords and logins to be visible for anyone with a Hex editor...
Regards, and thanks in advance,
Micke Andersson
amateur....
|
|
|
|
|
I don't have much experience with LCC, but I suppose you can call Win32 APIs from it. It that's the case, you probably can call CryptoAPI.
I hope that you have money because it’s necessary to be practical.
And I hope that at least once a year you put some money in front of you and say "you are mine" just to make clear who owns who. - Victor Hugo
|
|
|
|
|
I guess i'll just have to read up a bit instead but thanks anyway...
I ARE SYSTEM33R!#@
|
|
|
|
|
How to create a IE toolbar in C#?
make my app run in the toolbar?
need resource codes,
Thanks.
|
|
|
|
|
See this article[^].
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Thank you very much,jdunlap!
|
|
|
|
|
I am seraching for a way to connect Matlab from c#.
I serch for Example like in VB:
Set MatLab = CreateObject("Matlab.Application")
result= MatLab.execute("a=5")
|
|
|
|
|
|
I want to make to rows vertical rather horizontal anyone know how?
much like a cross resultset
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
hi !
there is an article dealing with this topic:
http://www.codeproject.com/useritems/Datatable.asp
bye
andi
|
|
|
|
|
I have a game in c# i'm making
A CPlayer is a
CGeneral is a
CPerson
ok so what if CGeneral and CPlayer need to implement the CEditableObject interface
do I use the override modifier in CPlayer so it overrides CGeneral or would I just do it as normal for both.
I think the first but would like a pointer on this to avoid confusion.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I want to develope a voice messenger with .NET framework. I heard about something like MS Speech Server, can it be useful for me in this regard?
Pleas help me tell the solution...
Thanks,
Naveed Ahmad
Naveed Ahmad
naveed@ssghazi.com
|
|
|
|
|
QUESTION 1. Can you pass custom defined object through COM interface? If you "Add Function" (right click classview on an ATL object/class), "Add Member Function Wizard" pops up. One can "choose" parameter type from the list of options available.
But what if I want to pass across interface the following:
a. A result set?
b. A user-defined class:
CMyClass
{
};
How can I do that? And can I do that in the first place?
QUESTION 2: What's the diff between "retval" and "out":
[propget, id(3), helpstring("property ComputerName")] HRESULT ComputerName([out, retval] BSTR* pVal);
"retval" IS "out" isn't it? If pVal is passed as a pointer, why do you need to marked the parameter as [out][retval]?
QUESTION 3: With ATL server projects, how can you add multiple interface? When you add "ATL simple object", the first interface is created for you by the wizard. Do you have do add to IDL file manually for subsequent interfaces? Is all that you need to do is to add to IDL? Any additional steps?
Thanks!
norm
|
|
|
|
|
norm wrote:
QUESTION 2: What's the diff between "retval" and "out":
[propget, id(3), helpstring("property ComputerName")] HRESULT ComputerName([out, retval] BSTR* pVal);
"retval" IS "out" isn't it? If pVal is passed as a pointer, why do you need to marked the parameter as [out][retval]?
retval = return val. in the case of com its the return value of success. I havent done ATL programming in 6 months so bare with me. you return S_OK or S_FAIL. This is built in for com and should be either or. It indicates a pass or fail for the service host.
out is just return value you got that drill.
norm wrote:
QUESTION 3: With ATL server projects, how can you add multiple interface? When you add "ATL simple object", the first interface is created for you by the wizard. Do you have do add to IDL file manually for subsequent interfaces? Is all that you need to do is to add to IDL? Any additional steps?
Well this one is an absolute pain and yes you will have mastered IDL by time you get this one down, i sure did. Add another simple object then add the interface instuctions to the main idl.
And dont forget depending on the clienbt accessing your com depends on the interface you inherit. Scripting versus the other<place the="" name="" i="" forgot="" here="">.
A great book that explains it in detail and in my opinion is invaluable to the ATL/COM programmer
by the way to pass an interface (CMyInterface **ppObject)
as you may know all interfaces are a pointer to a pointer
hope this helps. You might ask this in the ATL subject
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I havent dealt with COM for almost a year - until recently, I built some stuff using ATL - that's simlpe enuf.
But now, I don't remember anything more than "interfaces are pointer to pointer", nevermind connection points,STA-MTA and all the rest =)
Lucky dot-net arrives. Remoting is rather easy to implement. If my job doesnt require that i code COM/ATL, i'd prefer not and spend more time on the recreational side of my life.
Thanks for feedback.
norm
|
|
|
|
|
by the way if you havent done custom collections in ATL I would seriously by that book. It teaches them the best I've seen which was the sole reason I bought it but it was so good at explaining the core fundamentals of com I read it all the way through.
It also shows vb and c examples of using yoour object so you get a more vast understanding.
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|