forked from Excel-DNA/Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slave now loading and unloading with Excel crash
- Loading branch information
Showing
7 changed files
with
51 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
<DnaLibrary Name="Master Add-In" RuntimeVersion="v4.0"> | ||
<ExternalLibrary Path="Master.dll" LoadFromBytes="true" Pack="true" /> | ||
|
||
<!-- | ||
The RuntimeVersion attribute above allows two settings: | ||
* RuntimeVersion="v2.0" - for .NET 2.0, 3.0 and 3.5 | ||
* RuntimeVersion="v4.0" - for .NET 4 and 4.5 | ||
|
||
Additional referenced assemblies can be specified by adding 'Reference' tags. | ||
These libraries will not be examined and registered with Excel as add-in libraries, | ||
but will be packed into the -packed.xll file and loaded at runtime as needed. | ||
For example: | ||
|
||
<Reference Path="Another.Library.dll" Pack="true" /> | ||
|
||
Excel-DNA also allows the xml for ribbon UI extensions to be specified in the .dna file. | ||
See the main Excel-DNA site at http://excel-dna.net for downloads of the full distribution. | ||
--> | ||
|
||
</DnaLibrary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using ExcelDna.Integration; | ||
|
||
namespace MasterSlave | ||
{ | ||
public class SlaveAddIn : IExcelAddIn | ||
{ | ||
public void AutoOpen() | ||
{ | ||
Console.Beep(); | ||
Console.Beep(); | ||
} | ||
|
||
public void AutoClose() | ||
{ | ||
Console.Beep(); | ||
Console.Beep(); | ||
Console.Beep(); | ||
Console.Beep(); | ||
Console.Beep(); | ||
Console.Beep(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters