我从MSDN下载了MS SQL Server 2014企业版.我想在C#和MS SQL中做一个服务器后端,但问题是,每当我想在Visual Studio 2013 Ultimate中用DB做某事时它就告诉我这个
===================================
An incompatible SQL Server version was detected. (Microsoft.VisualStudio.Data.Tools.SqlEditor)
------------------------------
Program Location:
at Microsoft.VisualStudio.Data.Tools.SqlEditor.DataModel.SqlConnectionStrategy.ValidateConnectionForEditor(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
Run Code Online (Sandbox Code Playgroud)
老实说,我不知道发生了什么,或者为什么告诉我VS与SQL服务器不兼容.
sql-server visual-studio-2013 sql-server-2014 sql-server-data-tools
我遇到了这个UnsupportedOperationException的问题.我最近改用了android studio,所以这对我来说很新鲜.我想将recyclerview添加到我的项目中,然后用它做一些事情,但布局设计师却抛出了这个错误:
java.lang.UnsupportedOperationException: Unsupported Service: accessibility
at com.android.layoutlib.bridge.android.BridgeContext.getSystemService(BridgeContext.java:465)
at android.support.v7.widget.RecyclerView.<init>(RecyclerView.java:290)
at android.support.v7.widget.RecyclerView.<init>(RecyclerView.java:266)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:379)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:99)
at com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:172)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:132)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:806)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:401)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:329)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:333)
at com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:674)
at com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:663)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932)
at com.android.tools.idea.rendering.RenderService.createRenderSession(RenderService.java:663)
at com.android.tools.idea.rendering.RenderService.render(RenderService.java:790)
at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:480)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at …
Run Code Online (Sandbox Code Playgroud) 我有一个问题,找不到如何从我的macbook上的visual studio(桌面)编译cordova应用程序,没有相似之处和类似的东西.我搜索了那些东西,但我发现没有任何相关性,或者使用parallels/vmware的东西.
我在评论中添加了一些关于我想要做什么的见解,但是在这里粘贴了它:
不,我的意思是,我有两个设备:桌面,我有Windows 8.1和2012年中期的macbook pro.我想(开始)从我的桌面构建cordova应用程序,但在我的macbook上运行(通过iOS模拟器).我不希望没有双启动,没有虚拟化,只需从visual studio开始构建并完成osx上的构建
我有一个任务是创建简单的c ++应用程序,将信息存储到二进制文件中,然后需要使用此信息进行简单的操作,如编辑,删除,读取.我想使用Electron创建桌面应用程序来设计UI并使用c ++来处理信息.
是否有可能,如何将c ++包含在电子中,是否有任何教程?提前致谢.
我正在尝试将GraphQL实现到Unity3D(版本2017.1.0f3 Personal).我使用的是.NET 4.6(实验版),但尽管如此,Unity还是不支持动态关键字.这很奇怪,因为.NET 4.0是.NET的一部分.在Unity中除外.我正在谷歌搜索一些解决方案如何让它工作,但没有动态关键字的解决方案.错误是这样的:
Severity Code Description Project File Line Suppression State
Error CS1980 Cannot define a class or member that utilizes 'dynamic'
because the compiler required type
'System.Runtime.CompilerServices.DynamicAttribute' cannot be found. Are you
missing a reference? skiing-prototype (1) D:\skiing-prototype
(1)\Assets\Scripts\GraphQL.cs 62 Active
Run Code Online (Sandbox Code Playgroud)
这是使用GraphQL C#客户端的唯一警告.还有人试过它才能让它发挥作用吗?我还没有找到任何更大的努力来让它运行起来.
编辑:
我在这里使用这个客户端:https://github.com/bkniffler/graphql-net-client
这也是visual studio的一个错误,但在Unity控制台中它也会显示错误,会暂时更新
Assets/Scripts/GraphQL.cs(80,16): error CS1980: Dynamic keyword requires
`System.Runtime.CompilerServices.DynamicAttribute' to be defined. Are you
missing System.Core.dll assembly reference?
Run Code Online (Sandbox Code Playgroud)
这是统一编辑器错误,这似乎与visual studio中的错误相同
我知道有更多重复的问题,但请,这对我来说非常重要.我现在很难用Windows Phone 8.1 C#相机初始化.
async private void InitCamera_Click(object sender, RoutedEventArgs e)
{
captureManager = new MediaCapture();
await captureManager.InitializeAsync();
try
{
captureManager = new Windows.Media.Capture.MediaCapture();
await captureManager.InitializeAsync();
if (captureManager.MediaCaptureSettings.VideoDeviceId != "" && captureManager.MediaCaptureSettings.AudioDeviceId != "")
{
System.Diagnostics.Debug.WriteLine("Init successful");
captureManager.RecordLimitationExceeded += new Windows.Media.Capture.RecordLimitationExceededEventHandler(RecordLimitationExceeded);
captureManager.Failed += new Windows.Media.Capture.MediaCaptureFailedEventHandler(Failed);
}
else
{
System.Diagnostics.Debug.WriteLine("No Device");
}
}
catch (Exception exception)
{
System.Diagnostics.Debug.WriteLine("Exception raised!!!!:" + exception);
}
}
Run Code Online (Sandbox Code Playgroud)
这是我初始化相机的代码,但由于某种原因,它在Lumia 920 上的Windows.Media.Capture.MediaCapture()
构造函数调用失败,System.UnauthorizedAccessException
并且在模拟器上也是访问冲突.我已经用Google搜索了这个问题,但到目前为止还没有答案.有些人告诉我不仅应该启用网络摄像头,还要启用麦克风,但这并没有解决我的问题.一切似乎设置得很好,所有访问权限都在app清单中授予.另外我想问你,如果你有一些很好的工作实例/教程用相机拍照,请提供.
我有个问题。我想记录我的工具开发,所以我想让窗口名称带有日期和时间数据,而不是在屏幕截图顶部使用 mspaint 来显示日期。但是我只有中文字符而不是字符串。
这是我想将字符串分配给 CreateWindowEx() 的代码:
char *wndName = "Asphyx V0.01 (Build Date: " __DATE__ " " __TIME__ ")\0";
hWnd = CreateWindowEx(NULL,
L"WindowClass",
(LPCWSTR)wndName,
WS_OVERLAPPEDWINDOW,
300,
300,
wr.right - wr.left,
wr.bottom - wr.top,
NULL,
NULL,
hInstance,
NULL);
Run Code Online (Sandbox Code Playgroud)
编辑:伙计们,我很欣赏你的回答,但他们都给了我这个
Error 29 error C2308: concatenating mismatched strings
Run Code Online (Sandbox Code Playgroud)
唯一有点工作的东西是一个尚未删除的答案,但它给了我这个:
他使用了这个代码:
char title[256];
sprintf(title, "Asphyx V0.01 (Build Date: %s - %s)", __DATE__, __TIME__);
hWnd = CreateWindowEx(NULL,
L"WindowClass",
title,
WS_OVERLAPPEDWINDOW,
300,
300,
wr.right - wr.left,
wr.bottom - wr.top,
NULL,
NULL,
hInstance,
NULL);
Run Code Online (Sandbox Code Playgroud) c# ×2
c++ ×2
android ×1
camera ×1
database ×1
direct3d ×1
electron ×1
installation ×1
ios ×1
java ×1
javascript ×1
sql-server ×1
winapi ×1