ciao,
ho una funzione :
quando hoprovato a crearla, inserendo il pMaterial->FindProperty, vuole che sia statica, e quindi l'ho dichiarata statica:codice:void MaterialTextureConnections( tag_INT_MATERIAL* pMat, KFbxSurfaceMaterial* pMaterial) { KFbxProperty lProperty; //Diffuse Textures lProperty = pMaterial->FindProperty((char const*)KFbxSurfaceMaterial::sDiffuse); pMat->m_strDiffuseTexture = GetTexturesName(&lProperty); }
il problema è che se la invoco dall'interno della classe da una funzione non statica mi da il seguente errore:codice:static void MaterialTextureConnections(tag_INT_MATERIAL* pMat, KFbxSurfaceMaterial* pMaterial);
Error 14 error LNK2001: unresolved external symbol "public: static char const * const fbxsdk_2011_3::KFbxSurfaceMaterial::sDiffuse" (?sDiffuse@KFbxSurfaceMaterial@fbxsdk_2011_3@@2PBD B) FbxLoader.obj
come si gestisce una funzione statica in questo caso?
da quello che ho letto su google una funzione statica ha accesso solo a membri statici e non a membri non statici di classe ,non ha stato ,e non è possibile utilizzare this, ma non so proprio come procedere.
grazie.

Rispondi quotando