🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Problem building dll in Tutorial 1

User: "Johannes Lindner"
Altair Community Member
Updated by Johannes Lindner

Hi!

I am currently trying to build the dll for Tutorial 4, which is the particle replacement to change it for my specific case. When I try to build the original files, I get 24 error messages with the first being in line 127 CReplacementFactory.cpp:

"Klasse "NApiHelpersV3_4_0::CSimple3DVector"" hat keinen Member ""dx" 

 

From the code:

/// Get last particle in the list
CParticleDef NextParticle = ParticleList[thread].back();

//populate data to create particle
strncpy(type, NextParticle.Type, NApi::API_BASIC_STRING_LENGTH);
scale = NextParticle.Scale *  arrCPos[CCreate][3];

posX = NextParticle.Position.dx() + (NextParticle.Orientation.dxx()* arrCPos[CCreate][0] + NextParticle.Orientation.dxy() * arrCPos[CCreate][1] + NextParticle.Orientation.dxz()* arrCPos[CCreate][2])* NextParticle.Scale;

 

So that class does not have a member dx. What could be the reason for the error message?

I do not think there is a link but currently I am using Visual Studio 2022 instead of 2019. It worked for other tutorials though.

Best regards

 

Find more posts tagged with