vb_dba
Nov 28th, 2001, 06:05 PM
I have the following struct definition:
typedef struct AppInfo{
string AppName;
string AppVer;
TCHAR pcName[256];
} strApp;
I am passing it to a function this way:
GetInfo(&strApp);
and my function is declared:
int GetInfo(strApp &AppList)
when I compile, I get an error message stating that the function GetInfo can't convert parameter 1 from strApp * to strApp &. It's been a couple of years since I've programmed in C++ (does it show?). I want to be able to view the new contents of AppList outside of the GetInfo function. I know this is newbie question, but I'd appreciate your help.
typedef struct AppInfo{
string AppName;
string AppVer;
TCHAR pcName[256];
} strApp;
I am passing it to a function this way:
GetInfo(&strApp);
and my function is declared:
int GetInfo(strApp &AppList)
when I compile, I get an error message stating that the function GetInfo can't convert parameter 1 from strApp * to strApp &. It's been a couple of years since I've programmed in C++ (does it show?). I want to be able to view the new contents of AppList outside of the GetInfo function. I know this is newbie question, but I'd appreciate your help.