|
Given your stated aim - to create an RSS reader, this is actually significantly easier in WPF than it is in WinForms due to the deep data binding ability baked inside WPF. There's a straightforward example here[^]. In general, given your level of ability, I would normally recommend WinForms but as this is a well defined and well understood WPF example, I'd say go for it.
|
|
|
|
|
You don't do "web scraping" to make an RSS reader. You simply download the RSS feed XML file from the site. Like Pete said, formatting this XML for display is easier in WPF. There are tons of examples all over the web.
|
|
|
|
|
My inexperience in programming is undoubtedly the reason why I do not see the difference between web scraping and downloading…
To me, they are the same thing with just different names…
Just like a variable is also considered a member or even a field…
|
|
|
|
|
"web scraping" usually referes to getting the HTML of a web page and picking through it to pull out strings.
If you get the XML file for the RSS feed, it's already in a published format where you don't have to do any funky string manipulation to get at the data. It's all handled using standard XML methods.
|
|
|
|
|
I also recommend using WinForms to get started on your coding adventures. However, if you don't need a UI to interact with the user, you could simply write a console app. That would allow you to focus on the problem at hand without having to learn UI programming.
Aside: If you're interested in scraping the web, see this[^] article.
/ravi
|
|
|
|
|
How to make one DLL communicate (tap into data) with another DLL in runtime which will be linked to a different executable.
Both DLLs are being written by me.
The source DLL (one that obtains data) is 99% completed and it is regular .NET C# class library and it gets used by executable A.EXE. Source DLL reads from Socket so once it reads the data, it is gone from Socket, so entry class is implemented using Singleton pattern (private constructor + reference to self + static public accessor)
The new DLL is going to be in C++ (with its public functions all extern "C") and it gets loaded into memory by a legacy application that looks at same data differently.
Both DLLs cannot be kept in same folder and Source DLL cannot be loaded multiple times...
----
Did Microsoft finally solve the DLL Hell?
|
|
|
|
|
You can use File Mapping[^] to share data between processes.
If you simply want to send messages from source to sink, you could alternatively use Named Pipes.[^]
I believe the .NET Framework contains classes for each of these objects.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
ExcellentOrg wrote: How to make one DLL communicate...Source DLL reads from Socket
As a wild guess - use a socket.
|
|
|
|
|
@ExcellentOrg despite the tone both answers are correct. And you may have long ago solved this problem .... especially since so much time has passed. Me, I would probably go with the TCP/IP solution for no better reason than one is essentially a server the other a client and as long as you which starts when that should be easy. Named pipes seem to be very cool and work really well in a 1:1 application.
Doug
I am a Traveler
of both Time and Space
|
|
|
|
|
how to insert table into Richtextbox?
using c#
|
|
|
|
|
|
Hi all,
Hope you are doing good!!
I would like to extract the comment written by developer in xls/xml/text file or in any other type.
so basically, extract any type of comment written by developer in c# page, would like to extract.
Thanks
Regards
Keyur Satyadev
|
|
|
|
|
Start with defining the requirements: what's a comment in an xls (Excel?) file? How do you recognize a comment in a plain text file? With XML, there's a specification for comments. And what's a C# page - do you mean a C# source code file?
|
|
|
|
|
Yes Please, Comment will be standard comment which we are using with summary.
i.e.
///<summary>
///<summary>
These comments are required to extract from c# source code file to either in XLS/Word/XML or any type of file.
Let me know still if you have any questions with regards to post.
Regards
Keyur Satyadev
|
|
|
|
|
|
how are you wanting it to work? developer loads source code?
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Yes if required, developer will load source code. but just to make sure code doesn't get affected and will get comments from source code.
Thanks
Regards
Keyur Satyadev
|
|
|
|
|
if it is for documentation I would have a look at Sandcastle[^].
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
When I choose to make an assembly "COM Visible" in the Assembly properties dialog box, will that make it visible on whatever machine it gets deployed on, even with xcopy deployment?
If not, what must I do to make the assembly COM visible on the machines to which it is deployed?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
A COM componenet must be registered. For unmanaged COM components, use regsrv32. In case of managed COM components, you need regasm.
|
|
|
|
|
That's easy enough. Thank you.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I am selecting the date field in the table contained in the access, but registration is with the time part.
21/08/2013 00:00:00
How can i do, for remove 00:00:00 parts ?!
I tried:
textnox_1.text = String.Format("{0:MM/dd/yyyy}",field);
But not resolved.
|
|
|
|
|
What does "not resolved" mean? Did it display a time-part in the textbox? Or are you trying to remove it from the database itself?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
the time-part does not remove !
|
|
|
|
|
As Eddy has said, your explanation is not very clear!
Your use of stringformat indicates you are trying to display a datetime - what you have will work for the display.
If you are then storing the value in a datetime field in database it MUST always have a time component and will be 00:00:00 for that format. You can use the Date format in SQL Server but that is a relatively new data type.
NEVER store dates as strings.
Never underestimate the power of human stupidity
RAH
|
|
|
|