| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1344 人关注过本帖
标题:自动获取OCX的CLSID源代码
只看楼主 加入收藏
hj08103
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-3-23
收藏
 问题点数:0 回复次数:1 
自动获取OCX的CLSID源代码
我在网上下载的源代码,用VC++编译时出错,但是我才接触VC++对检查语法错误不时很懂
特地上论坛来求助!
Vc++编译时出错提示如下
//--------------------------------------------------------------
Compiling...
RegOcx.cpp
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(141) : error C2065: 'LPCOLESTR' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(141) : error C2146: syntax error : missing ')' before identifier 'x'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(141) : error C2433: 'ocslen' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(141) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(141) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(141) : error C2447: missing function header (old-style formal list?)
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(143) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(143) : error C2433: 'OLECHAR' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(143) : error C2501: 'OLECHAR' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(143) : error C2061: syntax error : identifier 'LPOLESTR'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(144) : error C2501: 'ocscpy' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(144) : error C2065: 'LPOLESTR' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(144) : error C2146: syntax error : missing ';' before identifier 'memcpy'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(144) : error C2065: 'dest' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(144) : error C2065: 'src' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : error C2433: 'OLECHAR' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : error C2501: 'OLECHAR' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : error C2086: 'OLECHAR' : redefinition
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : error C2061: syntax error : identifier 'LPOLESTR'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : error C2501: 'ocscat' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(145) : warning C4508: 'ocscat' : function should return a value; 'void' return type assumed
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(151) : error C2146: syntax error : missing ';' before identifier 'CharNextO'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(151) : error C2433: 'LPOLESTR' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(151) : error C2501: 'LPOLESTR' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(151) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.

RegOcx.exe - 1 error(s), 0 warning(s)
/-----------------------------------------------
vc++自动注册ocx.rar (1.52 KB)

由于我是新注册的的,我只有20的积分,请大师们帮我看看
另外这个代码如果成功编译后什么使用呀,据介绍中说是可以由OCX完整路径得到CLSID
---------------------------------------------------
那位大师把它编译成一个功能模块也好呀!

[ 本帖最后由 hj08103 于 2011-3-29 19:41 编辑 ]
搜索更多相关主题的帖子: 源代码 microsoft 
2011-03-23 09:58
hj08103
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-3-23
收藏
得分:0 
自己顶一下!
2011-03-29 19:39
快速回复:自动获取OCX的CLSID源代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.055603 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved