Announcement

Collapse
No announcement yet.

Hello World plugin

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hello World plugin

    I have downloaded the CF SDK and example plugins (web and weather).

    The example plugins are good for education, but you sortof have to rip out most of the stuff that is in them before you can start really writing your own plugin.

    It would be great to have a basic "hello world" plugin that has the minimum required skin and code to write a plugin (plus lots of comments).

    veetid, do you have a template plugin that you use to start your projects from?
    Would you mind sharing that with us?

    I would try to produce a hello world plugin myself, but I currently only have VS2K5 installed and I cannot get CF plugins written w/ VS2K5 (.Net 2.0) to install in to CF (.Net 1.1?), so I would need to resolve this problem [by reinstalling VS2K3?] before I could create a hello world plugin.

  • #2
    I did one in c# awhile back, (when CF 1.5 first came out) and someone ported it to vb.

    you might need to modify it for 1.6 but it should be here somewhere (I will search for it now as well to make sure)
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

    Comment


    • #3
      ya sorry, i could not find it, i did find the vb version (Jarrod's) but the link was broken. Here is a link to source for a plugin i did for CF 1.5 it contains my code, but for now it is another example of a working plugin (with CF version 1.5) I have not have not had any time to update it for version 1.6, it will not work in 1.6 also you will have to make whatever changes are required for 1.6

      EDIT: sorry it would have been helpful if i provided the link for the source :http://www.mp3car.com/vbulletin/show...8&postcount=13

      I will look later this week (friday/sat) to see if i still have the empty plugins (c# and vb) on my home dev computer.
      My Install

      Software:
      CFiG v1
      iGuidance Plugin for CF

      CarShell
      Working shell for a CarPC

      StopWatch
      StopWatch plugin remade for centrafuse RC1

      Comment


      • #4
        Originally posted by paulpv
        ... I would try to produce a hello world plugin myself, but I currently only have VS2K5 installed and I cannot get CF plugins written w/ VS2K5 (.Net 2.0) to install in to CF (.Net 1.1?), so I would need to resolve this problem [by reinstalling VS2K3?] before I could create a hello world plugin.
        Oh so for CF plugins than I need VS2003? Is there any way to make plugins in VS2005?

        Comment


        • #5
          Originally posted by stric
          Oh so for CF plugins than I need VS2003? Is there any way to make plugins in VS2005?
          There are ways to compile .NET 1.1 applications in VS2005, but I have never done it... It is usually easier and more stable to just load VS2003...

          david
          __________________
          CENTRAFUSE http://www.centrafuse.com
          01 Jeep Cherokee Sport 4x4 Installed
          M10000/512Mb/20GB, Lilliput 7", Holux GM-210

          Comment


          • #6
            here is a link to the empty VB plugin i referenced above.

            I was not able to find the empty c# one, I probibly lost it or morphed it into a hlf finished plugin

            speaking of which here is a link to the source for the skin switcher plugin i started before it was discovered that the SDK did not support switching skins with CF running. If i remember correctly it accesses the config xml file for centrafuse that contains the name of the active skin and changes it to the one you want, but you have to reboot CF to actually get the new skin, If David can add the ability to the SDK then you would just have to modify this to do it. It two was built for CF 1.5 so it would probibly have to be modified for 1.6 as well, refer to davids API documentation for that. (I dont think i got really far with GUI on this one, I put it on hold waiting for the change to the sdk)
            My Install

            Software:
            CFiG v1
            iGuidance Plugin for CF

            CarShell
            Working shell for a CarPC

            StopWatch
            StopWatch plugin remade for centrafuse RC1

            Comment

            Working...
            X