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:D
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.
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?
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