juz 1 quick qns,
how do u create an array of strings??
Code:
char *hostarray= "Cmc-01 Cmc-02 Cmc-03 Cmc-04";
//and test it by doing this
MessageBox(hwnd, hostarray[2] , "arrarytest", MB_OK);
i am hoping this gives me hostarray[0] = "Cmc-01" , hostarray[1]= "Cmc-02" but it doesnt work
kept getting the error
"c:\program files\microsoft visual studio\projects\aaclient\array.h(56) : error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe."