Solved

Calling a C programme

Posted on 2000-04-02
2
168 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
2 Comments
 

Accepted Solution

by:
thomasheilig earned 50 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now