I have a Dll file named swedll32.dll which is used for astronomical calculations. I have imported those functions in C# and am using them. but in c++ i have tried every way possible to import these functions but it doesn't work.
could please somebody demonstrate how to import a function for example with given name?
int swe_calc_ut(double tjd_ut,int ipl,int iflag,double* xx,char* serr)
,
where
tjd_ut =Julian day, Universal Time
ipl =body number
iflag =a 32 bit integer containing bit flags that indicate what kind of computation is wanted.
xx=array of 6 doubles for longitude, latitude, distance, speed in long., speed in lat., and speed in dist.
serr[256] =character string to return error messages in case of error.