Results 1 to 4 of 4

Thread: Visual Studio 2010 giving me the following errors

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    3

    Talking Visual Studio 2010 giving me the following errors

    Imports Office = Microsoft.Office.Core
    Imports Word = Microsoft.Office.Interop.Word


    #Region " Read me for Add-in installation and setup information. "
    ' When run, the Add-in wizard prepared the registry for the Add-in.
    ' At a later time, if the Add-in becomes unavailable for reasons such as:
    ' 1) You moved this project to a computer other than which is was originally created on.
    ' 2) You chose 'Yes' when presented with a message asking if you wish to remove the Add-in.
    ' 3) Registry corruption.
    ' you will need to re-register the Add-in by building the BackstageCOMAddin4Setup project,
    ' right click the project in the Solution Explorer, then choose install.
    #End Region

    Public Class Connect

    Implements Extensibility.IDTExtensibility2, Office.IRibbonExtensibility

    Private applicationObject As Word.Application
    Private addInInstance As Object

    Public Sub OnBeginShutdown(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnBeginShutdown
    End Sub

    Public Sub OnAddInsUpdate(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnAddInsUpdate
    End Sub

    Public Sub OnStartupComplete(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnStartupComplete
    End Sub

    Public Sub OnDisconnection(ByVal RemoveMode As Extensibility.ext_DisconnectMode, ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnDisconnection
    End Sub

    Public Sub OnConnection(ByVal application As Object, ByVal connectMode As Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnConnection
    applicationObject = application
    addInInstance = addInInst
    End Sub

    End Class
    Public Function GetCustomUI(ByVal RibbonID As String) As String Implements Microsoft.Office.Core.IRibbonExtensibility.GetCustomUI
    Return BackStageCOMAddin.My.Resources.customUI14
    End Function

    Sub OnAction(ByVal control As Office.IRibbonControl)
    MessageBox.Show("Today's date is " & Date.Now.ToShortDateString())
    End Sub

    These are the erros:

    Error 1 Class 'Connect' must implement 'Function GetCustomUI(RibbonID As String) As String' for interface 'Microsoft.Office.Core.IRibbonExtensibility'. c:\documents and settings\administrator\my documents\visual studio 2010\Projects\BackstageCOMAddin4\BackstageCOMAddin4\Connect.vb 17 49 BackstageCOMAddin4
    Error 3 Statement is not valid in a namespace. c:\documents and settings\administrator\my documents\visual studio 2010\Projects\BackstageCOMAddin4\BackstageCOMAddin4\Connect.vb 40 1 BackstageCOMAddin4

    Error 4 Statement is not valid in a namespace. c:\documents and settings\administrator\my documents\visual studio 2010\Projects\BackstageCOMAddin4\BackstageCOMAddin4\Connect.vb 44 1 BackstageCOMAddin4

    I am following the instrucitons exactly as show from this link:

    http://msdn.microsoft.com/en-us/library/ff936212.aspx

    Why am I getting these errors?

    Thanks in advance for any and all help.

    Also does anyone have any better instructions for creating a Add In for MS Project 2010?

    Kurt

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Visual Studio 2010 giving me the following errors

    Could you please wrap your code in [highlight="VB"][/highlight] tags this makes the code easier too read. Also, could you please mention which, language you are using and what it is you are trying to do.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    3

    Re: Visual Studio 2010 giving me the following errors

    I didn't find your criticism useful at all.

    You could have looked at the code and offered a suggestion despite the code tags.

    Do you think this was a good use of MY time?

    Does anyone out here have a idea?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Visual Studio 2010 giving me the following errors

    So it's OK to waste our time, but not yours. Very well, then I shan't waste my time trying to readthatcodeofyours and I shan't waste anymore of your time with an answer.

    Here's the deal... we're volunteers here... none of us are getting paid to sit around answering posts. So if you don't want us waisting your time, you need to put forth a little effort and make it easier for people to answer your posts. Help us help you... posting code like that islikereadingasentencewithnospacesinit. No one wants to read that junk... so we ask that you use the proper codes to make it easier to follow and preserve the indenting to make it easier to read.

    Posts like yours make you sound like a pompous arrogant arse that no one is going to want to help.

    -tg
    Last edited by techgnome; Aug 11th, 2011 at 07:43 PM.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width