Is there a CodeParser concrete class to parse C++ code? Sammy "A good friend, is like a good book: the inside is better than the cover..."
profoundwhispers
Posts
-
c++ codeparser -
RSS related questionIf I'm coding an RSS reader in C#, what's the method by which I can tell whether or not this specific item in this feed is new or not? There are no ID tags in the Item XML element in the feed. How can I tell whether or not the user has already downloaded this item? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Editing XML in a user friendly mannerIf I have an XML file that contains classic "Contact" or "Customer" or "Purchase Order" data used in examples out there, is there a way I could, from within this same XML file provide the user with an interface to edit this data in a webbrowser? This should be such that, for example, the user would call: http://myserver.com/thexmlfile.xml and be presented with a form (editable fields) instead of the default XML view of data that internet explorer provides. Is this possible? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Setting webbrowser form fieldsHow can I get an internet page, set its textboxes (fields) programatically and simulate a click event on its submit button (or programatically submit it). I know I could achieve the same effect by posting data directly, but I need to present the page to the user first. Any ideas? Thanks! Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
WebBrowser's Document Complete eventbody.onload is not exposed via the mshtml interface. I have an AxWebBrowser component inside my Windows Forms project. That's where the event is hooked. Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
WebBrowser's Document Complete eventWhen I process this event, it gets called multiple times per page. Why is this? How can I stop it, or should I use another event? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Question about WebBrowser editingI have an AxWebBrowser control displaying a certain page that has two input boxes. I want to Click a button on the form, and have values inserted into those two input boxes. How can I do that? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Error message that doesn't go awayAn unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in system.windows.forms.dll Additional information: Unable to get the window handle for the 'AxWebBrowser' control. Windowless ActiveX controls are not supported.
This happens whenever the application terminates. Sammy "A good friend, is like a good book: the inside is better than the cover..." -
To Heath (we talked about this subject before)Thank you that was very clarifying. Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
To Heath (we talked about this subject before)Well, what I'm doing right now is, I'm providing the binary deserialization mechanism in the static constructor, since I only need to load the settings from the file once in the lifetime of the program. Then, I'm providing a Save instance method so that I could save multiple times, which is needed whenever the settings dialog is opened and closed with Ok button. If there is nothing wrong with this in your opinion, then don't post an answer; otherwise, please comment. Thanks! Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
To Heath (we talked about this subject before)public sealed class Singleton { static readonly Singleton instance=new Singleton(); // Explicit static constructor to tell C# compiler // not to mark type as beforefieldinit static Singleton() { } Singleton() { } public static Singleton GetInstance() { return instance; } }
That was from this[^] article. Maybe you can answer this question: Is there an explicit need there for the private constructor to avoid initialization? If we remove it completely, will .NET supply a default public parameterless constructor? Sammy "A good friend, is like a good book: the inside is better than the cover..." -
How can I do the following...Heath Stewart wrote: singleton pattern I'm sorry, but I don't know what that is :( Heath Stewart wrote: Just put the classes in an assembly... So you do suggest classes instead of structs? I read in an article on CodeProject before by Nishant that whenever you find that you're using a class merely to store values, it's better to use a struct. Comments? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
How can I do the following...I have an application, that needs to have a settings dialog. I want the settings to be available to the rest of the application all the time, even when the settings dialog is closed. In other words, this dialog is merely a utility for the user to modify these settings and save them. I'm thinking, I should have the settings struct, so that it's a value type, which doesn't need instantiation to be used, and be available all through the application lifetime. Now the challenges are: 1- What's the best method to load/save this struct? Can XML serialization work here? If so, how? 2- Can I bind the struct's fields/properties to controls on the settings dialog, so that any modification will automatically reflect in the struct, which, in turn is the one responsible for actually loading/saving all the settings? Thank you. Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Converting strings to DateTime structsYes in fact, it is always in this format. How should I write this function? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Converting strings to DateTime structsI get dates in the following format: Mar-07 13:45 How can I feed this to a ConvertTo.DateTime expression without getting an exception? Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Source code filters in VS help do not persistYou know this inverted shortcut icon on top of each page in VS.NET help; you're supposed to click on it, and it drops down a yellow menu that makes you filter the page by C#, VB or JScript. Well, I have to do this for each page. I want it to stick. Can I do that? Thanks. Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
VS .NetI'm sorry, did that sound sarcastic? That's not what I meant if it did. It's just that your opinion matters to me, I sort of look up to you! Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
VS .NetUh oh. You mean using VS.NET will always make me beneath all those who develop by hand? But I thought that the real essence is not code writing, it's really the thinking behind it, if you know what I mean. This is why IDEs are okay, because they let you concentrate on writing the code that really matters, not the one you know by heart how to write already (like instantiating forms and controls). Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Best way to save state (Windows Forms)Okay, it's not THAT critical :) Thanks! Sammy "A good friend, is like a good book: the inside is better than the cover..."
-
Best way to save state (Windows Forms)Every 30 seconds or so, I need my application to persist state, just in case the power goes off or something like that. What's the best method based upon this time frame? For example: - Save to an XML configuration file. - Save to registry. - Save to binary file (serialize object?) - Something better? Thank you. Sammy "A good friend, is like a good book: the inside is better than the cover..."