typedef is not working properly..
-
Hi, i am enhancing my application to support unicode characters... Following is my code snippet: --------------------------------------------------- typedef struct tagTIMEDATE { DWORD Innards[2]; } TIMEDATE; (structure being defined by Microsoft.(oledb.h)) typedef struct tagDBID { union { GUID guid; GUID *pguid; /* Empty union arm */ } uGuid; DBKIND eKind; union { LPOLESTR pwszName; ULONG ulPropid; /* Empty union arm */ } uName; } DBID; I used the following typedef now: typedef TIMEDATE DBID; ------------------------------------------ Unfortunately, Compiler throws me an error (c2371) stating DBID is redefined;different basic types.. Previously, it was working fine. its not working after making my solution unicode supporting one in the project settings.. can anyone guide me how to solve this issue? Thanks, Rakesh
-
Hi, i am enhancing my application to support unicode characters... Following is my code snippet: --------------------------------------------------- typedef struct tagTIMEDATE { DWORD Innards[2]; } TIMEDATE; (structure being defined by Microsoft.(oledb.h)) typedef struct tagDBID { union { GUID guid; GUID *pguid; /* Empty union arm */ } uGuid; DBKIND eKind; union { LPOLESTR pwszName; ULONG ulPropid; /* Empty union arm */ } uName; } DBID; I used the following typedef now: typedef TIMEDATE DBID; ------------------------------------------ Unfortunately, Compiler throws me an error (c2371) stating DBID is redefined;different basic types.. Previously, it was working fine. its not working after making my solution unicode supporting one in the project settings.. can anyone guide me how to solve this issue? Thanks, Rakesh
-
TIMEDATE and DBID are reserved datetype so you cant use DBID. Make typedef TIMEDATE MY_DBID;
Press F1 for help or google it. Greetings from Germany
-
Hi, Karsten But previously, it was working fine... in the sense, before converting my project settings to unicode... If so, why is it not working now?