NewState parameter
Posted: Fri Oct 07, 2005 2:59 pm
this is probably because i'm only a c++ novice, but i'm confused on the NewState parameter. the c++ plug-in template produces this prototype:
the docs say to copy my buffer to NewState on the second call, but how does one modify a const? i was only able to make this work by modifying the def to:
which works fine... but i was curious how you are able to make it work with the prototype provided... i asked some more knowledge programmers and they didn't understand it either so please enlighten us!
Code: Select all
int WINAPI DesignTimeEdit(
int Window,
const char* State,
const char* NewState
);
the docs say to copy my buffer to NewState on the second call, but how does one modify a const? i was only able to make this work by modifying the def to:
Code: Select all
int WINAPI DesignTimeEdit(
int Window,
const char* State,
char* NewState
);
which works fine... but i was curious how you are able to make it work with the prototype provided... i asked some more knowledge programmers and they didn't understand it either so please enlighten us!