Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: passing strings Pin
dona jain8-Aug-07 23:56
dona jain8-Aug-07 23:56 
GeneralRe: passing strings Pin
sunit59-Aug-07 0:10
sunit59-Aug-07 0:10 
GeneralRe: passing strings Pin
toxcct9-Aug-07 0:10
toxcct9-Aug-07 0:10 
GeneralRe: passing strings Pin
dona jain9-Aug-07 0:18
dona jain9-Aug-07 0:18 
GeneralRe: passing strings Pin
dona jain9-Aug-07 0:24
dona jain9-Aug-07 0:24 
GeneralRe: passing strings Pin
toxcct9-Aug-07 0:26
toxcct9-Aug-07 0:26 
GeneralRe: passing strings Pin
Ranjoy Guha9-Aug-07 0:19
Ranjoy Guha9-Aug-07 0:19 
AnswerRe: passing strings Pin
Jim Crafton9-Aug-07 8:43
Jim Crafton9-Aug-07 8:43 
Since you're obviously using C++ you should use it correctly. Don't pass crap like char cName[100] as arguments in functions or as variables. Use the STL's std::string class for representing a string.

Thus you would rewrite the above as

void FileOperation::fileRead( const std::string& cName, const std::string& cSvnPath, const std::string& cPass )


second problem - you have variables defined within the local scope of your function with the same name as the arguments you've defined in your function. That could be problematic.

You should go out and get a good book on C++ first and get comfortable with the basics.

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
VCF Blog

QuestionTCHAR* argv[ ] Pin
baerten8-Aug-07 22:59
baerten8-Aug-07 22:59 
AnswerRe: TCHAR* argv[ ] Pin
jk chan8-Aug-07 23:11
jk chan8-Aug-07 23:11 
GeneralRe: TCHAR* argv[ ] Pin
baerten8-Aug-07 23:42
baerten8-Aug-07 23:42 
AnswerRe: TCHAR* argv[ ] Pin
toxcct8-Aug-07 23:21
toxcct8-Aug-07 23:21 
GeneralRe: TCHAR* argv[ ] Pin
baerten8-Aug-07 23:44
baerten8-Aug-07 23:44 
GeneralRe: TCHAR* argv[ ] Pin
toxcct8-Aug-07 23:49
toxcct8-Aug-07 23:49 
GeneralRe: TCHAR* argv[ ] Pin
baerten9-Aug-07 0:47
baerten9-Aug-07 0:47 
GeneralRe: TCHAR* argv[ ] Pin
toxcct9-Aug-07 1:33
toxcct9-Aug-07 1:33 
GeneralRe: TCHAR* argv[ ] Pin
baerten9-Aug-07 2:17
baerten9-Aug-07 2:17 
GeneralRe: TCHAR* argv[ ] Pin
toxcct9-Aug-07 2:22
toxcct9-Aug-07 2:22 
GeneralRe: TCHAR* argv[ ] Pin
baerten9-Aug-07 2:30
baerten9-Aug-07 2:30 
GeneralRe: TCHAR* argv[ ] Pin
sunit59-Aug-07 0:27
sunit59-Aug-07 0:27 
Questionfilling Arbitrary Area..usin MFC Pin
himuskanhere8-Aug-07 22:50
himuskanhere8-Aug-07 22:50 
AnswerRe: filling Arbitrary Area..usin MFC Pin
jk chan8-Aug-07 22:55
jk chan8-Aug-07 22:55 
AnswerRe: filling Arbitrary Area..usin MFC Pin
jhwurmbach8-Aug-07 23:46
jhwurmbach8-Aug-07 23:46 
Questionhelp in Developing Video Mixer Filter Pin
trioum8-Aug-07 22:49
trioum8-Aug-07 22:49 
AnswerRe: help in Developing Video Mixer Filter Pin
jk chan8-Aug-07 22:57
jk chan8-Aug-07 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.