By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,986 Members | 1,522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,986 IT Pros & Developers. It's quick & easy.

Calling a C# code from VB6

P: 7
i have a problem.I want to use a piece of code, which is written in c# in my VB6 project...

Pls help...
Nov 22 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 1,445

Its a Class or a Dll....?
If its a dll, Just Include the dll in VB Reference..
If the code is small, you can convert it to VB equivalent code..

Nov 22 '07 #2

P: 7
Thanks for ur reply Veena

The code is small but cant convert it into VB equivalent.
Actaully the main problem is we are trying to generate a pdf using an input *.rtf as input and.NET environment provides us certain classes to call the API's of FDK (FrameMaker dev kit,proviede by Adobe), which VB6 does not.

Also i have made dll, but cant reference it into VB....
Nov 22 '07 #3

Expert 100+
P: 1,445

If you have converted to dll, add it to your VB project:
go to menu: Project >> References >> Click on Browse,
Browse the dll and say OK.
This way, VB will automatically Register the dll..
and you can use the Classes in your project..

Nov 22 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.