问题标签 [header]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
7 回答
24114 浏览

language-agnostic - HTTP:生成 ETag 标头

如何为资源文件生成 ETag HTTP 标头?

0 投票
10 回答
77833 浏览

c++ - 跟踪#include 依赖项的工具

有什么好的建议吗?输入将是头文件的名称,输出应该是直接或间接包括它的所有文件的列表(最好是树)。

0 投票
8 回答
11430 浏览

c - C 文件的组织

我习惯于在一个 C 文件中完成所有编码。但是,我正在从事一个足够大的项目,以至于这样做变得不切实际。我一直将它们#include 在一起,但我遇到过我多次#include 某些文件的情况,等等。我听说过 .h 文件,但我不确定它们的功能是什么(或者为什么有 2 个文件比 1) 好。

我应该使用什么策略来组织我的代码?是否可以将特定文件的“公共”功能与“私人”功能分开?

这个问题引发了我的询问。tea.h 文件不引用tea.c 文件。编译器是否“知道”每个 .h 文件都有对应的 .c 文件?

0 投票
2 回答
21739 浏览

.net - 向 Printing.PrintDocument (.Net 2.0) 添加页眉和页脚的最简单方法?

向 .Net PrintDocument 对象添加页眉和页脚的最简单方法是实用的还是在设计时?

具体来说,我正在尝试打印第 3 方网格控件(Infragistics GridEx v4.3),该控件采用 PrintDocument 对象并将其自身绘制到其中。

生成的页面只包含网格及其内容 - 但是我想添加一个标题或标题来标识打印的报告,并可能添加一个页脚来显示谁打印它,何时打印,理想情况下是页码和总页数。

我正在使用 VB.Net 2.0。

谢谢你的帮助!

0 投票
7 回答
9421 浏览

sql - 如何在 SQL 2005 Reporting Services 报表的标题中显示数据?

开箱即用的 SSRS 报告不能在页眉中公开数据。有没有办法让这些数据显示出来?

0 投票
5 回答
2373 浏览

c++ - 一个文件无法识别 C++ 中其他文件的类

我在文件“Particles.h”中有自己的类,该类的实现在“Particles.cpp”中

我希望文件“Load.h”能够识别其中的类,所以我添加了这一行

并且该文件无法识别它,并且过去一切正常(我没有在该类中进行任何更改)。

我应该怎么办?

0 投票
4 回答
3130 浏览

listview - How to set the header sort glyph in a .NET ListView?

How do I set the column which has the header sort glyph, and its direction, in a .NET 2.0 WinForms ListView?

Bump

The listview is .net is not a managed control, it is a very thin wrapper around the Win32 ListView common control. It's not even a very good wrapper - it doesn't expose all the features of the real listview.

The Win32 listview common control supports drawing itself with themes. One of the themed elements is the header sort arrow. Windows Explorer's listview common control knows how to draw one of its columns with that theme element.

  • does the Win32 listview support specifying which column has what sort order?
  • does the Win32 header control that the listview internally uses support specifying which column has what sort order?
  • does the win32 header control support custom drawing, so I can draw the header sort glyph myself?
  • does the win32 listview control support custom header drawing, so I can draw the header sort glyph myself?
  • does the .NET ListView control support custom header drawing, so I can draw the header sort glyph myself?
0 投票
20 回答
38213 浏览

c++ - 我应该如何检测大型 C++ 项目中不必要的#include 文件?

我正在 Visual Studio 2008 中处理一个大型 C++ 项目,并且有很多包含不必要#include指令的文件。有时#includes 只是工件,删除它们后一切都可以正常编译,而在其他情况下,可以向前声明类,并且可以将 #include 移动到.cpp文件中。有没有什么好的工具可以检测这两种情况?

0 投票
4 回答
33283 浏览

c - 解析 HTTP 标头

我对用 C 语言构建一个小型、高效的 Web 服务器产生了新的兴趣,并且在解析来自 HTTP Header 的 POST 方法时遇到了一些麻烦。有人对如何处理从“已发布”数据中检索名称/值对有任何建议吗?

我认为没有切实的方法可以从整体上检索底线并确保它每次都有效。我不喜欢在任何事情上进行硬编码。

0 投票
7 回答
2800 浏览

c++ - 查找未使用的函数声明的工具?

在重构一些旧代码时,我意识到一个特定的头文件充满了函数的函数声明,这些函数早已从 .cpp 文件中删除。有谁知道可以自动找到(并剥离)这些的工具?