添加对 VS 6.0 C++ 的引用帮助!
我是一名CS学生,正在实习。我的主管真的很忙,他说如果我有疑问可以使用这个网站。
我需要修改一个VS6.0 C++程序。我制作了一个 COMVisible 的 C# 类库。 在 Visual Basic 6.0 中,它可以识别类型库并按预期方式工作。我做了一个Visual Basic 6.0来测试类型库,但现在我需要将我的类库实现到VS6.0 C++程序中。
我需要以下方面的帮助: 如何向 VS6.0C++ 添加类型库(tlb)或 dll 引用或类似方法的引用(我只是找不到关于如何添加它的文章) 在 Visual Basic 6.0 中添加 tlb 很容易,
将使用我的 COMVisible 库的简单代码转换为 C++。
有一个局部变量:
Public ls As New pcbCOMVisibleLibrary
在方法中也有这个:
Dim work As Boolean
work = ls.Post(Text1.Text, Text2.Text)
Label1.Caption = work
I am a CS student who is in an intern. My supervisor is really busy and he said I could use this site if I have questions.
I need to modify a VS6.0 C++ program. I have made a C# class library that is COMVisible.
In Visual Basic 6.0 it recongnizes the type library and works how it is supposed to. I made a Visual Basic 6.0 to test the type library, but now I need to implement my class library into the VS6.0 C++ program.
I need help on with the following:
How to add a type library (tlb) or dll reference or reference like method to VS6.0C++ (I just can't find an article on how to add it)
The tlb was easy to add in Visual Basic 6.0
Translate a simple code to C++ that uses my COMVisible library.
Have a local variable:
Public ls As New pcbCOMVisibleLibrary
Also have this in a method:
Dim work As Boolean
work = ls.Post(Text1.Text, Text2.Text)
Label1.Caption = work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里您可以找到多种方法来做到这一点: http://www.codeproject.com/ KB/DLL/loadingdll.aspx。我知道仅仅发布一个链接不太好,但在这种情况下,codeproject 上的文章很好地解释了您想要做什么,并且没有什么可说的。
我认为你的问题属于本文的Case1。
Here you can find several ways to do just that: http://www.codeproject.com/KB/DLL/loadingdll.aspx. I know that just posting a link is not very nice, but in this case the article on codeproject explains what you want to do very well and there's little more to say.
I think your problem falls into the Case1 of this article.