Error when compiling tutorial

Error when compiling tutorial

SuperRune
Enthusiast Enthusiast
255 Views
1 Reply
Message 1 of 2

Error when compiling tutorial

SuperRune
Enthusiast
Enthusiast
Hi,

I am following the How to Write a Geometric Object tutorial inside the SDK Programmer's Guide. I get the following errors when trying to compile the plugin:

1>------ Build started: Project: Tutorial1_Geo, Configuration: Release Win32 ------
1>Compiling...
1>Tutorial1_Geo.cpp
1>p:\dev\3dsmax_mine\tutorial1_geo\tutorial1_geo\tutorial1_geo.cpp(263) : error C2065: 'pBlock2' : undeclared identifier
1>p:\dev\3dsmax_mine\tutorial1_geo\tutorial1_geo\tutorial1_geo.cpp(263) : error C2227: left of '->GetFloat' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>p:\dev\3dsmax_mine\tutorial1_geo\tutorial1_geo\tutorial1_geo.cpp(264) : error C2227: left of '->GetFloat' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>p:\dev\3dsmax_mine\tutorial1_geo\tutorial1_geo\tutorial1_geo.cpp(265) : error C2227: left of '->GetFloat' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>Build log was saved at "file://p:\DEV\3dsmax_mine\Tutorial1_Geo\Tutorial1_Geo\Release\BuildLog.htm"
1>Tutorial1_Geo - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Since I am learning this, I'm having problems understanding what might be wrong. Looking over that section of code, it matches the tutorial 100%. Here's the text itself:

void Widget::BuildMesh(TimeValue t)
{
float size = pBlock2->GetFloat(widget_size, t)
float sizeLeft = pBlock2->GetFloat(widget_left, t)
float sizeRight = pBlock2->GetFloat(widget_right, t)

#include "..\widgetmesh.h"
mesh.InvalidateGeomCache()
}


Anybody know what could be causing this?
0 Likes
256 Views
1 Reply
Reply (1)
Message 2 of 2

SuperRune
Enthusiast
Enthusiast
Ooooops! Got to watch that letter capitalization better, this aint maxscript :)

pBlock2 should have been pblock2 ...
0 Likes