Hello.

We can use "return val;" to make the program(which is cimpiled by C++)return specific value in C & C++, for example:

C++ source code:
-----------------------------------------------------------------------

#include<iostream.h>
main()
{
cout<<"The exe returns a value before ends.">>
return 1024;
}
-----------------------------------------------------------------------

So, the compiled exe will return 1024 other programs before exit.

My question is, how can i do in VB6 to return a value like this?
wether if i hava to call API?
Notice: The val is not return by a function. It is return by the whole program, so that other program(s) can receive it. I am a VB and English learner, so, I hope you can know what I say.