c++ cx - Windows 8 metro app identifier not found error -


i have 3 functions declared in mainpage.xaml.h file:

int getoperator(platform::string^ str); bool isnumber (platform::string^ str); bool isoperator (platform::string^ str); 

and use them in mainpage.cpp file, "identifier not found" error on these 3 functions in .cpp file when try build.

they called fourth function, declared in .h file, don't error on fourth function.

first need add header file cpp file (and need set linker in ide compiler knows find header file)

#include "your_headerfile.h" 

after need declair functions in .cpp file/code. called forward declaration. compiler needs know function prototype when function call compiled.

int getoperator(platform::string^ str); bool isnumber (platform::string^ str); bool isoperator (platform::string^ str);  int main() {    ...    code    ... } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -