小编pho*_*tom的帖子

Reporting Services文件夹配置

作为Reporting Services的新手,我对在本地开发机器上设置报表服务感到困惑.我在Vista64 Home Premium上使用Sql-Server 2008 Developer Edition.

当我去http:// localhost/reports时,我被要求登录.当我输入一个我已配置为本地管理员的帐户时,我会进入最小的报表服务器屏幕,该屏幕不提供配置文件夹结构的选项.

我是否可以获得有关如何配置系统的建议,以便我可以进入此步骤.

sql-server reporting-services

6
推荐指数
1
解决办法
8375
查看次数

将CSS样式应用于<div>

我的问题是下面的HTML

<div class="editor-container">
   <div class="editor-row curFocus">
       <div class="editor-label">
           <label for="FirstName">First Name</label>
       </div>
       <div class="editor-field">
          <input class="text-box single-line valid" id="FirstName" 
                name="FirstName" type="text" value="Nancy" maxlength="20">
       </div>
   </div>
</div>
Run Code Online (Sandbox Code Playgroud)

当用户选择输入字段时,我通过一些javascript将类"curFocus"添加到外部div以突出显示标签和输入字段.

我的css是 -

.editor-container {
    border: thin solid #444444;
    display: table; width: 100%;
 }
.editor-row {
  width: 100%; display: table-row;
}
.editor-label {
  padding-left: .4em; width: 40%;
}
.editor-label, .editor-field {
   padding-right: .4em; padding-bottom: .2em; padding-top: .2em;
   display: table-cell;
 }
 .curFocus {
   border: 2px solid #05365b;
   background-color: #d3e5f2;
   margin: 3px; padding: 3px;
  }
Run Code Online (Sandbox Code Playgroud)

我的问题是,在Chrome …

html css

6
推荐指数
1
解决办法
7万
查看次数

在Kendo Grid上自定义删除确认弹出窗口

我有一个Kendo网格,我需要根据被删除的行中的数据自定义删除确认消息框.我有一个自定义的常规消息作为网格配置的一部分,如下所示.

 editable: {
     confirmation: "Are you sure that you want to delete this record?",
     mode: "popup",
     template: kendo.template($("#popup-editor").html())
}
Run Code Online (Sandbox Code Playgroud)

我看过使用remove事件处理程序,但是在删除行之后会触发.

kendo-ui kendo-grid

6
推荐指数
1
解决办法
2万
查看次数

在c ++和c#之间进行通信的最快方式

我们正在构建新的视觉检测系统应用程序.由于多种原因,实际的检查系统需要是c ++.对于该系统,我们将使用Boost&Qt.

对于我们的UI,我们目前正在考虑将WPF/C#用于基于UI和SQL的报告.如果检查系统没有监视器或键盘,则UI必须在与c ++检查系统相同的盒子上本地运行或在另一个盒子上远程运行的复杂因素.

我们关心的是在两个系统之间传输数据的最快方法是什么?我们目前正在研究使用Google协议缓冲区进行序列化的基于套接字的系统.协议缓冲区将为c ++和c#(jskeet/dotnet-protobufs)生成代码.

有没有人有任何建议/经验?

c# c++ wpf networking qt

5
推荐指数
1
解决办法
4890
查看次数

从字节数组快速更新QPixmap

我工作的一个视觉应用,我需要有一个"实时取景"从相机显示使用的QPixmap对象在屏幕上.我们将以30帧/秒的速度连续更新屏幕.

我的问题是,这个应用程序必须运行在一些3-5岁的计算机上,按照今天的标准,这些计算机速度很慢.所以我想做的是能够直接写入QPixmap内部的显示字节数组.通过程序代码会后,正在创建的改变在新的QPixmap的点阵图结果内容几乎选项.这是我试图驾驶的开销.

另外,我想阻止所有新的/删除发生只是为了控制内存碎片.

有什么建议?

c++ windows qt

5
推荐指数
1
解决办法
4779
查看次数

使用MEF延迟加载DLL

我正在用MEF做我的第一个项目,我很难理解如何使用延迟加载.我的代码是 -

public static class MefLoader
{
     private static CompositionContainer Container;

    [ImportMany(typeof(IControlModule), AllowRecomposition = true)]
    private static IEnumerable<Lazy<IControlModule, IImportComponentCapabilites>> 
               DllList { get; set; }

    static MefLoader()
    {
        var catalog = new AggregateCatalog();
        catalog.Catalogs.Add(new DirectoryCatalog("."));
        Container = new CompositionContainer(catalog);

    }
Run Code Online (Sandbox Code Playgroud)

我理解大多数如何使用MEF,除了我没有看到如何初始化DllList对象.我想使用延迟加载,因为在最终系统中,我们有很多选项,任何时候都只会使用大约10%.

.net c# mef

5
推荐指数
1
解决办法
4831
查看次数

如何使用带最小化主窗口的CreateProcess启动控制台应用程序

我有一个本机c ++ Windows应用程序,它使用以下代码启动两个子进程 -

if (!CreateProcess(NULL, // No module name (use command line)
    cmdLine, // szCmdline, // Command line
    NULL, // Process handle not inheritable
    NULL, // Thread handle not inheritable
    false, // Set handle inheritance to FALSE
    CREATE_DEFAULT_ERROR_MODE | NORMAL_PRIORITY_CLASS // Process Create Flags
    NULL, // Use parent's environment block
    NULL, // workingDir, // Use parent's starting directory
    &si, // Pointer to STARTUPINFO structure
    &pi) // Pointer to PROCESS_INFORMATION structure
Run Code Online (Sandbox Code Playgroud)

使用STARTUPINFO块0中的所有参数.此代码在启动进程时工作正常.但是,我需要能够在最小化窗口的情况下启动Windows c ++控制台应用程序.

如果我将CREATE_NO_WINDOW添加到Process Create Flags,我可以在没有任何窗口的情况下启动进程.这是不可接受的.

在我的研究中,似乎没有办法强制控制台应用程序以最小化模式打开.它是否正确?

是的,我知道我可以在他们自己的进程中最小化子应用程序窗口,但是,团队中的其他程序员不喜欢这样做.

c++ windows winapi console-application

5
推荐指数
1
解决办法
1万
查看次数

代码约定的条件属性异常

我在以下代码上使用代码契约时遇到异常:

public void Debug(
            dynamic message1, 
            dynamic message2 = null, 
            dynamic message3 = null, 
            dynamic message4 = null, 
            dynamic message5 = null, 
            dynamic message6 = null)
     {
         Contract.Requires(message1 != null, 
             "First Logged Message cannot be null");
     }
Run Code Online (Sandbox Code Playgroud)

我正在尝试配置项目设置,以便在运行时完成检查.

例外是"无法动态调用方法'需要',因为它具有条件属性".我已经多次重新阅读Code Contracts文档并完成了一些搜索,但我不明白条件属性的来源.

c# code-contracts

5
推荐指数
1
解决办法
2378
查看次数

使用JStree的"initial_open"选项出现问题

我正在使用JStree开发我的第一个应用程序,并且它几乎可以完成我作为导航树所需的一切.我有javascript代码工作,使用knockoutjs动态构建页面的html列表结构(这里有点过分,但我在页面的其他地方使用knockout).将JStree附加到HTML后,我的DOM看起来像 -

<div id="menuTreeList" data-bind="template: "treeMenuTemplate"" class="navtree  
             jstree jstree-0 jstree-focused jstree-default">    
<ul class="jstree-no-dots jstree-no-icons">
    <li id="menu_1" class="jstree-leaf"><ins class="jstree-icon">&nbsp;</ins><span> 
        <a href="#" class=""><ins class="jstree-icon">&nbsp;</ins>CARES Home</a></span>
    </li>
    <li id="menu_2" class="jstree-closed"><ins class="jstree-icon">&nbsp;</ins><a href="#">
        <ins class="jstree-icon">&nbsp;</ins>Case Management</a>
        <ul>
            <li id="menu_3" class="jstree-leaf"><ins class="jstree-icon">&nbsp;</ins><span class="navtree-spanDefault">
                <a href="#"><ins class="jstree-icon">&nbsp;</ins>Search</a></span> </li>
            <li id="menu_4" class="jstree-leaf"><ins class="jstree-icon">&nbsp;</ins><span class="navtree-spanDefault">
                <a href="#"><ins class="jstree-icon">&nbsp;</ins>Participant Summary</a></span>
            </li>
            <li id="menu_5" class="jstree-leaf"><ins class="jstree-icon">&nbsp;</ins><span class="navtree-spanDefault">
                <a href="#"><ins class="jstree-icon">&nbsp;</ins>Transfer WP Office</a></span>
            </li>
            <li id="menu_6" class="jstree-last jstree-leaf"><ins class="jstree-icon">&nbsp;</ins><span
                class="navtree-selected">Update Individual Address</span> </li>
        </ul>
    </li>
    <li id="menu_7" class="jstree-last jstree-leaf"><ins class="jstree-icon">&nbsp;</ins><a
        href="#"><ins …
Run Code Online (Sandbox Code Playgroud)

javascript jstree

4
推荐指数
1
解决办法
9288
查看次数

有条件地为jQuery Ajax调用添加选项

我有以下工作Ajax调用 -

    $.ajax({
        url: ajaxUrl,
        type: sendHttpVerb,
        dataType: 'json',
        processData: false,
        contentType: 'application/json; charset=utf-8',
        complete: function () {
            setTimeout($.unblockUI, 2000);
        },
        success: function (response, status, xml) {
            clearTimeout(delayLoadingMsg);
            $.unblockUI();
            callbackFunction(response);
        },
        error: function (jqXHR, textStatus, errorThrown) {
            clearTimeout(delayLoadingMsg);
            $.unblockUI();
            dcfForm.ajaxErrorDisplay(jqXHR, textStatus, errorThrown)
        }
    });
Run Code Online (Sandbox Code Playgroud)

我的问题是我有条件地想在调用Ajax调用时添加一个选项.例如,data: sendRequest在我发出Ajax请求之前添加.

我的问题我找不到一个关于如何在不完全复制整个函数的情况下执行此操作的语法示例.

javascript ajax jquery jquery-plugins

4
推荐指数
1
解决办法
3193
查看次数