Click here to Skip to main content
15,887,880 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: system startup progrematicaly Pin
Jump_Around23-Jun-03 22:33
Jump_Around23-Jun-03 22:33 
QuestionLoad IE at system startup??? Pin
xxhimanshu23-Jun-03 20:41
xxhimanshu23-Jun-03 20:41 
AnswerRe: Load IE at system startup??? Pin
Ryan Binns23-Jun-03 21:11
Ryan Binns23-Jun-03 21:11 
AnswerRe: Load IE at system startup??? Pin
parths23-Jun-03 21:11
parths23-Jun-03 21:11 
GeneralRegistry Hives Pin
abhinarulkar23-Jun-03 20:36
abhinarulkar23-Jun-03 20:36 
Generalregular dll Pin
gucy23-Jun-03 20:15
gucy23-Jun-03 20:15 
GeneralControlling Scrollbar in CTreeCtrl Pin
Ph@ntom23-Jun-03 19:31
Ph@ntom23-Jun-03 19:31 
GeneralGetCommandLine Pin
Toni7823-Jun-03 18:38
Toni7823-Jun-03 18:38 
GetCommandLine() returns a string enclosed in quotation marks. So the first question is why? Let's call this string strCmdLine.
Since I had no idea that strCmdLine was enclosed in quotations marks, I would just extract the path of the executable by adding a null character at the location of the very last '\' occurence. So if my path was "c:\\apps\\myapp\\myapp.exe" I would convert the string to "c:\\apps\\myapp\0. As you can see there is a quotation mark at the begining of the string. Calling SetCurrentDirectory() would work just fine in Windows XP but it doesn't work in Windows 98. I fixed the problem by removing the leading quotation mark but I am puzzled as why would this work in XP and not in 98? This should not work at all. I don't know if it works in other windows versions.

// Afterall, I realized that even my comment lines have bugs
GeneralRe: GetCommandLine Pin
David Crow24-Jun-03 2:59
David Crow24-Jun-03 2:59 
GeneralRe: GetCommandLine Pin
Toni7824-Jun-03 20:18
Toni7824-Jun-03 20:18 
Generalheader and redefine problem Pin
zecodela23-Jun-03 17:47
zecodela23-Jun-03 17:47 
GeneralRe: header and redefine problem Pin
Ryan Binns23-Jun-03 18:12
Ryan Binns23-Jun-03 18:12 
GeneralRe: header and redefine problem Pin
Toni7823-Jun-03 18:20
Toni7823-Jun-03 18:20 
GeneralRe: header and redefine problem Pin
zecodela23-Jun-03 18:52
zecodela23-Jun-03 18:52 
GeneralRe: header and redefine problem Pin
Toni7823-Jun-03 19:19
Toni7823-Jun-03 19:19 
GeneralPreviewing video Pin
weituck23-Jun-03 17:37
weituck23-Jun-03 17:37 
GeneralRe: Previewing video Pin
Andrew Walker23-Jun-03 19:11
Andrew Walker23-Jun-03 19:11 
GeneralShowing differences in strings Pin
Jack Handy23-Jun-03 14:46
Jack Handy23-Jun-03 14:46 
QuestionHow is DSR toggled programmatically? Pin
RuchikaDhingra23-Jun-03 14:16
RuchikaDhingra23-Jun-03 14:16 
AnswerRe: How is DSR toggled programmatically? Pin
Ryan Binns23-Jun-03 16:36
Ryan Binns23-Jun-03 16:36 
GeneralGetting an Access report in a VC++ prog Pin
gnurff23-Jun-03 13:24
sussgnurff23-Jun-03 13:24 
GeneralRe: Getting an Access report in a VC++ prog Pin
basementman24-Jun-03 4:53
basementman24-Jun-03 4:53 
GeneralRe: Getting an Access report in a VC++ prog Pin
Gnurff24-Jun-03 12:35
sussGnurff24-Jun-03 12:35 
GeneralDirectX DrawText breaks W's Pin
Dave Goodman23-Jun-03 13:08
Dave Goodman23-Jun-03 13:08 
GeneralRe: DirectX DrawText breaks W's Pin
ZoogieZork23-Jun-03 16:37
ZoogieZork23-Jun-03 16:37 

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.