jfo planet

Hope is the best gift that tomorrow gives.

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

PE文件格式示意图

发表于 2007-07-21   |   分类于 Windows
阅读全文 »

#pragma comment(lib,Version.lib);

发表于 2007-07-21   |   分类于 Windows
[zz]From MSDN#pragma code_seg(".orpc")#pragma comment( "comment-type" [, commentstring] )Places a comment record into an object file or executable file. The comment-type is one of five predefined identifiers, described below, that specifies the type of comment record. The optional commentstring is a string literal that provides additional information for some comment types. Because commentstring is a string literal, it obeys all the rules for string literals with respect to ...
阅读全文 »

[zz]mingw中的dlltool工具的使用

发表于 2007-07-19   |   分类于 gcc/binutils/make/共享库
/ This program allows you to build the files necessary to create   DLLs to run on a system which understands PE format image files.   (eg, Windows NT)   See "Peering Inside the PE: A Tour of the Win32 Portable Executable   File Format", MSJ 1994, Volume 9 for more information.   Also see "Microsoft Portable Executable and Common Object File Format,   Specification 4.1" for more information. &n ...
阅读全文 »

ATL-style virtual function implementation

发表于 2007-07-18   |   分类于 com组件
WTL for MFC Programmers, Part I - ATL GUI ClassesATL-style templatesEven if you can read C++ templates without getting a headache, there are two things ATL does that might trip you up at first. Take this class for example:class CMyWnd : public CWindowImpl<CMyWnd>{…};That actually is legal, because the C++ spec says that immediately after the class CMyWnd part, the name CMyWnd is defined and can be used in the inheritance list. The reason for having the class name as a template parameter i ...
阅读全文 »

com proxy & stub

发表于 2007-07-17   |   分类于 com组件
阅读全文 »

今天是被小鸟叫醒的

发表于 2007-07-17   |   分类于 Life
一大早,被一只小鸟的叫声叫醒了,清澈响亮,睁开模糊的眼睛,找了半天,终于在阳台上找到了它。不多久又来了一只,于是成了一对,一起叫着。我都不好意思不起床了。这几天一直在研究技术,在公司就拼命干活,貌似小boss发威了,时不时的就凑过小脑袋来问“怎么样?”,我都快产生恐惧心理了,还好我觉悟比较高,多少总得认真一回,给项目组做些东西,留下点东西,顺便也可以多学一点wine下.dll和.so的知识,于是中午不睡觉也这样过着。回到实验室就研究一下COM组件相关的东东。于是就这样技术下去,都快麻木不仁了,其实一直都在麻木着,也许这样才比较容易度过这个暑假。一直都没有运动,严重虚弱,一定要锻炼,就是太懒。。。总找借口把它一不小心给忘掉。。。晚上去楼顶透透气,不知道grape以前在机房的时候是不是也会出来溜溜呢,发现山那边总有几束光,突然发现那应该就是音乐喷泉的灯了!原来它在那边,9:30左右有开放一次,灯光时强时弱,虽然此时只见其光不闻其声,但仍很壮观。决定了,这个暑假什么时候再去看一次。保安大哥快要来了,就到这里了,闪人了。。。
阅读全文 »

link

发表于 2007-07-15   |   分类于 com组件
COM/ATLWTL for MFC Programmers, Part I - ATL GUI ClassesBeginner’s Tutorial: COM/ATL Simple ProjectUsing User Defined Types in COM & ATLATL Under the Hood - Part 1ATL7 and AttributesMigrating ATL service applications to Visual C++.NETUnderstanding The COM Single-Threaded Apartment Part 1http://www.codeproject.com/com/xyevent.aspXPCOMhttp://www.xulplanet.com/references/xpcomref/http://www.xulplanet.com/references/xpcomref/http://developer.mozilla.org/en/docs/Creating_XPCOM_Components:Creatin ...
阅读全文 »

XPCOM Part 2: XPCOM component basics Back to top

发表于 2007-07-15   |   分类于 com组件
http://www.ibm.com/developerworks/webservices/library/co-xpcom2.htmlThe idea behind XPCOM as a technology is to provide a modular framework that is platform- and language-neutral. There is very little that a component written in C++ can do that can’t be done in JavaScript or some other scripting language. The mechanism used in XPCOM to accomplish this feat is a type library.Type library A type library provides a common data format or interchange mechanism for describing the methods, attribute ...
阅读全文 »

XPCOM Part 3: Setting up XPCOM

发表于 2007-07-15   |   分类于 com组件
http://www.ibm.com/developerworks/webservices/library/co-xpcom3.html。。。Enabling XPCOM in an application Before an application can actually begin using XPCOM components, there are a set of libraries that must be loaded and initialized for the XPCOM framework to operate. Here’s a sample app to do that: Listing 1. Sample app to load and initialize necessary libraries #include <stdio.h>#include <nsIServiceManager.h>#include <nsISomething.h>int ...
阅读全文 »

客户端

发表于 2007-07-14   |   分类于 com组件
DictCtrl.cpp //// DictCtrl.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "windows.h"#include <stdio.h>#include <comutil.h>#include "IDictionary.h"#include "ISpellCheck.h"// {54BF6567-1007-11D1-B0AA-444553540000}extern "C" const GUID CLSID_Dictionary = { 0x54bf6567, 0x1007, 0x11d1, { 0xb0, 0xaa, 0x44, 0x45, 0x53, 0x54 ...
阅读全文 »
1…495051…61
jfo

jfo

605 日志
38 分类
4 标签
RSS
GitHub 微博
友情链接
  • 收藏夹
  • 网络剪贴板
  • 爱逛吧
© 2007 - 2018 jfo
由 Hexo 强力驱动
主题 - NexT.Pisces