企业绩效管理网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 547|回复: 1

I cannot add reference tm1api.dll and tm1lib.dll.

[复制链接]

80

主题

401

帖子

588

积分

高级会员

Rank: 4

积分
588
QQ
发表于 2014-3-20 12:35:33 | 显示全部楼层 |阅读模式
I am writing a project using Microsoft visual Studio 2008 by programming language C + +.

1.        Setting path to the DLLs following steps in this link,

2.        Open Visual Studio and create a project.
3.        Go to menu bar 芒???Website芒??? and Add Reference
4.        Go to tab 芒???Browse芒??? and choose file tm1api.dll from path 芒???C:Program FilesCognosTM1bin芒??? and click ok
Only add tm1api.dll, it show error 芒???A reference to 芒???C:Program FilesTM1bintm1api.dll芒??? could not be added. No type libraries were found in the component.芒????br />
I setting path include files and library files is C:Program FilesCognosTM1bin.

But Project Setting not "URL" in Microsoft visual Studio 2008.

Please tell me.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

86

主题

415

帖子

604

积分

高级会员

Rank: 4

积分
604
QQ
发表于 2014-3-20 15:34:14 | 显示全部楼层
Hi:

You can not create a reference to TM1 API DLLs from Visual Studio or any other development environment.  They aren't that kind of DLL.  These API DLLs require you, instead, to declare the functions that you plan to use in TM1API.DLL in your application in order to use them - there are sample C header/VB declaration files provided by IBM to help in this effort.  The PATH setting is important so that Visual Studio can locate the DLLs and find the TM1 API functions you've declared.  

Unfortunately, there are not very good examples in the TM1 API manuals with Visual Studio.NET, but there are some samples provided by IBM for Visual Basic and C++.  You may find some additional information on the TM1 API in the TM1 API manual that may be useful.  I'd also suggest searching around on this forum first for "TM1API" or "TM1 API" for additional information and possible examples.  This kind of question has come up quite a bit.

Note there is also a Java TM1 API and a .NET TM1 API that may be useful to you as other alternatives, depending on what it is you're trying to do with a TM1 API.

Regards,
Mike
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|企业绩效管理网 ( 京ICP备14007298号   

GMT+8, 2023-10-3 08:45 , Processed in 0.065902 second(s), 13 queries , Memcache On.

Powered by Discuz! X3.1 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表