Skip to content

Commit 9cba6e9

Browse files
committed
Update README for renaming
1 parent 4adcea6 commit 9cba6e9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# csharp-text-formatter
1+
# csharp-message-to-image
22

3-
csharp-text-formatter is a test/sample C# solution with an ordinary (non-MFC) C++ DLL project.
3+
csharp-message-to-image is a test/sample C# solution with an ordinary (non-MFC) C++ DLL project.
44

55
The purpose of this solution is to work out how to create a C++ DLL and utilise it in C#.
66

@@ -16,7 +16,7 @@ At the time of writing it has one exported function:
1616
double Add(int a, double b);
1717
```
1818
19-
## TextFormatter
19+
## MessageToImage
2020
2121
This is the main C# WPF .NET Core 3.1 project.
2222
@@ -29,23 +29,23 @@ double result = Interop.UnsafeNativeMethods.Add(a, b);
2929
Trace.WriteLine($"Result of external Add({a}, {b}) = {result}.");
3030
```
3131

32-
In order to run the project, the **Direct2DWrapper** project will need building to generate Direct2DWrapper.dll and a link file created in **TextFormatter\lib** pointing at the Direct2DWrapper.dll file.
32+
In order to run the project, the **Direct2DWrapper** project will need building to generate Direct2DWrapper.dll and a link file created in **MessageToImage\lib** pointing at the Direct2DWrapper.dll file.
3333

3434
### Direct2DWrapper.dll
3535

3636
In order for the C# project to successfully run, it needs to be able to find Direct2DWrapper.dll.
3737

3838
1. In Visual Studio 2019, choose **Debug** or **Release** for Solution Configurations and **x64** or **x86** for Solution Platforms.
3939
2. Right-click the **Direct2DWrapper** project and click **Build**.
40-
3. Right-click the **lib** folder in the **TextFormatter** project.
40+
3. Right-click the **lib** folder in the **MessageToImage** project.
4141
4. In the context menu: **Add**, **Existing Item…**
4242
5. Change the file types drop down to **Executable Files** (or all files, you're looking for a .dll)
43-
6. Browse to the root directory for the solution - if you're in the directory **csharp-text-formatter\TextFormatter**, you need to go up a directory.
43+
6. Browse to the root directory for the solution - if you're in the directory **csharp-message-to-image\MessageToImage**, you need to go up a directory.
4444
7. Find the DLL you built in step 1. If you chose Debug and x64, it will likely be in **x64\Debug**. Select the **Direct2DWrapper.dll** file.
4545
8. Click the arrow next to the **Add** button, and click **Add as Link**.
4646
9. Right-click the link file **lib\Direct2DWrapper.dll** and click **Properties**.
4747
10. Change **Copy to Output Directory** to **Copy if newer**.
48-
11. Run the **TextFormatter** project. If something is still wrong, you'll get a DllNotFoundException.
48+
11. Run the **MessageToImage** project. If something is still wrong, you'll get a DllNotFoundException.
4949

5050
### Expected Output
5151

0 commit comments

Comments
 (0)