最近在做一个ACTIVEX控件,是基于ATL的,在用IE进行测试时,调用其中的一个接口很容易引起IE崩溃,初步判断是因为内存操作引起的。正确代码如下:
STDMETHODIMP CIECSChart::createTable(BSTR json)
{
// TODO: Add your implementation code here
wchar_t* t = (_bstr_t)(json...
分类:
其他好文 时间:
2014-11-21 22:00:06
阅读次数:
292
here we just want to divide a simple string with blank space within it , such as " hello world " .char buff[256]=" hello world ";and we have two gene....
分类:
其他好文 时间:
2014-11-21 16:05:21
阅读次数:
186
20 Interesting WPF Projects on CodePlex (Some for Silverlight too)Pete Brown-22November2010In no particular order, here's a selection of interesting a...
By filling a rectangle with slashes (/) and backslashes ( ), you can generate nice
little mazes. Here is an example:
As you can see, paths in the maze cannot branch, so the whole maze only cont...
分类:
其他好文 时间:
2014-11-20 22:04:37
阅读次数:
215
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags ...
分类:
移动开发 时间:
2014-11-20 17:01:19
阅读次数:
236
Information about LocalDB comes from here and SQL Server 2014 Books Online. LocalDB is the full SQL Server Express engine, but invoked directly from t...
分类:
数据库 时间:
2014-11-20 15:02:21
阅读次数:
204
Normally, we can set default value for function param://Here use "Hello" as default paramvar receive =function(message="Hello", handle){ handler(me...
分类:
其他好文 时间:
2014-11-20 06:48:53
阅读次数:
185
一、文件夹的创建 1 void CFileOperationDlg::OnButtonMakeFolder() 2 { 3 // TODO: Add your control notification handler code here 4 UpdateData(TRUE); 5 ...
分类:
编程语言 时间:
2014-11-19 20:10:37
阅读次数:
349
/* * File: Boggle.cpp * ---------------- * Name: [TODO: enter name here] * Section: [TODO: enter section leader here] * This file is the main starter ...
分类:
其他好文 时间:
2014-11-19 12:12:45
阅读次数:
247
在winform中使用dsoframer 1.3载入word文档,但是在axFramerControl1.Open("NPOI.docx");在axFramerControl1控件中却显示Unable to display the inactive document.Click here to reacitive the document.
遇到这种情况的解决办法有两种方式,一是代码实现设置控件...