I am trying to use a vc++ 1.52 program to call a DOS pascal program. MSDN says you can do this and gives the folowing
void __pascal maxparam(int __near * a, int __near * b);
main()
{
int a=5;
int b=7;
maxparam(&a,&b);
}
and the pascal...
MODULE Psub;
BEGIN
IF a> b then...
Did Not have much luck with free pascal. My program does a lot of bitwise graphics. I wanted to explore using vc++ 1.52 as the parrant and breaking up my dos pascal into modules.
I can compile the C++ code and the dos pascal module but I get an unresolved external maxparam error when I Link...
The Pascal 3.31 manual says you can do mixed language programming. I think the problem may be either calling C++ 1.52 (windows) from Pascal 3.31(DOS) or that my variable types are not matched.
I am willing to use assembly if necessary but would rather avoid it. I was hopping someone had...
I am trying to call the mmsystem library that comes from VC 1.52 from MS-DOS pascal 3.31. I am Using the waveInGetNumDevs to test with.
function waveInGetNumDevs:NumDevs:word; extern;
result:= waveInGetNumDevs;
The source compiles and successfully links but sends control back to Windows and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.