ILDASM: How does it work? - c++

While there are many examples of how to use ILDASM, I have yet to find any information as to how ILDASM populates its data. Can anyone please help shed some light on this for me?
Edit: I should mention that I am interested in doing this from C++.

It uses the common .NET runtime support interfaces to read data from assemblies, IMetaDataAssemblyImport for example.
Best way to get insight is to look at its source code. Which is available in the SSCLI20 distribution. After you installed it, navigate to the clr/src/ildasm subdirectory and have a look-see.

Related

How to add an image file as a header to every print job programmatically in C/C++/C#?

So basically, I have no idea where to start since I'm not actually a desktop developer.
I'm a web dev but we need this functionality in our current project with a client but sadly we don't have background knowledge for this and we have been searching for ways how to do it and so far we are convinced that we need C/C++/C# for this.
But the problem is how or in where do we start? The use case for this is very few and thus too little Documentation is available especially in forums.
We would appreciate any help. Thanks in advance.

How does SelectionIdBuilder work?

I'm trying to understand how the SelectionIdBuilder works. I'm especially trying to understand when and how to use .withMeasure and .withSeries. The information in GitHub (here) didn't enlighten me. I can't find any real examples of code using either .withMeasure or .withSeries.
I got my visual to work, using only .withCategory, based on other visuals I saw, but I want to really understand the SelectionIdBuilder.
I'd sure appreciate an education regarding how SelectionIdBuilder works and where I might find more detailed info about it.

Parsing HTML to find specific links (Without Keywords)

I posted about this sort of earlier, but I am not sure how to post back to my original question as I can only comment or answer my own question.
Anyways, I need to get 4 links from a website, the latest stable build links for windows and linux, and the latest development build links for windows and linux (4 links total) within my C++ application.
I can download the page (http://www.sourcemod.net/snapshots.php) with LibCURL which is already implemented in the project, but after that I am not sure. I was looking at parsers, but I can't think of how I am going to discern link from link. Obviously using a parser I could get the first link from each table, but this does not seem efficient and would only provide me with the links to windows builds.
It looks like the links I need will be in the fourth in both tables, but I am just very familiar with a good way to go about this, so any help would be appreciated.
Maybe you'll find the location of the actual downloads, http://www.sourcemod.net/smdrop/, easier to parse.
I'm not too familiar with c++, but if you don't come across any better solutions there's BeautifulSoup for Python that is really nice for parsing Html and even deals with malformed documents well. And here's an highly rated CodeProject article on embedding Python in C/C++ that claims "This is written for programmers who are more experienced in C/C++ than in Python, the tutorial takes a practical approach and omits all theoretical discussions."
(I haven't read through it personally, as I mentioned, not terribly familiar with C++)

Is there any free program for making diagrams of file dependencies extracted from header files?

Looking for something similar to Modelmaker that was for Delphi.
Showing dependecies of modules. Any help is appreciated.
Doxygen has been great so far. If someone know if it's possible to
achieve what I want with Doxygen, then please let me know :)
is this what you are looking for?
cube is right, i don't know much about other tools for dependency graphing, but imho doxygen will give more than that. Be aware, that doxygen need Graphviz for dependency graph option.
www.doxygen.org
www.graphviz.org
Alternative (perl script):
http://flourish.org/cinclude2dot/

What's the best way to parse RSS/Atom feeds for an iPhone application?

So I understand that there are a few options available as far as parsing straight XML goes: NSXMLParser, TouchXML from TouchCode, etc. That's all fine, and seems to work fine for me.
The real problem here is that there are dozens of small variations in RSS feeds (and Atom feeds too), so supporting all possible permutations of feeds available out on the Internet gets very difficult to manage. I searched around for a library that would handle all of these low-level details for me, but came out without anything.
Since one could link to an external C/C++ library in Objective-C, I was wondering if there is a library out there that would be best suited for this task? Someone must have already created something like this, it's just difficult to find the "right" option from the thousands of results in Google.
Anyway, what's the best way to parse RSS/Atom feeds in an iPhone application?
I've just released an open source RSS/Atom Parser for iPhone and hopefully it might be of some use.
I'd love to hear your thoughts on it too!
"Best" is relative. The best performance you'll need to go the SAX route and implement the handlers. I don't know of anything out there open source available (start a google code project and release it for the rest of us to use!)
Whatever you do, it's probably a really bad idea to try and load the whole XML file into memory and act on it like a DOM. Chances are you'll get feeds that are much larger than you can handle on the device leading to frequent memory warnings and crashes.
I'm currently trying out the MWFeedParser #Michael Waterfall is developing.
Quite easy to set up and use (I'm a beginner iPhone developer).
His sample code for using MWFeedParser to populate a UITableViewController implementation is helpful as well.
take a look at apple's XML Performance sample -- which points to using libXML directly -- for performance and quicker updates to the display. Which may be important if you are working with very large feeds.
Check out my library for parsing Atom feeds, (BSAtomParser) at GitHub. It doesn't care about validating the feed, it does its best at returning whatever is valid. The parser covers most of RFC 4287, even extensions.
Here's my solution: a really simple yet powerful RSS parsing library: https://github.com/H2CO3/RSSKit
Have you looked at TouchCode yet? I don't think it has an RSS processor, but it might give you a start.
http://code.google.com/p/touchcode/
I came accross igasus project on sourceforge today. I haven't used it or really checked it, but perhaps it might help.
From their site:
igagus is a web service for the iPhone that allows aggregation of RSS to be delivered in an iPhone friendly format.
Actually, I was trying to suggest you ask on the TouchCode discussion board, because I remember someone was trying to expand it to support RSS. That might be a decent starting point. But I was being rushed by my wife.
But I see now that TouchCode doesn't have a discussion board. I'd still ask the author, though, he might know what came of that effort.
This might be a reasonable starting point for you. Atom support isn't there yet, but you could help out?