uses MyProgram.MyNamespace in 'filepath/unit1.pas;otherpath/unit2.pas';
In this example, the namespace MyProgram.MyNamespace logically contains all the interface symbols from unit1 and unit2. Symbol names in a namespace must be unique, across all units in the namespace. In the example above, if unit1 and unit2 both define a global interface symbol named mySymbol, the compiler will report an error in the uses clause.
但是不管我怎樣試驗,重視編譯錯誤,無法實現(xiàn)。
到目前為止,我還沒有找到如何引用delphi生成的dll的方法。因為我一在delphi新的工程中添加一個(用Add reference菜單)delphi for .net編譯的dll,然后編譯,就會說致命錯誤,不能導入什么什么東西,請使用包,之類的。但是在VS.net中添加著dll卻沒有任何問題,程序也能正常運行。
到目前為止只找到一個暫時的解決方案,就是不生成library,用package代替,這樣最終目標文件也是dll,而且我在VS中也能正常調用。
新聞熱點
疑難解答
圖片精選