float ZeroingDistance, float BulletDropAdd, float InitialSpeed, float TrajectoryGravityZ, float BallisticDragScale,
float BallisticDropScale, float BDS, float SimulationSubstepTime, float VDragCoefficient, FRichCurve & RichCurve, int KeysNum, std::vector & Keys, float* BulletDropR, float* TravelTimeR)
{
*BulletDropR = GunLocation.X;
*TravelTimeR = ZeroingDistance;
return true;
}
半吊子别来,我没时间陪你共同学习..." /> float ZeroingDistance, float BulletDropAdd, float InitialSpeed, float TrajectoryGravityZ, float BallisticDragScale,
float BallisticDropScale, float BDS, float SimulationSubstepTime, float VDragCoefficient, FRichCurve & RichCurve, int KeysNum, std::vector & Keys, float* BulletDropR, float* TravelTimeR)
{
*BulletDropR = GunLocation.X;
*TravelTimeR = ZeroingDistance;
return true;
}
半吊子别来,我没时间陪你共同学习..."> float ZeroingDistance, float BulletDropAdd, float InitialSpeed, float TrajectoryGravityZ, float BallisticDragScale,
float BallisticDropScale, float BDS, float SimulationSubstepTime, float VDragCoefficient, FRichCurve & RichCurve, int KeysNum, std::vector & Keys, float* BulletDropR, float* TravelTimeR)
{
*BulletDropR = GunLocation.X;
*TravelTimeR = ZeroingDistance;
return true;
}
半吊子别来,我没时间陪你共同学习..." />

C/C++编写DLL供易语言调用

¥ 需报价

¥ 需报价 匠迹众包 Technology & Programming China
12 days ago

Description

我有现成的C++源码,现在需要将这个C++源码里的一个函数封装为DLL供易语言调用

将这段代码转成C来编译为DLL也可以,只要可以让易语言正常调用即可

下面是我封装好的函数,现在主要就是传参问题(里面的运行代码我给删了):
extern "C" __declspec(dllexport) bool GetBulletDropAndTravelTime(FVector & GunLocation, FRotator & GunRotation, FVector & TargetPos,<br> float ZeroingDistance, float BulletDropAdd, float InitialSpeed, float TrajectoryGravityZ, float BallisticDragScale,<br> float BallisticDropScale, float BDS, float SimulationSubstepTime, float VDragCoefficient, FRichCurve & RichCurve, int KeysNum, std::vector & Keys, float* BulletDropR, float* TravelTimeR)<br>{<br> *BulletDropR = GunLocation.X;<br> *TravelTimeR = ZeroingDistance;<br> return true;<br>}<br>

半吊子别来,我没时间陪你共同学习...

关注公众号,不定期副业成功案例分享
Follow WeChat

Success story sharing

Want to stay one step ahead of the latest teleworks?

Subscribe Now

Similar Teleworks