|
zhoujun wrote:
you are so kind to reply to me promptly.
i admire you,even begin to worship you.
no probs
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
zhoujun wrote:
so i call James's screensaver instead of Christian's and James's screensaver for simpleness,sorry!
No problems - I don't actually mind, I was just kidding.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
zhoujun wrote:
2,Rama said "RBWRP.dll - This is a Managed C++ application that links with Ravi Bhavnani's WebResourceProvider libary to obtain Code Project Top 10 posters."
My screen saver can display different types of data
1. Latest Articles
2. Latest Lounge Messages
3. Latest Comments and Questions
4. CP Top 10 Posters
In the next version you will also see
5. CP Top 10 posters of the week
6. Quotes By CPians
Items 1,2,3 can be obtained from the CP WebService.
Chris Maunder doesnot provide any means to obtain Item no 4 This is where Ravi Bhavnani's WebResourceProvider comes into picture. If you see Ravi's article he has a demo of obtaining Top 10 posters. I use his code as it is and write a managed wrapper around his class. My screen saver talks to this managed wrapper and obtains the information.
RBWRP.dll is already linked with WebResourceProvider.lib so you don't have to do anything. Look at the solution RBWRP.sln and it would be clear. I am going to write a detailed articles on various aspects of screen saver. I think the screen saver is a good practical example to demonstrate various .NET features.
|
|
|
|
|
thanks Rama.
but if i am not bothering you,
can you tell me more about how do RBWRP.dll link with webresourceprovider.lib?
in Ravi Bhavnani's WebResourceProvider demo,
i can see from the project's property that the demo is linked with webresourceprovider.lib!
thanks!
|
|
|
|
|
i want to get information about how to build up a web application step by step,
not a sample web application that is very simple,
but a complicated one such as a portal website or e-commerce website.
i mean detailed information about how to establish such websites step by step.
i think many people like me who is not much familiar with asp.net will want to have such informations in order to get a whole impression about vs.net.
so experienced cp's programmers,please give us some cues on how to find such resources.
thanks in advance!
|
|
|
|
|
You can look at http://www.asp.net/
There is a really good sample there about IBuySpy portal. Look at that it really good.
|
|
|
|
|
yes,that's a great sample.
but to your experience,are there any resources that's introducing the design of websites from the beginning?
thanks!
|
|
|
|
|
I haven't heard much about .NET Windows Forms applications that run inside of a web browser like ActiveX controls or Java Applets. Does anyone have any pointers to books or web sites that cover this in depth? Basically I want to replace our existing application (HTML + ActiveX controls) with C# Windows Forms. I assume there is some way of packaging assemblies in CAB files but I just haven't heard much about this. Thanks!
Chris Hafey
|
|
|
|
|
I am trying to do something similar. I was told by someone at MS that remoting might be a good way to go about it. SOAPSUDS seams to not like forms, so that is out of the question. Unfortunately, you have to send the user an exe and possibly a DLL and make sure that he has the .NET framework. If you can find a better way of doing this, I'm open to suggestions.
|
|
|
|
|
Check out http://www.gotdotnet.com/compare/windowsforms/iesourcing.aspx
|
|
|
|
|
try
{
AccountTable = AccountDb.Tables["Accounts"];
if (AccountTable == null)
throw (new NullReferenceException());
}
catch (NullReferenceException)
{
// Table not present, create empty DB
AccountDb.Clear();
CreateEmptyDataBase();
}
Take a look at that if check. It passes even if AccountTable is NOT null. I checked with the debugger, it's NEVER null, but the if check always passes. The if check behaves fully correctly if I remove the try/catch statement.
That sounds broken to me, I have a hard time imagining this "feature" is by design Any ideas ?
greetings,
Tim
|
|
|
|
|
Hmmm...
Looks like that WebService debugging is VERY unreliable. Actually the code is executed correctly, just the debugger displays crap.
if I write
if (obj == null)
{
SomeStatement()
throw SomeException
}
it falsely executes the if, skips SomeStatement, executes SomeExcpetion, but doesn't actually throw it. That's f***ed if you ask me
Rebuilding app / restarting IIS doesn't help. There are also countless other cases were wierd stuff happens. Normal C# debugging works perfect
Sigh, looks like we have many many service packs ahead of us until this works...
greetings,
Tim
|
|
|
|
|
Everytime my C# web service throws and unhadled exception the response is just terminated and the browser sees an empty web site. I would like the debugger to catch the exception just like in an normal app. Please note that debugging is working, breakpoints etc., just not catching of unhandled exceptions.
As you can imagine, this default behavior of VS.NET is *extemely* annoying and I just see no justification for it.
Also, I was wondering, shouldn't the .NET / SOAP runtime at least generate an error response to let the client know that an exception was thrown on the server ? I have sometimes seen a nice exception page, but it rarely appears. Having the debugger catch the exception or showing this page all the time would be great, how to archieve that ?
Thanks for your time,
Tim
|
|
|
|
|
Hi,
I would like to know whether we can connect to CORBA (IONA) or Mainframe DB2 from C# .net platform. We currently have a COM dll written in VC++ which connects to CORBA to call corba idl functions which uses roguewave library. And also the component talks to mainframe through DB2.
I have gone through the .net documentation, but could not find any article saying how to connect to CORBA from C# or DB2. Also, is it possible to use VC++ static libraries (.lib) in c#.
Thanks
- Suresh
|
|
|
|
|
Can somebody help me.
I have the following line of code:
this.Text = String.Format( "Program {0:#}.{1:#}", ver.Major, ver.Minor );
Okay, what I don't understand is the use of ":#" in the substitution parameters. What's that good for?
And on a sidenote, why not just use regular string concatenation? Or is that because substitution parameters has some of the functionality of format specifier in C?
Thanks in advance
oh and remember: GO ANDE SEE __STAR WARS II__, it rocks, BIG TIME!!!
|
|
|
|
|
A very good article on what you are asking has just been posted by Tom Archer, here.
You can use string concatenation, but it is often easier to use String.Format since you can do various formating elements easily.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
i download the screensaver project source codes in cp's "screensaver race",
when i open the sln,it has an item "web reference",
under the "web reference" lists a few files such as
"latest.wsdl,latest.disco,reference.map"!!
i want to know where do these files come from?
and what do these files do to the project?
i am a newbie in vs.net and web development.
so please give me some detailed explanations or give me some guide that i can find such resources.
thanks in advance!
|
|
|
|
|
Right click on your project in the Solution Explorer, choose Add Web Reference. Now in the top of the window that comes up type in http://www.codeproject.com/webservices/latest.asmx . Now press Enter so it loads the page then click "Add Reference".
Now you'll see a new entry under Web References titled codeproject.com.www , right click it choose rename, rename it to something more appropriate, such as codeProject . This name dictates what namespace the resulting classes will be placed into.
In the case of the CodeProject webservice the main class is LatestBrief, this class contains the methods needed to call the web service.
HTH,
James
Simplicity Rules!
|
|
|
|
|
thanks James!
but do you know where did the screensaver project use the LatestBrief class?
i see that the project linked with webresourceprovider.lib that is also in codeproject.com!
so what is the relation among "cp's webservices" and "webresourceprovider.lib" and the saver project itself!
anyone can give me some explain or hints!
thnaks in advance!
|
|
|
|
|
zhoujun wrote:
but do you know where did the screensaver project use the LatestBrief class?
Our (Christian Graus and I) screensaver uses the LatestBrief class in the UpdateList() method of the Saver class. That method's sole purpose is to update the data that the screen saver displays.
WebResourceProvider is used by Rama Krishna's screensaver to perform a technique known as scraping, where you download a webpage, then pick out the bits you want. You'll have to refer to his article to see how he uses it.
Both the CP Web Service and the WebResourceProvider are utilities to get information from CodeProject into the screensaver.
Hope that clears up some of your questions,
James
Simplicity Rules!
|
|
|
|
|
thanks,James,
your information is helpful for me!
|
|
|
|
|
How to run c# app on a win2000 machine without installing the framework? Is it possible? I heard something about compiling from the intermidiate language to the native using some kind of tools. How is this exactly done? Searched MSDN and could not find any info about this.
Thank you
vance
|
|
|
|
|
You'll need the runtime files:
http://download.microsoft.com/download/.netframesdk/Redist/1.0/W98NT42KMeXP/EN-US/dotnetredist.exe
Size: 19,7Mb
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
C# cannot be compiled to native code. To run C# applications you require the .NET Framework installed. Its a 20mb download from MS.
The only compiler in VS.NET to compile to native code is the C++ compiler. All the rest require the framework to run applications.
Michael
|
|
|
|
|
There is a tool to pre-JIT assemblies, but you still need to have all the framework stuff in order to even make use of that.
James
Simplicity Rules!
|
|
|
|