| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2080 人关注过本帖
标题:0x80004002 no such interface supported
只看楼主 加入收藏
sharamjam
Rank: 2
来 自:UK
等 级:论坛游民
帖 子:81
专家分:59
注 册:2014-9-19
结帖率:68.75%
收藏
 问题点数:0 回复次数:1 
0x80004002 no such interface supported
在Win10下的vfp9 sp2里
预编译、设置项目信息、再编译成的多线程的dll
编译结束的时候提示注册失败

管理员身份运行命令行
在 C:\Windows\SysWow64下 手工注册该dll成功
但是用CreateObject或NewObject调用时
提示'OLE error 0x80004002: no such interface supported'

想通过向导发布web服务,选定该dll后
提示该dll包含非法类库

是什么问题啊,求高手指点
程序代码:
DEFINE CLASS ManaSystUser as Session OLEPUBLIC
    DataSession=2
    
    PROCEDURE GetUerList HelpString "获取用户列表"

        LOCAL oXmlAdap as XMLAdapter ,oCursAdap as String,cXml as String
        oCursAdap=CREATEOBJECT("iCursAdap")
        oCursAdap.CursorFill()
        oXmlAdap=NEWOBJECT("XmlAdapter")
        oXmlAdap.AddTableSchema(oCursAdap.Alias)
        oXmlAdap.ToXml("cXml")
        RELEASE oCursAdap,oXmlAdap
        RETURN cXml

    ENDPROC

ENDDEFINE

DEFINE CLASS iCursAdap as CursorAdapter
    Alias="SystUser"
    BreakOnError='F'
    DataSourceType="ODBC"
    Tables="SystUser"
*!*        SendUpdates=.T.                &&是否向更新表发送SQL更新查询
*!*        AllowDelete=.T.
*!*        AllowInsert=.T.
*!*        AllowUpdate=.T.
*!*        UpdateType=1                   && 1-用新数据替换旧数据   2-删除旧数据,插入新数据
*!*        WhereType=1
*!*        KeyFieldList=""
*!*        UpdatableFieldList=""
*!*        UpdateNameList=""
*!*            BufferModeOverride=5
    cConnStr="driver=sql server;server=114. .234..;uid=ffsfs;pwd=aaadadadadd;database=ws_analyze"

     PROCEDURE init

        this.DataSource=SQLSTRINGCONNECT(this.cConnStr)
        this.SelectCmd="select * from dbo.ActiExpeChec_SystUser"
        this.CursorSchema="uid I,user_name c(25),pass_word c(32),whic_tool c(35)"

    ENDPROC

    FUNCTION Destroy()
        SQLDISCONNECT(this.DataSource)
    ENDFUNC

ENDDEFINE


注册文件VBR
程序代码:
VB5SERVERINFO
VERSION=1.0.0

HKEY_CLASSES_ROOT\mycomsvr.ManaSystUser = mycomsvr.ManaSystUser
HKEY_CLASSES_ROOT\mycomsvr.ManaSystUser\NotInsertable
HKEY_CLASSES_ROOT\mycomsvr.ManaSystUser\CLSID = {331DF8BB-2E49-43A8-9050-3554694BF57B}
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B} = mycomsvr.ManaSystUser
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\ProgId = mycomsvr.ManaSystUser
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\VersionIndependentProgId = mycomsvr.ManaSystUser
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\InProcServer32 = mycomsvr.dll
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\InProcServer32\"ThreadingModel" = Apartment
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\TypeLib = {905FC70C-EB10-44E2-8892-2D8F54A6AE79}
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\Version = 1.0
HKEY_CLASSES_ROOT\CLSID\{331DF8BB-2E49-43A8-9050-3554694BF57B}\Foxruntime = VFP9T.DLL
HKEY_CLASSES_ROOT\INTERFACE\{239D302C-49FB-49A8-8999-7221FA3F4835} = ManaSystUser
HKEY_CLASSES_ROOT\INTERFACE\{239D302C-49FB-49A8-8999-7221FA3F4835}\ProxyStubClsid = {00020424-0000-0000-C000-000000000046}
HKEY_CLASSES_ROOT\INTERFACE\{239D302C-49FB-49A8-8999-7221FA3F4835}\ProxyStubClsid32 = {00020424-0000-0000-C000-000000000046}
HKEY_CLASSES_ROOT\INTERFACE\{239D302C-49FB-49A8-8999-7221FA3F4835}\TypeLib = {905FC70C-EB10-44E2-8892-2D8F54A6AE79}
HKEY_CLASSES_ROOT\INTERFACE\{239D302C-49FB-49A8-8999-7221FA3F4835}\TypeLib\"Version" = 1.0


; TypeLibrary registration
HKEY_CLASSES_ROOT\TypeLib\{905FC70C-EB10-44E2-8892-2D8F54A6AE79}
HKEY_CLASSES_ROOT\TypeLib\{905FC70C-EB10-44E2-8892-2D8F54A6AE79}\1.0 = mycomsvr Type Library
HKEY_CLASSES_ROOT\TypeLib\{905FC70C-EB10-44E2-8892-2D8F54A6AE79}\1.0\0\win32 = mycomsvr.dll
HKEY_CLASSES_ROOT\TypeLib\{905FC70C-EB10-44E2-8892-2D8F54A6AE79}\1.0\FLAGS = 0



[此贴子已经被作者于2018-6-21 14:55编辑过]

搜索更多相关主题的帖子: interface dll 数据 this CLSID 
2018-06-21 14:36
sharamjam
Rank: 2
来 自:UK
等 级:论坛游民
帖 子:81
专家分:59
注 册:2014-9-19
收藏
得分:0 
问题已经解决
出在vfp自动注册dll的时候
用管理员身份运行vfp
正常编译,调用正常

我是VFP菜鸟……
但是用VFP实现一个个小应用,还是很有成就感的
2018-06-21 16:03
快速回复:0x80004002 no such interface supported
数据加载中...
 
   



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

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