Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compiler construction F#忽略DllImport属性中的调用约定集?_Compiler Construction_F# - Fatal编程技术网

Compiler construction F#忽略DllImport属性中的调用约定集?

Compiler construction F#忽略DllImport属性中的调用约定集?,compiler-construction,f#,Compiler Construction,F#,尝试使用以下签名(由MSVC++编译)调用函数时: 并用F#as描述 F#程序开始正常工作(尽管仍设置了CallingConvention=CallingConvention.Cdecl) 对我来说,似乎是明显的编译器错误 这两个编译器都来自Visual Studio 2010(Microsoft(R)F#2.0 Compiler build 4.0.30319.1)是的,这是一个已知的错误 是的,这是一个已知的错误 connect上的Microsoft支持人员似乎无法重现该漏洞。这意味着它不会

尝试使用以下签名(由MSVC++编译)调用函数时:

并用F#as描述

F#程序开始正常工作(尽管仍设置了CallingConvention=CallingConvention.Cdecl) 对我来说,似乎是明显的编译器错误


这两个编译器都来自Visual Studio 2010(Microsoft(R)F#2.0 Compiler build 4.0.30319.1)

是的,这是一个已知的错误


是的,这是一个已知的错误


connect上的Microsoft支持人员似乎无法重现该漏洞。这意味着它不会被修复,对吗?@Alexander根据2010年10月13日的更新,他们能够复制它。另外,Brian来自F#团队,因此如果他说这是一个已知的bug,这是一个好迹象:-)这在VS 2010 SP 1中得到了修复。如果我没记错的话,还有与之相当的非VS二进制版本。看来微软在connect上的支持无法重现这个bug。这意味着它不会被修复,对吗?@Alexander根据2010年10月13日的更新,他们能够复制它。另外,Brian来自F#团队,因此如果他说这是一个已知的bug,这是一个好迹象:-)这在VS 2010 SP 1中得到了修复。如果我没记错的话,还有等价的非VS二进制版本。
BOOL CreateJunctionPoint(LPCTSTR szMountDir, LPCTSTR szDestDir);
[<DllImport("FSLinks.dll", CallingConvention = CallingConvention.Cdecl)>]
extern int CreateJunctionPoint(string source, string target)
 BOOL  __stdcall CreateJunctionPoint(LPCTSTR szMountDir, LPCTSTR szDestDir);