问题列表 - 第19190页

如何更改安装项目中的窗口Applicatoin的默认图标

How to change the Windows Application's default icon with other one in C# desktop application. I am trying to change it in Setup Project but it is not. I want to show my own icon with Application's shortcut rather then windows default icon

.net c# desktop desktop-application

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

android listview first visible position

How can I change the first visible item in a list view (I searched a method such as setFirstVisiblePosition) ?

android listview

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

adding primary key to sql view

Reading that

how to do hibernate mapping for table or view without a primary key

I am wondering how to add a primary key to my view as it is basically just a stored query...?

PS: oracle 10g

thx

sql oracle view primary-key

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

List or ArrayList?(lots of items)

which one is more memory efficient?
which one works faster with 1000000 items?
is there anything better?

.net list arraylist

2
推荐指数
2
解决办法
236
查看次数

哪个数据库用于flex独立应用程序?

我计划开发一个独立的应用程序,实际上将用于个人目的.因此,只有单个用户访问权限.我想在Flex中开发它.只想在这里得到大师们的一些意见:

  1. 我是否应该使用Flex或AIR(我只知道Flex,AIR我需要开始学习)
  2. 我应该使用哪个数据库?SQLLite或HSQLDB或其他一些.

在此先感谢您的帮助.

快乐的编码

问候,PK

database apache-flex air flex3

3
推荐指数
1
解决办法
3355
查看次数

C++:构造函数只接受字符串文字

是否有可能创建一个接受字符串文字的构造函数(或函数签名),而不是例如char const *

是否有可能有两个可以区分字符串文字的重载char const *

C++ 0x会允许使用自定义后缀 - 但我正在寻找"早期"解决方案.

基本原理:避免在作为字符串文字给出时不会被修改的字符串的堆副本.

这些字符串直接转到API,期望const char *没有任何处理.大多数调用确实使用不需要额外处理的文字,只在少数情况下构建它们.我正在寻找保留原生呼叫行为的可能性.

注意: - 因为它出现在答案中:有问题的代码根本不使用std::string,但一个很好的例子是:

class foo
{
   std::string m_str;
   char const * m_cstr;      
 public:
   foo(<string literal> s) : m_cstr(p) {}
   foo(char const * s) : m_str(s) { m_cstr = s.c_str(); }
   foo(std::string const & s) : m_str(s) { m_cstr = s.c_str(); }

   operator char const *() const { return m_cstr; }
}
Run Code Online (Sandbox Code Playgroud)

结果:

(1)不能做到.
(2)我意识到我甚至不是在寻找一个文字,而是一个编译时常量(即"任何不需要复制的东西").

我可能会使用以下模式: …

c++ constructor overloading string-literals

20
推荐指数
4
解决办法
5091
查看次数

如何处理上传.php文件而不执行它们?

我想允许我的用户将.php文件上传到服务器,但也希望确保文件对我的应用程序无害.

有什么建议?

谢谢.

php file-upload

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

如何在SourceForge中更改项目网页?

我在SourceForge中有一个项目:Kryptostr,我想修改默认网页.我怎样才能做到这一点?我可以使用javascript吗?我可以使用某种服务器Web语言作为ASP,PHP等吗?

sourceforge web

7
推荐指数
2
解决办法
3895
查看次数

数据库架构帮助,链接产品的变体

干草,我正在建立一个网站,产品可以有各种颜色和大小.每个项目都有不同的'item_code'.我怎么能把这些连在一起?我可以有一个选项,这样当管理员添加新产品时,它会询问此产品是否是其他产品的变体.如果是,那么在另一个表中找到所有链接的产品和所有ID(如'product_variations').

任何帮助或提示都会很棒.

谢谢

mysql database

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

将vba转换为vb6并创建.dll - 如何 - 提示,提示和风险

我应该将大量用VBA(Excel)编写的代码转换为VB6.但我真的不知道我要照顾什么或从哪里开始.因此,从VB6专家那里得到一些提示会很棒.

我已经安装了MS Visual Studio并且玩了一下.但我不是VB6专家,也不知道我该做什么.

最终目标是将所有VBA代码(当前放在一个excel vba宏中)放入VB6项目中,然后创建一个.dll.这个.dll应该由excel引用,excel应该像现在一样运行:-)

例如,我需要做什么才能将此vba代码转换为VB6.

Public Function getParameterNumberOfMaterial() As Integer
10        On Error Resume Next
          Dim a As String
20        a = Sheets("Parameters").name

30        If IsNumeric(Application.Worksheets(a).range("C3").Value) Then
40            If Application.Worksheets(a).range("C3").Value > 0 Then

50                getParameterNumberOfMaterial = Application.Worksheets(a).range("C3").Value
60            Else
70                MsgBox "Please check cell C3 in the sheet 'Parameters'. It should include a numeric value which is greater than zero"
80                MsgBox "Parameter Number of Material/Cost is set to the default value of 10"
90                getParameterNumberOfMaterial = 10 …
Run Code Online (Sandbox Code Playgroud)

excel vba excel-vba vb6-migration

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