|
There are a wide variety of controls, tools, and various utilities found in the free Ghengis Project[^].
#include "witty_sig.h"
|
|
|
|
|
Thanks Judah, will check it out.
regards,
Paul Watson
Bluegrass
South Africa
Chris Maunder wrote:
"I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly."
Jon Sagara replied:
"I think we've all been in that situation before."
Crikey! ain't life grand?
|
|
|
|
|
I've had pretty good experiences with Developer Express[^] and Infragistics[^]. For both, their products work with the theming API and have the toolbars you want.
They both have demos, and their prices are pretty good. Even an independent developer should be able to afford them.
I haven't really dug into the devexpress controls like I have with Infragistics (which we use the UltraWinTree in our product), but I will warn that Infragistics uses a very object-oriented, hierarchical design for drawing. It's a great idea in concept, but on slower machines you'll really notice (perhaps within reason, though).
For instance, with the UltraWinTree, there's a UI element for the client region, a separate one for each scrollbar (if/when applicable), separate ones for the lines, separate ones for each node, and then separates ones within those for the -/+ box, images (yes, plural), and the text. It is extensible, although not always intuitively so!
One more thing: Infragistics doesn't seem to like virtual methods and properties. I guess they just don't expect you to extend their classes (which I had to do for the UltraWinTree, which makes for a much better OO design the way we use our tree). So, things like the UltraTreeNode.Text property you can override. I came up with a kludge that works, but it definitely shows lack of foresight.
My suggestion would be to try them out, of course. Both are pretty good and overall I'm pleased with them.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you Heath, exactly the kind of info I am looking for. Real world use and experience. They all have flashy looking demos.
regards,
Paul Watson
Bluegrass
South Africa
Chris Maunder wrote:
"I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly."
Jon Sagara replied:
"I think we've all been in that situation before."
Crikey! ain't life grand?
|
|
|
|
|
I'm going to get my devexpress controls re-installed and check those out and compare. I've been thinking about dropping the UltraWinTree for something better, but I really need to compare. If I remember, I'll try to post back what I find (such as if Developer Express belives in good OO design with virtual methods and properties (where reasonable).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
Thanks Michael, it comes with the Infragistics Ultra Win Tree which is great.
regards,
Paul Watson
Bluegrass
South Africa
Chris Maunder wrote:
"I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly."
Jon Sagara replied:
"I think we've all been in that situation before."
Crikey! ain't life grand?
|
|
|
|
|
|
Sub : How to use Amazon Web Services..
Hi all...
Please let me know How to start with amazon web services..
I'm not finding any XML or REST Query format to send request to amazon..
I've purchased Seller account but How to use that to upload Items..I don't know...
Please help me getting start..
I hope some one definatly know about this
e-mail if attachment at sumit_kapoor1980@hotmail.com
Thanks...
..---Sumit Kapoor---
|
|
|
|
|
Here are three articles on Code Project which tell you how:
regards,
Paul Watson
Bluegrass
South Africa
Chris Maunder wrote:
"I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly."
Jon Sagara replied:
"I think we've all been in that situation before."
Crikey! ain't life grand?
|
|
|
|
|
Stop Cross posting and take a look: The answer is already on Code Project, if you would care to look.
My suggestion is to use the little search box near the top of this page and type "Amazon web services", ensure the drop down says "Articles" and then press "Go". You'll be amazed at what you can find.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
|
|
|
|
|
The effect is the same, but which one is faster?
if(s == String.Empty)
or
if(s.Length == 0)
?
|
|
|
|
|
From Performance Strategies for Enterprise Web Site Development here on CP:
There is one more item I’d like to address when talking about strings, and that is checking for an empty string. There are two basic ways to check if a string is empty or not. You can compare the string to the String.Empty static property, which is just a constant for “”:
if (firstName == String.Empty)
Or you can check the length of the string, like this:
if (firstName.Length > 0)
I setup a test in the .NET Test Harness and found that the String.Empty comparison check was 370% slower than the length check. This may seem fairly trivial, but every little bit helps, right?
regards,
Paul Watson
Bluegrass
South Africa
Chris Maunder wrote:
"I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly."
Jon Sagara replied:
"I think we've all been in that situation before."
Crikey! ain't life grand?
|
|
|
|
|
Paul is right. If you run your code through the FxCop assembly analyzer, it'll chide you for using if(myString == string.Empty), telling you to use if(myString.Length == 0) instead.
#include "witty_sig.h"
|
|
|
|
|
So why did they bother inventing String.Empty I wonder ?
Try not! Do or do not, there is no try. - Master Yoda
|
|
|
|
|
Because it's faster than loading your own literal "" when needed. There's still uses for it. Perhaps you want to initialize a string member as an empty string instead of null. Just because something may not be useful in one case doesn't mean it's not useful in another.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hello! what can I convert a char* to string?
The cast isn't permitted!
Thanks
|
|
|
|
|
public void ConvertStringChar(string stringVal) {
char charVal = 'a';
// A string must be one character long to convert to char.
try {
charVal = System.Convert.ToChar(stringVal);
System.Console.WriteLine("{0} as a char is {1}",
stringVal, charVal);
}
catch (System.FormatException) {
System.Console.WriteLine(
"The string is longer than one character.");
}
catch (System.ArgumentNullException) {
System.Console.WriteLine("The string is null.");
}
// A char to string conversion will always succeed.
stringVal = System.Convert.ToString(charVal);
System.Console.WriteLine("The character as a string is {0}",
stringVal);
}
|
|
|
|
|
char* someCharPtr;
string myString = new string(someCharPtr);
#include "witty_sig.h"
|
|
|
|
|
ok, I converted a char* into a string as:
string descr= new String(obj[1].descr);
but the problem isn't solved:
//obj[] is:
public struct node {
public int IdObj;
public char* descr;
}
node* obj=getObj();
//getObj is the function included into a DLL
//the string "descr" contain only simbols!!!
thanks for your help!
|
|
|
|
|
Why are you using char* in a .NET struct anyway? Stay away from unmanaged types when possible. A char* or char[] is just a string in any language. Even when P/Invoking native functions, you still typically use a string in place of any character array (char* , wchar_t* , TCHAR* , etc.). It will marshal correctly so long as you marshal using the correct character set (see the CharSet property of the MarshalAsAttribute or StructLayoutAttribute if you're doing this to P/Invoke some native function).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
If i try to replace the char* to string, the compiler make me the following error:
"Impossible accept address/dimension of variable of managed object."
So the only not managed object are char,int,ecc but not string! (independently of "unsafe" environment)
ps: the language used to build the function into a DLL is the C++, so the "string" is a char[].
|
|
|
|
|
A string is also a char* . The difference is how the character array (string) is allocated.
There are properties you can set using the MarshalAsAttribute that I mentioned earlier) that specify the maximum size (in characters, not bytes) or a parameter index that does the same within a struct (if one exists). Read the documentation for the MarshalAsAttribute in the .NET Framework SDK for more information. Trust me, my forté is unmanaged interop. I've never had to use a single unsafe context to P/Invoke anything from basic to complex structs and function calls. They're really only necessary when you need to boost performance of a block of code; for example, iterating through the bits of a bitmap - using an unsafe context is much faster.
You should also see the Marshal class, which includes methods that further prevent you from having to use an unsafe context (because it does it for you, like alloc'ing memory).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Ok, I'll read the MarshalAsAttribute documentation!
Thanks very much for help!
|
|
|
|
|
Do I need to know about the encoding of a file before opening it or is it determined automatically by the framework? If .NET framework cannot automatically determine, then is there any way I can find this out myself? I'm not clear about this character encoding thing, so if you can please explain in detail, that would be of great help.
Thx
Gurmeet BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|