From: Joseph M. Newcomer on 9 Apr 2010 23:37 I wish I could help but the only machine I had VS6 installed died, and after several weeks my outsourced site maintenance has not been able to get the Virtual Machine which it was reloaded onto actually working. So I can't verify what those error lines contain, and I'm sorry. It was supposed to be working two days ago, but they never showed up to finish the (yet another, but final, so they said) installation, and I have been tied up in family-emergency crisis the last three days (I've been spending more time in hospitals recently, this time as a visitor, than I've spent in the last few years as a patient) Key here is you must not put strsafe.h ahead of ANY of the standard Windows header files, which it looks as if you have done. joe On Fri, 9 Apr 2010 14:14:11 -0400, "RB" <NoMail(a)NoSpam> wrote: >> I'm sorry, there is no such thing as "a whole bunch of errors". There is a list of >> errors, which have specific text and which have specific error numbers, and they are >> reporting on specific lines of the files. WIthout knowing what those error messages say, >> and where you included strsafe.h relative to the other header files, there is no way to >> tell what happened. >> I usually put strsafe.h at the end of my list of header files in stdafx.h. >> joe > >Hey Joe, I kinda had a feeling you would ask for this but didn't want to clog >up the issue with a big text paste prior to maybe a simple solution with the SDK >Anyhow here are the errors and warnings, they are the same whether I put the >#include <strsafe.h> at the beginning or end of StdAfx.h. >I am going to try the other posters suggestion of installing the SDK to a separate >folder. I was afraid the install might foobar the registy if it spotted my VC 6.x install. >But it appears I can switch back and forth by just changing the include folders path. >Anyhow here they are, I meant to get back sooner but got bogged down at work >---------------Configuration: Try_2 - Win32 Debug-------------------- >Compiling... >StdAfx.cpp >c:\program files\microsoft visual studio\vc98\include\winbase.h(3418) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winbase.h(3419) : error C2226: syntax error : unexpected type 'LPSTR' >c:\program files\microsoft visual studio\vc98\include\winbase.h(3425) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winbase.h(3426) : error C2226: syntax error : unexpected type 'LPWSTR' >c:\program files\microsoft visual studio\vc98\include\winbase.h(3432) : warning C4005: 'lstrcpy' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6500) : see previous definition of 'lstrcpy' >c:\program files\microsoft visual studio\vc98\include\winbase.h(3438) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winbase.h(3439) : error C2226: syntax error : unexpected type 'LPSTR' >c:\program files\microsoft visual studio\vc98\include\winbase.h(3445) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winbase.h(3446) : error C2226: syntax error : unexpected type 'LPWSTR' >c:\program files\microsoft visual studio\vc98\include\winbase.h(3452) : warning C4005: 'lstrcat' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6524) : see previous definition of 'lstrcat' >c:\program files\microsoft visual studio\vc98\include\winerror.h(7933) : warning C4005: 'FAILED' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(44) : see previous definition of 'FAILED' >c:\program files\microsoft visual studio\vc98\include\winuser.h(188) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winuser.h(189) : error C2226: syntax error : unexpected type 'LPSTR' >c:\program files\microsoft visual studio\vc98\include\winuser.h(195) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winuser.h(196) : error C2226: syntax error : unexpected type 'LPWSTR' >c:\program files\microsoft visual studio\vc98\include\winuser.h(202) : warning C4005: 'wvsprintf' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6575) : see previous definition of 'wvsprintf' >c:\program files\microsoft visual studio\vc98\include\winuser.h(205) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winuser.h(205) : error C2226: syntax error : unexpected type 'LPSTR' >c:\program files\microsoft visual studio\vc98\include\winuser.h(206) : warning C4229: anachronism used : modifiers on data are >ignored >c:\program files\microsoft visual studio\vc98\include\winuser.h(206) : error C2226: syntax error : unexpected type 'LPWSTR' >c:\program files\microsoft visual studio\vc98\include\winuser.h(210) : warning C4005: 'wsprintf' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6566) : see previous definition of 'wsprintf' >c:\program files\microsoft visual studio\vc98\include\tchar.h(55) : warning C4005: '_ftcscat' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6563) : see previous definition of '_ftcscat' >c:\program files\microsoft visual studio\vc98\include\tchar.h(57) : warning C4005: '_ftcscpy' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6521) : see previous definition of '_ftcscpy' >c:\program files\microsoft visual studio\vc98\include\tchar.h(444) : warning C4005: '_stprintf' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6590) : see previous definition of '_stprintf' >c:\program files\microsoft visual studio\vc98\include\tchar.h(445) : warning C4005: '_sntprintf' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6593) : see previous definition of '_sntprintf' >c:\program files\microsoft visual studio\vc98\include\tchar.h(448) : warning C4005: '_vstprintf' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6584) : see previous definition of '_vstprintf' >c:\program files\microsoft visual studio\vc98\include\tchar.h(449) : warning C4005: '_vsntprintf' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6587) : see previous definition of '_vsntprintf' >c:\program files\microsoft visual studio\vc98\include\tchar.h(465) : warning C4005: '_getts' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6596) : see previous definition of '_getts' >c:\program files\microsoft visual studio\vc98\include\tchar.h(493) : warning C4005: '_tcscat' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6560) : see previous definition of '_tcscat' >c:\program files\microsoft visual studio\vc98\include\tchar.h(494) : warning C4005: '_tcscpy' : macro redefinition > c:\program files\microsoft visual studio\vc98\include\strsafe.h(6518) : see previous definition of '_tcscpy' >Error executing cl.exe. >Creating browse info file... >Try_2.exe - 8 error(s), 22 warning(s) >--End of errors > Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: RB on 10 Apr 2010 08:46 >I wish I could help but the only machine I had VS6 installed died,......... >.........................So I can't verify what those error lines contain, and I'm >........... I have been tied up in family-emergency crisis the last three days >(I've been spending more time in hospitals recently, this time as a visitor, >than I've spent in the last few years as a patient) >========================================== Thanks Joe, I will play around and see what I can do, and otherwise I will have to give up the better Class Wizard and go with VC 2005 of which I also own now. I cam empathize with you on your hospital time. I have been there and done that with both of my parents and also my father in law. It is a rough time with that sort of stuff, but it also sobers us to realities of life and helps sometimes to get our parameters in order as our journey progresses to the end portal that is called by and given different definitions by different faiths or non faiths. But it is one we all have a final destiny with. I pray for strength for you and your family at this time, and I ask God give you what ever you need at this time in return for the guidance that you have given me so many times before on technical subjects. RB
From: Joseph M. Newcomer on 11 Apr 2010 16:24 Thanks for the sympathy. It is not an easy time when you are told a relative has a terminal condition. From my own viewpoint, being told you are likely to be dead shortly is very sobering. This is why I have no qualms about telling people very bluntly that they are wrong. I'm 20 years since one surgery that was mandatory ("or you'll be dead in a year") and 15 years one that was accidental (I didn't know when I went into the OR if I'd be coming out, having lost most of my blood supply). So I don't have to maintain any pretenses. WYSIWYG with me. I've already outlived two projections, both due to living in a city with some of the world's best hospitals. I seem to be fixed right now, but I realize that I could not be here tomorrow. I have three linear feet of scar tissue on my body from various surgeries (one 8" scar has to be counted twice, since the second surgery reused it) and don't feel I need to be overly polite when things are going wrong. I have a sense of proportion about what matters. I heard Jim Lovell (Apollo 13 commander) explain that after his last flight, he doesn't have any problem coping with any problem; I don't recall his exact words, but they were along the lines of "I know what serious problems are, and I haven't had one since I landed". I feel the same way. So while the care is time-consuming, I know how to get through these crises. This is the fifth "eldercare" situation I've had to handle, and I pretty much know who I have to talk to, what questions to ask, and what to do with the answers. Being trained as a problem-solver helps a lot. joe On Sat, 10 Apr 2010 08:46:17 -0400, "RB" <NoMail(a)NoSpam> wrote: >>I wish I could help but the only machine I had VS6 installed died,......... >>.........................So I can't verify what those error lines contain, and I'm >>........... I have been tied up in family-emergency crisis the last three days >>(I've been spending more time in hospitals recently, this time as a visitor, >>than I've spent in the last few years as a patient) >>========================================== >Thanks Joe, I will play around and see what I can do, and otherwise >I will have to give up the better Class Wizard and go with VC 2005 of >which I also own now. > I cam empathize with you on your hospital time. I have been there and >done that with both of my parents and also my father in law. It is a >rough time with that sort of stuff, but it also sobers us to realities of life >and helps sometimes to get our parameters in order as our journey >progresses to the end portal that is called by and given different definitions >by different faiths or non faiths. But it is one we all have a final destiny >with. >I pray for strength for you and your family at this time, and I ask God >give you what ever you need at this time in return for the guidance that >you have given me so many times before on technical subjects. >RB > Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: RB on 11 Apr 2010 18:19 I did get my strsafe function to compile with no errors by installing the Platform SDK. I did have to place the include at the end of the Stdafx.h file like you said though and I also had to move the Platform SDK include path up ahead of my other includes on my path options as David has told me. Now if I could just find some easily accessible help files on the strsafe functions. The only files in the Platform SDK install that elude to anything to do with help are in the installed folder of C:\Program Files\Microsoft SDK\Help but they are all .hxi .hxs .hxq .hxr and .hxt extension files that don't open up with anything I have ? Enjoyed reading your reply (as always) . Even though I am off topic for this group, I would quickly like to comment on the below. >I heard Jim Lovell (Apollo 13 commander) explain that after his last flight, he doesn't >have any problem coping with any problem; I don't recall his exact words, but they were >along the lines of "I know what serious problems are, and I haven't had one since I >landed". Wow, that really transcends all description. If memory serves me correctly Jim is the one that did hand calculus with pen and paper on the projected reentry path due to technical failures on the return trip from the Moon. He really was quite a talented individual. > This is the fifth "eldercare" situation I've had to handle, and I pretty much know who I > have to talk to, what questions to ask, and what to do with the answers. Being trained > as a problem-solver helps a lot. joe Boy that is the truth. My dad died first and 10yrs later when my Mom was ill she was so out of congnitiveness due to the cancer and medications that I literally had to be her brain as far as conversing with the various doctors during her care. I had to learn a lot about the logistics of hospital protocol etc and I can definitely relate to what you are describing. Take care Joe and hope the best for your family member.
From: David Ching on 11 Apr 2010 21:49 "RB" <NoMail(a)NoSpam> wrote in message news:uUP6JUc2KHA.3844(a)TK2MSFTNGP05.phx.gbl... > Now if I could just find some easily accessible > help files on the strsafe functions. The functions listed in http://msdn.microsoft.com/en-us/library/ff468910(v=VS.85).aspx starting with "String" are what you want. -- David
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: DeleteFile shows as DeleteFileA Next: Displaying Animated Cursor |