|
Dear Sir;
I have six ComboBox controls on my formView.
From a search button I show data on them. But when I clic on the last to select another item, data on the second control disappears. I don't know why.
What to do so that data from one of the remain ComboBox don't disappear when I click on one of them ?
A second problem is that on another formview when I click on my search button, data is not display on some Combobox controls, but when clic one Clear button and I click for second time on search button, they appear. I don't understand this behavior of ComboBox control
I learn my self
|
|
|
|
|
Can you show a snippet code?
|
|
|
|
|
I don't know what you call by snipped code; Is it this :
void posteagent::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(posteagent)
DDX_CBString(pDX, IDC_agtlog, m_agtlog);
DDV_MaxChars(pDX, m_agtlog, 1);
DDX_CBString(pDX, IDC_catego, m_catego);
DDV_MaxChars(pDX, m_catego, 3);
DDX_CBString(pDX, IDC_codebq, m_codebq);
DDV_MaxChars(pDX, m_codebq, 10);
DDX_CBString(pDX, IDC_commis, m_commis);
DDV_MaxChars(pDX, m_commis, 1);
DDX_Text(pDX, IDC_datcom, m_datcom);
DDV_MaxChars(pDX, m_datcom, 10);
DDX_Text(pDX, IDC_datsor, m_datsor);
DDV_MaxChars(pDX, m_datsor, 10);
DDX_CBString(pDX, IDC_equipe, m_equipe);
DDV_MaxChars(pDX, m_equipe, 10);
DDX_CBString(pDX, IDC_fonction, m_fonction);
DDV_MaxChars(pDX, m_fonction, 20);
DDX_Text(pDX, IDC_grades, m_grades);
DDV_MaxChars(pDX, m_grades, 2);
DDX_Text(pDX, IDC_INSS, m_inss);
DDV_MaxChars(pDX, m_inss, 15);
DDX_Text(pDX, IDC_lniveau, m_lniveau);
DDX_Text(pDX, IDC_lsieges, m_lsieges);
DDX_CBString(pDX, IDC_Niveau, m_niveau);
DDV_MaxChars(pDX, m_niveau, 15);
DDX_CBString(pDX, IDC_siege, m_siege);
DDV_MaxChars(pDX, m_siege, 2);
DDX_CBString(pDX, IDC_sortie, m_sortie);
DDV_MaxChars(pDX, m_sortie, 1);
DDX_Text(pDX, IDC_numbq, m_numbq);
DDV_MaxChars(pDX, m_numbq, 20);
DDX_CBString(pDX, IDC_dtpaie, m_dtpaie);
DDV_MaxChars(pDX, m_dtpaie, 1);
DDX_CBString(pDX, IDC_syndicat, m_syndicat);
DDV_MaxChars(pDX, m_syndicat, 10);
//}}AFX_DATA_MAP
}
When I clic on combobox dtpaie , data disappear on grades.
And write Updatedata(false) when I click on search button so that data are shown on some controls.
|
|
|
|
|
mikobi wrote: From a search button I show data on them. But when I clic on the last to select another item, data on the second control disappears. I don't know why.
Are you calling UpdateData somewhere.
|
|
|
|
|
i downloaded an article's files on this link: http://www.codeproject.com/bitmap/ImageProcessing.asp
when i run the executable version of project no error appears
but when i compile the source files this error appears .
-- fatal error C1083: Cannot open include file: 'gdiplus.h': No such file or directory
-- cannot open file '.\Debug\CimageProcess.sbr': No such file or directory
i have this problem in other programs that using GDI+
thanks for help
erfan
-- modified at 7:49 Sunday 17th September, 2006
|
|
|
|
|
Do you have this file in your system?
|
|
|
|
|
gdiplus.h?
where this file must be located?
|
|
|
|
|
You dont need to a new thread see here[ ^]
|
|
|
|
|
i am working on a station of a administrative network and i can't validate the windows!
|
|
|
|
|
Hi
Just started with c++ and wondering if anyone could offer a bit of guidance here. Probably such a simple concept if you understand it, but as I don't please go easy on me lol.
Say I had a menu with 3 choices
eg:
1. instructions
2. start game
3. top scores
The problem I need help with is - If I choose an option such as 3 for top scores and my code runs to completion for that menu choice, what is the best way or code to use to get my program to return to the main menu or to enter into another menu coice such as start game. It would almost be like a GOTO function but I am not too sure how to write this in C++. I just kind of need to jump from one section of code to another. ( Hope I have expressed this in a way that is clear enough to understand !!! if not let me know !! )
Any help with the matter would be greatly appreciated as I want to start with a clear idea in my head other than fumble around for days and end up with code that not clear to understand.
Thanks in advance
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
Im sorry but I dont understand you have a menu with three items then you select top scores and it run now what do you need?
|
|
|
|
|
Whitesky
What I need is that when the code has ran for completing the top scores. The user can choose to return to the main menu or start a new game.
So what do I need to do to make the program return to a given section of code such as the main menu or start new game again.
It just how to go from one section of code back to another section after the user chooses an option.
Almost like a GOTO function.
Hope this is a little clearer, let me know
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
Hope I understood your question
after finish you want rerutn to previous select that is open main menu,right
|
|
|
|
|
WhiteSky
Yes that is correct.
To Make it a little clearer:
Main Menu
1 Instructions
2 Start Game
3 Top Scores
The user selects 1
Instructions are displayed on screen along with the following 2 options:
1 Return to Menu
2 Start New Game.
So say user selects option 1 Return to the main menu. ( They then return to the following screen !!!! )
Main Menu
1 Instructions
2 Start Game
3 Top Scores
"What is the code is need to use to make the program return to the section of code that displays the main menu and presents user with the main menu screen again". I just need to know how to make the program return to the relevant part of the code that deals with the relevant menu option they select.
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
|
Thanks erfi
Will do some web serches on GoToDlgCtrl to see if I can source some info.
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
|
it looks that is not working. i tried that but it doesn't respond.
i working on it tonight maybe be solved;
good luck
|
|
|
|
|
Cheers erfi
Let me know if you get anything.
Still reading up on it myself.
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
Basically, you want a central loop which calls these functions as you select options, then each time the main loop will display the menu again when your other code is done. I'm assuming this is a console program ? Someone else gave you code which assumed otherwise, BTW.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi christrian
yes i am working with a console program, i have wrote my first console app after starting with c++ last week, it generally invovled loops, file I/O, conditional processing. all the basic stuff really.
now i am trying a small project( well not that small for me as i am running into some difficulties ) based on the hangman game principles.
i am trying to break the program into various sections ( to make it easier for me to code )that involve areas such as the main menu, instructions, top scores and the game itself but am just having difficulties in linking one section to another when needed on menu choices input from the user. those such as going from instructions page back to main menu and then to the game itself etc... as user enters choices.
just finding this concept difficult to understand and wanted a general idea how to get started with it.
not too sure what you mean by central loops.
any ideas on the matter ??? would be greatful for some clarification as web searches not proving too good.
thanks in advance for any info !!!!
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
OK, I'm thinking something like this:
int main()
{
bool stop= false;
while(!stop)
{
//show menu
int choice;
cin >> choice;
switch(choice)
{
case 1:
ShowInstructions();
break;
case 2:
StartGame();
break;
case 1:
ShowScores();
break;
case 1:
stop= true;;
break;
}
}
}
Then you write functions to call to do the rest, the StartGame function would obviously have it's own loops and functions that IT calls.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
ahhh ok
so you just name each of the blocks of code with a "example ()" and then use that whenever you wish to return to that block of code.
ok will give that a try and see what happens. i tried something similar earlier today but was naming each of the sections of the code with eg: " int instruct_game () " as i was following the same rule as " int main () ".
so if i just use " instruct_game () " should that work ok ?????
thanks for your help christian, much appreciated
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
Your methods do not need to return anything, they can return void ( which means, they don't return anything ). shouldn't matter, just don't return anything if you don't need to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I am recording a .wav file using the headphones.The file gets saved but i get a clicking sound which is consistent along the the recorded voice.The Clicking sound starts when the recorded file is open and remains until the file is fully read.
Can any1 tell me how to go about in removing this clicking sound from the .wav file which is created.
I am doing coding using C in the VC++ environment.
Thanks...
Riz
|
|
|
|
|