|
Can I find such a control (or similar) in C#?
Tomiga
|
|
|
|
|
There isn't anything built in; but you can always use the IE browser control and try to tie into its events.
Better yet You can use MC++ as your glue so you can use MFC and an MC++ class to communicate with your C# application.
HTH,
James
Simplicity Rules!
|
|
|
|
|
James T. Johnson wrote:
Better yet You can use MC++ as your glue so you can use MFC and an MC++ class to communicate with your C# application.
Sounds like a sticky mess.
Nick Parker
|
|
|
|
|
many xml have a DOCTYPE point to a dtd file in a far web site.
just like my download svg sample, it writes
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
"http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
well, either i use XmlDocument.Load(string) or
first open a XmlTextReader and then Load(XmlReader),
I face a long long wait(my internet link is rather slow). The reader try to get the dtd!
How can i instruct the reader to neglect it or tell it that the dtd sit in one of my hard disk's directory? Dont tell me to edit the DOCTYPE element manually to change the dtd url. That's the work the program should do.
Any way?
|
|
|
|
|
Jenny Li wrote:
That's the work the program should do.
Actually I think that is something it shouldn't be doing. It needs the DTD so how is it to know where one is except from the DOCTYPE. When you tell it to load an XML file it is going to do just that, if you don't want it to load the DTD then you should remove the DTD before telling it to load the document.
James
Simplicity Rules!
|
|
|
|
|
Can someone give some advice on how to use a webcam in a C# project?
|
|
|
|
|
Are you looking for an example on how to include the visual aspect of it in an application, or just ideas?
Nick Parker
|
|
|
|
|
I`m trying to connect two apps with a webcam, say like yahoo messenger or similar, but don`t really know where to start. I guess i`ll have to deal with COM components. If there is any idea, or example it`d be great
|
|
|
|
|
|
I would be surprised if there are any non-MS conventions out yet!
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
I'm assuming you're referring to naming conventions. If so, there aren't any that are written in stone at this point. I cover this in the first edition of Inside C#, but to summarise that information, a mixture of camel (lowercase) and Pascal (mixed case string with an upper case letter) casing are used. Pascal naming is generally used on method names and camel casing is used with variables.
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
As Tom pointed out camel and Pascal casing are commonly used. I use camel casing for private objects (fields, properties, methods, and local variables). I use Pascal casing for protected/public objects (fields, properties, methods).
My style changes from time to time though; at one point I was prefixing private variables with an underscore.
James
Simplicity Rules!
|
|
|
|
|
On another note for notation...
I have read that Microsoft is dropping the idea of Hungarian notation for C#, all except for the i before the declaration of an interface.
Nick Parker
|
|
|
|
|
Yes, hungarian notation is definitely being played down by MS. Of course, since we don't see any source code any more (unlike with MFC) it really doesn't matter
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
Tom Archer wrote:
since we don't see any source code any more (unlike with MFC) it really doesn't matter
I don't think this means we should start naming our variables strNumber and iWord however.
Nick Parker
|
|
|
|
|
My point was the opposite; that we are no longer bound by an underlying framework to accept that framework's naming conventions.
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
I know Tom, I was only giving you a hard time, sorry
Nick Parker
|
|
|
|
|
Sorry mate. It's late and I am sooooooooo over this chapter
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
No problem Tom, let me ask you a question. Now that I see you have/are written/writing a book on Visual C++.NET, which language would you prefer to write an enterprise application in if asked to use the .NET Framework? Please don't say Fortran.NET or COBOL.NET
Nick Parker
|
|
|
|
|
Actually, the VC++ book is an MFC book. However, I've done enough in Managed Extensions that I would seriously think about combining MFC and Managed Extensions. MFC for the UI simply because I've used it for 10 years and ME for the cool classes .NET has to offer.
I'm not saying I would do that, but I'd give it some serious considerations under the right circumstances - especially if time was a major issue.
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
As far as I know there is an appendinx in C# specification. (You can find it in your .NET installation folder in C#/C# langugae specification.doc
Tomiga
|
|
|
|
|
Is it possible to define something like variables in methods which have static modifier:
C++ example:
<br />
void MyFun()<br />
{<br />
static int i = 0;
i++;<br />
}<br />
|
|
|
|
|
No it doesn't, static can only be applied to Methods, Properties, Fields, Operators, and Constructors.
James
Simplicity Rules!
|
|
|
|
|
Don't you find that omission completely indefensable?
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
What purpose would be served by making a local scope variable static?
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|