I am sorry _Theo_ i don't understand u. The union name is defined in the MFC and i have no authority to midify it. So I must use the "DUMMYUNIONNAME " union name. Plllllllllllssssssssssss If u know any way of solving this problem i will be very greatful if u send it to me. Thank u Any way for ur quick reply and waiting for ur reply. I really want a solution for this problem. M.A.S.A
M Agamawi
Posts
-
accessing union inside struct -
accessing union inside structHi all I have the following scenario typedef struct _STRRET{ UINT uType; union { LPWSTR pol; UINT uof; char cStr[MAX_PATH]; }DUMMYUNIONNAME; }STRRET , *LPSTRRET; The problem is when i make a variable of type STRRET i couldn't acces the union variables. The following line include the code i wrote STRRET dispName; LPWSTR temp; temp = dispName.DUMMYUNIONNAME.pol; The compiler gives me compiling error: C2059 syntax error: '.' see declaration of _STRRET (which i know very good) Note: the above struct is a MFC defined type and don't know were is the problem may i have accessing the union in a wrong way or something. Sorry for my very stupid question and thanks for ur time in advance. Together we are stronger. I am so :wtf::((:confused::zzz: M.A.S.A
-
Pls Give me an advice in win shell prog.thaks suhredayan for ur advice but i have visited the above url and downloaded some articles from it but it didn't give me want i need exactly. did u think that this is the right track for my problem. :)Together we will be more powerful M.A.S.A
-
Pls Give me an advice in win shell prog.I am a cs graduate student, i am facing a problem in my graduation project. So pls give me your advice for the following: My project is helping peopole with visual problems to use the computer better, using speech recognition (command and control). So in brief what i need is when i recieve the a command i respond to it. For example when the user say Start i will open the start menue. My question is how to control or simulate the right click of the mouse (to open or close special folders)like control panal, my computer, start, recycle bin and others. Is it right to go on with the shell or what is the right track. Thank u for ur time and waiting for an advice If u want more details i will be very grateful if u ask. I am very :confused: :(( M.A.S.A