小编sxi*_*eng的帖子

Google Docs是否有任何开源替代方案?

我正在寻找Google Docs的开源替代品.我想要它的原因是因为我想在我的电脑上托管它.Google不允许您这样做.有人知道Google Docs的任何开源替代品吗?如果有的话,我将不胜感激.

非常感谢!

open-source google-docs

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

如何使用C++在Windows中获取系统文件夹路径(C:\ Windows C:\ Program Files)?

我在c ++ MFC中编程,

我想得到"C:\ windows""c:\ program files"文件夹路径.

有时用户可能会在其他文件夹中设置窗口,例如c:\ windows0.

是否有任何API来获取Windows和程序文件路径的绝对路径?

非常感谢!

c++ windows api mfc

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

如何在android中将drawable设置为ListView

我正在为Android 1.5编写一个应用程序.我想使用复杂的列表视图来显示我的数据.我想在List项目中显示可绘制对象的ImageView.

我从一个演示中学到了:

------> listData.put("Img", listData.put("Img", R.drawable.XXX));
listData.put("Time", "100");
listItems.add(listData);
Run Code Online (Sandbox Code Playgroud)

它可以正确显示,但是,我想在运行时更改Img,图像可能在运行时生成,所以我将代码更改为如下,但它会下降.谁能帮我 ?非常感谢!

protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.item_list);
    itemListView = (ListView) findViewById(R.id.listview);
    ArrayList<HashMap<String, Object>> listItems = new ArrayList<HashMap<String, Object>>();
    for(int i = 0;i <XXX.size(); ++i) {
        HashMap<String, Object> listData = new HashMap<String, Object>();
--------->/*1)*/  listData.put("Img", new Drawable(XXX));
        /*2)*/  listData.put("Time", "100");
        /*3)*/  listItems.add(listData);
    }
    SimpleAdapter listItemAdapter = new SimpleAdapter(this, listItems, R.layout.listitem, new String[] { "Img", "Time"}, new int[] { R.id.listitem_img, R.id.listitem_time });
    itemListView.setAdapter(listItemAdapter);
}
Run Code Online (Sandbox Code Playgroud)

listitem.xml …

android listview drawable imageview

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

如何使用php验证Apple IAP收据?

我正在使用php为iOS应用程序编写服务器.

我想通过访问Apple的appstore服务器来查看收据.

根据苹果的帮助文件.我必须向苹果的服务器发送一个帖子请求.

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html#//apple_ref/doc/uid/TP40008267-CH104-SW1

我怎么能用php做到这一点,非常感谢!

任何人都可以举个例子吗?

php in-app-purchase ios

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

是否有任何API可以在Windows中获取路径"C:\ Documents and Settings"?

是否有任何API来获取路径:c ++中的Windows中的"C:\ Documents and Settings"?

不:C:\ Documents and Settings\brianfu\My Documents.

非常感谢!

感谢luke的解决方案:

GetProfilesDirectory
Run Code Online (Sandbox Code Playgroud)

有用!

c++ windows api document

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

如何将INT64写入CString

我在c ++窗口编码.

INT64 dirID = -1;
CString querySQLStr = _T("");
querySQLStr.Format(L"select * from ImageInfo where FolderPath=%64d;", dirID);

querySQLStr always like this:
select * from ImageInfo where FolderPath=                                                            1214;
Run Code Online (Sandbox Code Playgroud)

使用%64d是对的吗?非常感谢

c++ windows mfc cstring int64

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

是否有任何快捷键可以在Eclipse CDT中切换.cc和.h?

是否有任何快捷键可以在Eclipse CDT中切换.cc和.h?

我使用visual stdio,我可以使用alt + o在.cc和.h之间切换,

我可以在Eclipse CDT中完成吗?

非常感谢!

c++ key eclipse-cdt

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

是否有任何点聚类算法将点数收集到附近的组中?

我正在写一个iOS照片管理应用程序.

我想通过GPS信息将照片分组.然后我可以获得一个组的平均GPS信息,并给该组命名,例如:前往纽约.

是否有任何方便的算法通过GPS信息将附近的照片收集到群组中?

algorithm gps photo cluster-analysis data-mining

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

是否有可靠的API来获取Windows中的Windows文件夹?

在C++中使用Windows获取Windows文件夹是否有可靠的API?我使用以下方式,但它失败了.

    BOOL CQUserInfoHelper::GetWindowsPath(CString& strWindowsPath)
    {
        TCHAR windowsPathTemp[MAX_PATH];
        int nSize = MAX_PATH;
        ::GetWindowsDirectory(
            windowsPathTemp,
            nSize);
        strWindowsPath = windowsPathTemp;
        return TRUE;
    }
Run Code Online (Sandbox Code Playgroud)

c++ windows api directory

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