Macos 碳排放呼叫失败?
大家好 我的碳排放电话失败了 我有:Macos 碳排放呼叫失败?,macos,compiler-construction,macos-carbon,Macos,Compiler Construction,Macos Carbon,大家好 我的碳排放电话失败了 我有: #include <Carbon/Carbon.h> /Developer/Headers/FlatCarbon 在我的标题搜索路径中 但电话是这样的: aDialog = GetNewDialog(16002, NULL,(WindowPtr) (-1L)); 他们说: GetNewDialog not declared in this scope. 我的目标是10.5 64位intel。啊,Carbon UI调用不是64位的。很好 在
#include <Carbon/Carbon.h>
/Developer/Headers/FlatCarbon
在我的标题搜索路径中
但电话是这样的:
aDialog = GetNewDialog(16002, NULL,(WindowPtr) (-1L));
他们说:
GetNewDialog not declared in this scope.
我的目标是10.5 64位intel。啊,Carbon UI调用不是64位的。很好 在这个时代,完全没有理由调用GetNewDialog。
WindowPtr
已被弃用(并且在Carbon的一生中一直如此)。碳替换为WindowRef
。本质上是相同的类型,但是WindowRef
更清楚地表明它现在是一个不透明的引用,就像所有其他FooRef
类型一样。