learn Glut, this the example
here:
1. put the file in system32 glut32.dll
2. added to the uses GLUT, GL, GLU
3. added a procedure to initialize the GLUT:
procedure glutInitPascal(ParseCmdLine: Boolean);
var
Cmd: array of PChar;
CmdCount, I: Integer;
begin
if ParseCmdLine then
CmdCount := ParamCount + 1
else
CmdCount := 1;
SetLength(Cmd, CmdCount);
for I := 0 to CmdCount - 1 do
Cmd[I] := PChar(ParamStr(I));
glutInit(@CmdCount, @Cmd);
end;
The result: could not load Glut from glut32.dll
what am I doing wrong?