P
pc_newbie
Hi all, can i call a c dll in another c program like what vb does
without knowing .h file? thanks
without knowing .h file? thanks
pc_newbie said:Hi all, can i call a c dll in another c program like what vb does
without knowing .h file? thanks
pc_newbie said:Hi all, can i call a c dll in another c program like what vb does
without knowing .h file? thanks
Yes, you can.pc_newbie said:Hi all, can i call a c dll in another c program like what vb does
without knowing .h file? thanks
Sorry, this is off-topic in comp.lang.c because it cannot be done
in a portable manner with standard C.
Sorry, this is off-topic in comp.lang.c because it cannot be done
in a portable manner with standard C.
Today is VB, what is conceptually the same. Fortran and VB are both foreign
language systems.
jacob said:Please do not confuse comp.std.c with comp.lang.c.
The question is a legitimate question that many people have asked. And it concerns
the C language since calling conventions from other languages are common since
the very start of C.
jacob said:Yes, you can.
You can write your own header file just for the functions you are going to
use. But you must know exactly what the prototypes of those functions are. If you
got the documentation, you can eassily figure out the prototypes, even without
a header file.
Goran Larsson said:FORTRAN and VB are off topic here.
jacob navia said:Yes. But not the C interface to those systems. VB questions would be off topic,
not C interfacing with those systems.
jacob navia said:Yes. But not the C interface to those systems. VB questions would be off topic,
not C interfacing with those systems.
Ah, so? Please point out where in the C standard(s) the terms 'dll',
'VB' or 'interface' are mentioned; C&V please.
Why did you include the whole header?jacob navia said:From: "Irrwahn Grausewitz" <[email protected]>
Newsgroups: comp.lang.c
Sent: Sunday, September 21, 2003 12:22 PM
Subject: Re: dll ?
The question of the OP is covered in 6.7.5.3: prototypes.
Prototypes are used to specify function interfaces, that can be very well written in
a foreign language.
The question concerned how to figure out the prototypes for functions written
in VB but this is equally useful for any foreign functions, in FORTRAN, VB,
Pascal or whatever.
The standard way of doing this is providing a C bindings header. I answered that
in the absence of this header, this can be done by using the documentation of
the package, and figuring out the C interface of the functions you want to use.
System header files are, will be and have ever been non-standard andIt is a widely used practice to give prototypes (header files) for functions written
in assembly language. All system header files like TCPIP headers, GUI headers,
etc, use this facility of the C language. There is nothing off topic here, and I would
contradict your assertion that "this can't be done in portable C". Of course it can
be done, and it is done massively in all operating systems I know of.
Please do not confuse comp.std.c with comp.lang.c.
The question is a legitimate question that many people have asked.
And it concerns the C language since calling conventions from other languages are common since
the very start of C.
i am asking a question in c, but want to know if c could do the way likepc_newbie said:Hi all, can i call a c dll in another c program like what vb does
without knowing .h file? thanks
pc_newbie said:i am asking a question in c, but want to know if c could do the way like
what what what.... i am not asking other programming lang. here.
sorry
for confusing you.
pc_newbie said:i am asking a question in c, but want to know if c could do the
way like what what what.... i am not asking other programming
lang. here. sorry for confusing you.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.