|
i have IDD_mainmenu as default created by VS2010 . When I click a File in mainmenu with handle click and call another Dialog . It is alright . But when I create a button and create class for that dialog to handle click button event . When I click , no thing happen ! . I have try and Ask many but rare people know
http://www.mediafire.com/?2gwt06lg3sd794m
When run , click on HERE and then Button1 . After click no thing happen even when program handler event to show the message .
I test and find no error but it does not do .
Thank you .
hi world
|
|
|
|
|
Step 1. Cut lines 154 - 177 (inc) from 2.cpp
Step 2. Paste to bottom of 2.h
Step 3. Copy lines 175 and 176 from 2.cpp
Step 4. Replace lines 134 and 135 in 2View.cpp with the text copied in step 3
In a nutshell:
When the Help->About menu option was selected, a variable of type CAboutDlg was instanced and then had the DoModal member function called.
However, when the Here->1.1 menu option was selected, you were loading a CDialog with the appearance of the About dialog - that is to say, the resource was not hooked up to a class object of the correct type, so it could not fire the handler for the Button1 button.
Step 1&2: Move class definition for CAboutDlg to 2.h
Step 3&4: Instance correct object (CAboutDlg, not CDialog)
|
|
|
|
|
Hi
I have done like you had showed .
http://www.mediafire.com/?tra9l1xoh04qwah[^]
And still nothing done ! .
Thank you
Can you show me basically the way to make it work ? . Thank you a lot . Have nice day .
hi world
|
|
|
|
|
Not quite there yet...
You didn't replace the code for CMyView::OnHere1
Copy the code from CMy2App::OnAppAbout and replace the code for CMyView::OnHere1 with it.
|
|
|
|
|
|
why the code of game is not show
|
|
|
|
|
rucha warade wrote: why the code of game is not show
What does this mean; please explain your problem clearly?
[edit]As this is your first question on this site, I suggest you read HOW-TO-ASK-A-QUESTION[^].
[/edit]
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
You've lost the game[^].
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Mystical Superpowers, I believe.
It is the same magic we should use to guess your scenario, I suppose.
Veni, vidi, vici.
|
|
|
|
|
Hi all,
Cant we hide a CLabelControl after declaring a variable..???
I am getting a run time error for this.
Test.h
CLabelControl m_Test;
Test.cpp
DDX_Control(pDX, IDC_LABEL_TEST, m_Test);
BOOL CExampleDlg::OnInitDialog()
{
CLabelControl* lTest;
lTest=(CLabelControl*)GetDlgItem(IDC_LABEL_TEST);
lTest->ShowWindow(SW_HIDE);
return true;
}
If i comment
//CLabelControl m_Test; in Test.h
//DDX_Control(pDX, IDC_LABEL_TEST, m_Test); in Test.pp
Then it runs without any error.
Can anyone have any idea
Thanks in Advance
Sharan
|
|
|
|
|
Your label control does not exist at the point you are trying to hide it.
You need to call CDialog::OnInitDialog in your OnInitDialog method before the control exists.
BOOL CExampleDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CLabelControl* lTest;
lTest=(CLabelControl*)GetDlgItem(IDC_LABEL_TEST);
lTest->ShowWindow(SW_HIDE);
return true;
}
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Dear all,
can any one provide me the "C source code for A* algorithm"
|
|
|
|
|
|
Dear Friend,
From my PC, I have to read the text file from another PC(server PC).
After that i have to invoke one "EXE" (application) present in that same PC(Server PC).
Then i have to send the information what i have read from that file to this application.
Kindly help me.
|
|
|
|
|
Are both PCs on the same network and able to share disks? If so you can just read the file and execute the program from the server's shared disk.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
hi all,
can anybody help me to extract plain text from html file?
thanks.
|
|
|
|
|
A very simple parser would:
- Get the used character set from the header
- Locate the next < char, locate the next > char behind, and delete all in between.
- Replace the HTML entities &, <, >, and " by the corresponding chars &, < >, and ".
- Optional replace other entities by the corresponding characters according to the used character set.
- Optional replace Unicode code points (&#[x]cp;) by the corresponding characters according to the used character set.
- Optional convert the resulting text to the required output character set
|
|
|
|
|
I need to convert my programs from c++ 6 to Visual stutio professional 2010.
Please advise how to proceed and what I need to fix typically ? What is the best way to do this ?
Thanks
Ruilin
|
|
|
|
|
This link will help you[^]
Every new day is another chance to change your life.
|
|
|
|
|
thanks a lot. Do I have to install visual studio 2008 for converting my visual c++ 6 (2003) ?
Please give me some guidances.
hanks again
|
|
|
|
|
I dont have much idea on that. Like you i am also new to this. The only difference is i searched the net first and i send you the link which really suited your query. There are other sites which gives you a very good insight on how the migration has to be done.
See this link [^]
Every new day is another chance to change your life.
|
|
|
|
|
mrby123 wrote: Please advise how to proceed
Create a project in VS2010, add the source code from C++ 6 and build the project. Fix all warnings and errors.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
You just need to jump right in and convert it. There's no magical way to do it and the number of warnings and errors you get depend on what your source code has in it and how well you coded according to standard (old compiler used to let you get away with using non-standard C++, new one is better about that but still, MS refuses to follow standards strictly, they implement things they want regardless of current standards).
...oh, and don't forget to save a copy of your unchanged code for reference or if you need to fall back to your original code. If you have source control, create a tag to save the location.
modified 19-Mar-12 13:39pm.
|
|
|
|
|
Like others have stated. Just open the project or solution in vs2010 and let it convert and backup. Then start walking down the list of errors one at a time. If it's just vc++ and no extensions it should be easy.
|
|
|
|