Solved

Including Turbo C++ modules in VB

Posted on 2001-06-12
2
429 Views
Last Modified: 2007-12-19
Is is possible to  include Turbo C++ modules in Visual Baisc? I am having a module which has been developed in C++ ,Which is used to communicate to a external device so I want to include that C++ module in Visual Basic. I wish to pass parameters beteween VB & C++ . So is it possible?
Please treat this matter as most urgent .

0
Comment
Question by:arna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:morgan_peat
ID: 6180708
Very possible.
Either:
1. Compile your C++ code into a DLL, or other linkable binary.  You can then use Declare statements to call the exported functions in your DLL.
2. Compile a C++ module into VB during the compile process.  I haven't done this myself, but I know it is possible.
Read http://www.devx.com/upload/free/features/vbpj/1999/11nov99/jc1199/jc1199.asp fore more details.
0
 
LVL 3

Accepted Solution

by:
baldrick earned 200 total points
ID: 6180845
Yes I imagine it's possible... just extremely difficult. I recall Turbo C++ was Borland's old 16 bit compiler. It may be able to generate 16-bit DLLs, but I seem to recall back in those dark Win 3.1 days that 16 bit DLL programming is rather awkward since data segment DS will probably not equal the stack segment SS (get an old copy of Charles Petzold's "Programming Windows 3.1" for clarification on this). It won't be as simple as just changing a couple of compiler switches.

Although COM is a binary standard I wouldn't want to even consider recompiling a 16 bit C++ module under TC to be COM compliant. Scary stuff...


0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question