質問編集履歴
3
投稿時のミスだと思っていたら本当に間違っていたため修正
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -39,9 +39,9 @@ | |
| 39 39 | 
             
            ```cs
         | 
| 40 40 | 
             
            public class C{
         | 
| 41 41 | 
             
                [DllImport("B.dll")]
         | 
| 42 | 
            -
                private static extern bool  | 
| 42 | 
            +
                private static extern bool _OpenDLL(uint CircuitNo);
         | 
| 43 43 | 
             
                public C(){
         | 
| 44 | 
            -
                      | 
| 44 | 
            +
                     _OpenDLL(0); //エントリーポイントが見つかりません。
         | 
| 45 45 | 
             
                }
         | 
| 46 46 | 
             
            }
         | 
| 47 47 | 
             
            ```
         | 
| @@ -51,9 +51,9 @@ | |
| 51 51 | 
             
            ```cs
         | 
| 52 52 | 
             
            public class C{
         | 
| 53 53 | 
             
                [DllImport("A.dll")]
         | 
| 54 | 
            -
                private static extern bool  | 
| 54 | 
            +
                private static extern bool OpenDLL(uint CircuitNo);
         | 
| 55 55 | 
             
                public C(){
         | 
| 56 | 
            -
                      | 
| 56 | 
            +
                     _OpenDLL(0); //エントリーポイントが見つかりません。
         | 
| 57 57 | 
             
                }
         | 
| 58 58 | 
             
            }
         | 
| 59 59 | 
             
            ```
         | 
2
記載ミス OpenDLL → OpenDll
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -39,9 +39,9 @@ | |
| 39 39 | 
             
            ```cs
         | 
| 40 40 | 
             
            public class C{
         | 
| 41 41 | 
             
                [DllImport("B.dll")]
         | 
| 42 | 
            -
                private static extern bool  | 
| 42 | 
            +
                private static extern bool _OpenDll(uint CircuitNo);
         | 
| 43 43 | 
             
                public C(){
         | 
| 44 | 
            -
                      | 
| 44 | 
            +
                     _OpenDll(0); //エントリーポイントが見つかりません。
         | 
| 45 45 | 
             
                }
         | 
| 46 46 | 
             
            }
         | 
| 47 47 | 
             
            ```
         | 
| @@ -51,9 +51,9 @@ | |
| 51 51 | 
             
            ```cs
         | 
| 52 52 | 
             
            public class C{
         | 
| 53 53 | 
             
                [DllImport("A.dll")]
         | 
| 54 | 
            -
                private static extern bool  | 
| 54 | 
            +
                private static extern bool OpenDll(uint CircuitNo);
         | 
| 55 55 | 
             
                public C(){
         | 
| 56 | 
            -
                      | 
| 56 | 
            +
                     _OpenDll(0); //エントリーポイントが見つかりません。
         | 
| 57 57 | 
             
                }
         | 
| 58 58 | 
             
            }
         | 
| 59 59 | 
             
            ```
         | 
1
開発用コマンドプロンプトでDLLファイルに含まれる関数を調べた
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -56,4 +56,41 @@ | |
| 56 56 | 
             
                     _OpenDLL(0); //エントリーポイントが見つかりません。
         | 
| 57 57 | 
             
                }
         | 
| 58 58 | 
             
            }
         | 
| 59 | 
            +
            ```
         | 
| 60 | 
            +
            ```CommandPrompt
         | 
| 61 | 
            +
            *****>dumpbin /exports B.dll
         | 
| 62 | 
            +
            rts B.dll
         | 
| 63 | 
            +
            Microsoft (R) COFF/PE Dumper Version 14.16.27031.1
         | 
| 64 | 
            +
            Copyright (C) Microsoft Corporation.  All rights reserved.
         | 
| 65 | 
            +
             | 
| 66 | 
            +
             | 
| 67 | 
            +
            Dump of file B.dll
         | 
| 68 | 
            +
             | 
| 69 | 
            +
            File Type: DLL
         | 
| 70 | 
            +
             | 
| 71 | 
            +
              Section contains the following exports for B.dll
         | 
| 72 | 
            +
             | 
| 73 | 
            +
                00000000 characteristics
         | 
| 74 | 
            +
                FFFFFFFF time date stamp
         | 
| 75 | 
            +
                    0.00 version
         | 
| 76 | 
            +
                       1 ordinal base
         | 
| 77 | 
            +
                       7 number of functions
         | 
| 78 | 
            +
                       7 number of names
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                ordinal hint RVA      name
         | 
| 81 | 
            +
                      (抜粋)
         | 
| 82 | 
            +
                      2    3 00011168 _CloseDll = @ILT+355(__CloseDll@4)
         | 
| 83 | 
            +
                      1    4 0001129E _OpenDll = @ILT+665(__OpenDll@4)
         | 
| 84 | 
            +
                      (抜粋)
         | 
| 85 | 
            +
              Summary
         | 
| 86 | 
            +
             | 
| 87 | 
            +
                    1000 .00cfg
         | 
| 88 | 
            +
                    1000 .data
         | 
| 89 | 
            +
                    1000 .idata
         | 
| 90 | 
            +
                    1000 .msvcjmc
         | 
| 91 | 
            +
                    2000 .rdata
         | 
| 92 | 
            +
                    1000 .reloc
         | 
| 93 | 
            +
                    1000 .rsrc
         | 
| 94 | 
            +
                    6000 .text
         | 
| 95 | 
            +
                   10000 .textbss
         | 
| 59 96 | 
             
            ```
         | 
