Solved

Calling a C programme

Posted on 2000-04-02
2
177 Views
Last Modified: 2010-05-02
I want to use a C programme in my Visual Basic project.The VB will provide some inputs to the c Prog and then after execution of the C programme it will get the output from the C programme.Which then will be processed for someother calculations.
0
Comment
Question by:ashwani040200
[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
 

Accepted Solution

by:
thomasheilig earned 50 total points
ID: 2679328
Start your C programm with startapp and provide the input values into the commandline or a file.

Write the output values to a file and raed it in in VB.

Write a flag at the end, to signal vb tha everything is done.

The environment is multitasking !!

hth

Thomas
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2679579
You can run the C executable synchronously. To see how that is done find setup1.vbp on your system.

setup1.vbp should come as standard with your VB installation. It is the setup program that will be run when you create a Setup using the Setup wizard (vb5) or Package and Deployment wizard (VB6)

Anyway, depending on what version of VB you're using check out the FSyncShell or SyncShell function defined in that .vbp. That will avoid the multitasking problems thomasheilig is talking about.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

730 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