逸逸记事
逸逸记事

我的分类(专题)

首页(175)
儿子(9)
SIP技术(9)
Web2.0(12)
摄影和DVD(8)
软件开发随笔(18)
名古屋打工生活(11)
微软技术开发(47)
Java技术(12)
加拿大移民生活(20)
生活点滴(6)
第一份工作--上海贝尔(18)
完成项目(13)
回国后的生活(0)


最新日志
独行者
终于知道什么叫外包了
人生悲哀之事
水晶报表中显示动态图片
水晶报表中的简单参数设置
怀念下小黑
dotnet中的数据连接Timeout
老板的思路
又买房了
交通事故

最新回复
回复:独行者
回复:怀念下小黑
回复:老板的思路
回复:mjSip学习笔记
回复:老板的思路
回复:dotnet中的数据连接Timeo
回复:mjSip学习笔记
回复:交通事故
回复:交通事故
回复:又买房了

留言板

签写新留言

您好,很希望问您一个关于jain-sip
生活经历就是最大的财富,羡哦~
java的Web开发问题
回复:疑问
IT还不如妓女呢,呵呵
myjavaserver的空间
求助
您的子域名已开通

统计
blog名称:人在旅途
日志总数:175
评论数量:505
留言数量:13
访问次数:1670421
建立时间:2005年12月7日

链接

 

生命是过客,人在旅途。奶奶是信基督教的,没啥文化,却养育了四子二女,还带过九个孙辈。老人家对生命的看法就是“人都是客人,迟早要回去的。”就以《人在旅途》来纪念她。

 

«September 2025»
123456
78910111213
14151617181920
21222324252627
282930

公告
  本人上传的源程序中可能引用或使用了第三方的库或程序,也可能是修改了第三方的例程甚至是源程序.所以本人上传的源程序禁止在以单纯学习为目的的任何以外场合使用,不然如果引起任何版权问题,本人不负任何责任.




     本站首页    管理页面    写新日志    退出
调整中...
[微软技术开发]ATL:How make different COM objects which have the same default interface
人在旅途 发表于 2006/1/22 8:31:46

It is very simple.
 1. Create all the objects with the wizarding.
 2. Create a new interface seperately.
 3. Changing as following(just a sample, IObj0 is the interface all objects have):
 [
  uuid(EBD5C822-E3A9-11D2-9362-000021E7560C),
  helpstring("Obj1 Class")
 ]
 coclass Obj1
 {
  [default] interface IObj1;
 };
 to:
 [
  uuid(EBD5C822-E3A9-11D2-9362-000021E75

阅读全文(2350) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]COM method and property arguments Test
人在旅途 发表于 2006/1/22 8:31:05

This project is here for me to study and test many problems which I met in other COM project and can't be solved, eg: Object,SAFEARRAY created in the server. Step1: Create a new ATL COM named ComTest
Result1:
 Dim x As TESTCOMLib.ComTest
 Set x = New TESTCOMLib.ComTest
 x.GetVar o
 : When the o is Passed into the ComTest as a variant* pRet, the pRet->vt == VT_EMPTY, and at this time you can return this variant as pRet->vt = VT_DISPATCH.
Resu

阅读全文(1932) | 回复(0) | 编辑 | 精华 | 删除

[Java技术]How to attach a user data(byte[]) to a soap message?
人在旅途 发表于 2006/1/22 8:29:49

1. You will need following JAR lib:
    1.saaj-api.jar: From J2ee lib;
    2.saaj-impl.jar: From J2ee lib;
    3.activation.jar: From J2ee lib;
    4.soap.jar: From Apache soap project.
 url:http://www.apache.org/dyn/closer.cgi/ws/soap/
 The jar file is small(about 250K), you can use it directly(Tested); Or you can get the source of class ByteArra
阅读全文(3287) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]Using Atl to create activex controls
人在旅途 发表于 2006/1/22 8:29:08

If you has a property in Atl control with the type of OLE_COLOR, then this property will appear in the StockColorPage automatically. So I you can use the following easily to support persistence for this property:
 PROP_ENTRY("ValidColor", 1, CLSID_StockColorPage).
But strangely, the ativex control test container will not prompt you to save the values of this property if you have changed it.(at the same time,it will prompt you to save changes for other legal stock properties changing.
阅读全文(1892) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]The use of RGS file in registering of an ATL dll.
人在旅途 发表于 2006/1/22 8:28:26

In the ATL project, there is a with the extension as "RGS", the file is created and modified by project and class wizard. It is a resource file of the project, you can change it by text-edit. After your changing, you must rebuild the project, the affection will be inside the dll. And next time you register the DLL, your changing will be put into the registry. If there is any error in you changing in RGS, next you register the DLL, there will be an error reported by the "regsvr32.exe".
阅读全文(2519) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]ASSERT(AfxIsValidAddress(lpBuf, nCount));
人在旅途 发表于 2006/1/22 8:27:44

ASSERT(AfxIsValidAddress(lpBuf, nCount));
Use this to check if the buffer is valid.
阅读全文(4748) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]Important notes before implement Interface of COM using ATL
人在旅途 发表于 2006/1/22 8:26:43

BEGIN_COM_MAP(CThisObject)
   COM_INTERFACE_ENTRY(IUnknown)
   COM_INTERFACE_ENTRY_CHAIN(COtherObject)
END_COM_MAP( )
Caution As of version 3.0, ATL uses the compiler keyword __uuidof( class ) to obtain the corresponding IID for a given class. Because of changes in the COM_INTERFACE_ENTRY macros effective in version 3.0, now you simply include the header for the interface to use, instead of also linking to a library that defines the matching IIDs for that interfac
阅读全文(2509) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]How to debug shell extension in windows
人在旅途 发表于 2006/1/22 8:25:58

(From MSDN)
HOWTO: Debug a Windows Shell Extension Article ID: Q138942 The information in this article applies to:  The development environment included with: - Microsoft Visual C++, 32-bit Edition, versions 2.0, 2.1, 2.2, 4.0,       4.1, 4.2 5.0
SUMMARY To debug a Windows Shell Extension using Microsoft Visual C++, you must specify the Windows shell as the "Executable For Debug Session" in Project Settings (Build Settings if using Microsoft Developer
阅读全文(3767) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]Some thing about _bstr_t converting to char* or whcar*
人在旅途 发表于 2006/1/22 8:24:52

Some functions will require the arguement as char* , LPTSTR or WCHAR*, you can directory pass your variable of _bstr_t type to these functions and these functions can convert it automatically. But, when the functions' arguments are used for returning value, then you can not do it as followings:
For Example:
LPTSTR str = (LPTSTR )some_of_bstr_t;
SomeFunctions(str ,...);
or
SomeFunctions((LPTSTR )some_of_bstr_t,...); Most important:
T
阅读全文(5898) | 回复(0) | 编辑 | 精华 | 删除

[微软技术开发]ATL:Implement the same default interface from different object in different DLLs(different project) and using user define type in the interface method.
人在旅途 发表于 2006/1/22 8:24:21

First Way:
1. As normally, first create the ATL object(Eg: First) and an ATL interface(Eg: IFirst) in a DLL by the ATL Wizard in the first project.
2. Add IFirst's method by using ATL Class Wizard.
3. Create a IDL file(For example, FirstInterface.idl), then move the definition of IFirst to that IDL file. Don't forget to move the necessary "#import" directive and necessary enum, structure definition to that IDL file.
4. Now you can remove the IFirst's definition from it's original
阅读全文(2705) | 回复(0) | 编辑 | 精华 | 删除


站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.070 second(s), page refreshed 144792429 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号