It is currently May 3rd, 2024, 3:20 pm

C# Getting information from web

Share and get help with Plugins and Addons
chuiby
Posts: 6
Joined: August 16th, 2012, 1:48 am

C# Getting information from web

Post by chuiby »

In the past hours, I have been trying to make a plugin that will query a webserver to get a few informations from it. I haven't been able to get anything working at all... except getting the version & the copyright thingy displayed in the loaded DLLs window.

I am tired of messing with plugins and I would really need a working template project that actually returns info (Someone's project?).

I also have teamviewer if anyone is interested into helping me...

Things I've tried:
- I tried logging a test error message in every function... nothing shown up in the logs.
- Reading the C# Plugin API wiki
- Trying to understand the way plugins works under C++ (Since I couldn't find anything under C#)
- Getting help from IRC

Thanks.


Edit:

My ini file (Measure):

Code: Select all

[Measure_GetBandwidthUsage]
Measure=Plugin
Plugin=Plugins\Bandwidth.dll
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: C# Getting information from web

Post by thatsIch »

Please give us more information like:
- which webserver
- which information
- the source of the bandwidth.dll
chuiby
Posts: 6
Joined: August 16th, 2012, 1:48 am

Re: C# Getting information from web

Post by chuiby »

For the webserver... uhm it's not important. I can code that part.
And there's pretty much... no source at all.
I only need an example of a working C# plugin...
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: C# Getting information from web

Post by poiru »

The plugin SDK contains both C++ and C# examples. Have you looked at them?
chuiby
Posts: 6
Joined: August 16th, 2012, 1:48 am

Re: C# Getting information from web

Post by chuiby »

poiru wrote:The plugin SDK contains both C++ and C# examples. Have you looked at them?
I did, well, I tried to, I couldn't see anything that could lead me anywhere.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: C# Getting information from web

Post by poiru »

chuiby wrote:I did, well, I tried to, I couldn't see anything that could lead me anywhere.
What problems did you face? Did the examples fail to compile?
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: C# Getting information from web

Post by thatsIch »

chuiby wrote: I did, well, I tried to, I couldn't see anything that could lead me anywhere.
so what are you searching
and to where it should lead?

you are very unspecific with your requirements
chuiby
Posts: 6
Joined: August 16th, 2012, 1:48 am

Re: C# Getting information from web

Post by chuiby »

thatsIch wrote: so what are you searching
and to where it should lead?

you are very unspecific with your requirements
I just need someone to show me what I have to do to make a working plugin under C#... a template or whatever you call it.
chuiby
Posts: 6
Joined: August 16th, 2012, 1:48 am

Re: C# Getting information from web

Post by chuiby »

poiru wrote: What problems did you face? Did the examples fail to compile?
Okay so what I did.... I fetched Rainmeter's git (the plugins SDK one), I made a copy of PluginEmpty and tried many different things, I couldn't get it to work AT ALL.

After that, I tried making it log test messages from every function... nothing popped in rainmeter's logs.
chuiby
Posts: 6
Joined: August 16th, 2012, 1:48 am

Re: C# Getting information from web

Post by chuiby »

Bump