Hi guys, I would like to ask how to enable input parameter request upon debugging/executing an application in visual studio? I am trying to debug my c++ application and since I am used to running an application in the command line, I have no idea how to do this in visual studio. If in the command line, usual stuff would be: test 1 -> where test is the application and 1 is the parameter. Is there any way where a request for input parameter would be enabled in visual studio? Sorry, I am not that used to VS. I would appreciate any help. Thanks! -waxie-
waxie
Posts
-
Input parameters for visual studio -
input parameter upon debugging an applicationHi guys, I would like to ask how to enable input parameter request upon debugging/executing an application in visual studio? I am trying to debug my c++ application and since I am used to running an application in the command line, I have no idea how to do this in visual studio. If in the command line, usual stuff would be: test 1 -> where test is the application and 1 is the parameter. Is there any way where a request for input parameter would be enabled in visual studio? Sorry, I am not that used to VS. I would appreciate any help. Thanks! :) -waxie-
-
CDlg on active (MFC)Nope, it's not a property page. It's a tab page in a tabcontrol.:)
-
CDlg on active (MFC)Just to be sure,what I did is I went to the dialog resource and looked for the message handlers in its properties and added a message handler for WM_ACTIVATE. Still no good though. The dialog (my dialog) is one of the tabs of a parent dialog. Would it matter?
-
CDlg on active (MFC)I also tried the above suggestions already, still no good. Thanks for the replies though. :) I really appreciate them.
-
CDlg on active (MFC)OnShowWindow still doesnt work. :( Thanks for the reply though. :)
-
CDlg on active (MFC)Nope. Not on initial load. I was looking for an event handler every time the dialog is activated, or everytime the dialog goes active (may it be by clicking, or by some key strokes).
-
CDlg on active (MFC)Hi guys, I would like to ask, what is the event handler for dialog activation? I've tried OnActive but it doesn't seem to work. I just want a handler every time a dialog is activated. I'd really appreciate any help or input. Thanks! :rose: Christina
-
Catching the Escape Key (MFC Dialogs)Hi guys, I've been reading some forums about catching the escape key. I have this property page and when I press the escape key, instead of closing (which should have happened by default), does not close. There were some suggestions like overriding OnClose and OnCancel or using PreTranslateMessage which has this code: BOOL MFCDigPropPage::PreTranslateMessage(MSG* pMsg) { if(pMsg->message==WM_KEYDOWN) { if(pMsg->wParam==VK_RETURN || pMsg->wParam==VK_ESCAPE) MessageBox("Pressed the escape or enter key!"); } return CDialog::PreTranslateMessage(pMsg); } This code worked when I created a simple dialog box with just the OK and Cancel button on it. But when i tried it on my property page, it does not work anymore. Any suggestions/ideas regarding this one??? I would really really really appreciate any help on this. Thanks! :) :rose: waxie
-
Manipulating window.confirm()Hi guys, I have an issue with my confirm window. I currently am using firefox browsers in 2 PCs. The problem is, the OK button in the other pc generated by window.confirm() shows after the Cancel button (the order of buttons is Cancel - OK instead of OK-Cancel). But in the other pc, it is fine. What may be causing the issue? I was thinking it may be a browser issue but then when i used konqueror, it outputted alright. Is there a way to manually manipulate the buttons? I would appreciate any inputs and suggestions on how I can remedy this petty issue. Thanks! -waxie-
-
Help with MFC TimersRanjan Shrestha wrote:
BEGIN_MESSAGE_MAP(CMyTimer, CWnd) ON_WM_TIMER() END_MESSAGE_MAP()
My problem was with (above). How stupid of me. :mad: I finally got it. I overlooked my code. Thanks ranjan! :) :rose:Christina
-
Help with MFC TimersKurt _B wrote:
Why would you create a whole class just for a timer? Seems to be overkill.
LOL. :) Good point. Just for testing - because my timer in my application is not working. I finally figured it out! ;) :rose:Christina
-
Help with MFC TimersHi guys, I tried making my own timer application, where a number increments every second. I just wonder how SetTimer() and OnTimer() works? My timer class really does not work! X| It can initialize the timer but then it does not get into the OnTimer() function even when the time is due.:(( How does this really work? I would really appreciate it if someone can give me a simple but concrete example. Yes, there are some samples in the internet, but really, I could not understand the mechanics beneath them. Can someone provide me with simple steps on creating this simple timer class? If I could only make this work.. my timer class is super essential to make everything in my application work. To the person who could help me with this, kudos to you! :cool: Many thanks, :rose:Christina
-
How to do Timers in MFCHi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie
-
Get URL/Webpage address in Back Button (JavaScript)Hi guys, I would like to inquire how to get the webpage/url address in real time from the back button. As we can see, when we push (down) pull down button in the back button, we can view the previous webpage visited. Is there a way to retrieve the url address in the back button without clicking on a link or a button using javascript? your help would really be much appreciated.:-O :rose:Christina
-
Reading and Writing to a file at the same timeYes, the program finds the evaluated string. I'm sure with that. And yes, it can write coz i tried writing to a file without reading and it does write. WriteString doesn't have a return value - it returns void.
-
Reading and Writing to a file at the same timeHonestly, it really does not work. My new string does not appear anywhere in the file - or as expected, after the old string.
-
Reading and Writing to a file at the same timeYeah, OK, say the pointer is really not in the right position. But why doesn't my 'overwriting' string appear in any parts of the text file? Am I correct to assume that it should appear? Say, on the next line? Thanks so much for all your replies.
-
Reading and Writing to a file at the same timeI wonder... why doesn't this code work? CString csCurrLine; while(oFile.ReadString(csCurrLine)) { if(csCurrLine==_T("String")) { oFile.WriteString(_T("Overwrite String")); break; } } oItemListFile.Close(); TheBuggy
-
Reading and Writing to a file at the same timeReally? can you give me a snippet of the working code please? Thanks! TheBuggy