|
Can anyone give me a sample extended combobox application in vc++??
thanks,
Rakesh
|
|
|
|
|
Many people can:
http://www.codeproject.com/KB/combobox/[^]
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hi Iain, thanks for your reply..
it seems the articles are all on c#... i want in vc++..
is any article available there??
thanks,
rakesh
|
|
|
|
|
Rakesh5 wrote: it seems the articles are all on c#
No, no they're not!
I've just looked, and above the article is an orange line. Click on "MFC", and you'll get the articles I can see!
Mystery solved!
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hey Iain,
can you please tell me the author of the post you are mentioning?
thanks,
|
|
|
|
|
|
I need to get the user to input a number of the number array they want to look in.
hence
cin>>number
but how can i do a loop that it will check that arrays number is there any tutorials on this? or any help?
|
|
|
|
|
Your question is a bit unclear. Are you asking for something like:
int nNumbers[] = {5, 8, 7, 1, 5, 0, 2, 8};
cin >> nIndex;
cout << nNumbers[nIndex];
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
no. im basically making a simple battleships game where by the array has 20 fields ad randomly within in them 6 number 1 intergers. I want the user to input say cin>>array[i] user puts in 16 and it searches for array field 16 if it is a 1 then i want it to display hit otherwise if it is zero then miss. but i think i could us an if...else...statment?
|
|
|
|
|
Yes, you'll need an IF. You want to do different things depending on a condition. That's what if does.
This is very basic stuff - can I point you to a good book? I learnt a lot from:
http://www.amazon.co.uk/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_12?ie=UTF8&s=books&qid=1237899112&sr=8-12[^]
It's pure C, and won't cover cin / cout, but you need to get the fundamentals of if / while / for under your belt before you can do anything with C/C++/any programming language. It's also quite a small book, but loads of information on every page.
Good luck with your journey,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hi,
I have a Dialog...like...which is having four group boxes(which contains some controls inside them) as below
G1
G2
G3
G4
At one condition i need to Display only G1 and G2(ie hide G3 ,G4) and in other condition i need to show G3 and G4 (hide G1,G2) and get replaced in G1,G2 positions and should look like
G3
G4
Please help me regarding the same...
|
|
|
|
|
SetWindowsPos [^] (or MoveWindow [^]), ShowWindow [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
At least the order is different..
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
You know, I'm a 'disordered' man...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Search for:
ShowWindow()
SetWindowPos() or MoveWindow()
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
In my project, I got the following error:
fatal error C1083: Cannot open include file: 'xercesc/util/XercesDefs.hpp': No such file or directory
But this was there in the following path:
D:\Development\GlestOld\xerces-c_2_8_0-x86-windows-vc_8_0\include\xercesc\util
I've added this path to the Additional Include Directories in the project Settings.
I've also added the following library path to Additional Library Directories in the project settings.
D:\Development\GlestOld\xerces-c_2_8_0-x86-windows-vc_8_0\lib
But the errors persists. What to do?
Regards,
Rathakrishnan.
|
|
|
|
|
If you added this exact path: "D:\Development\GlestOld\xerces-c_2_8_0-x86-windows-vc_8_0\include\xercesc\util" to the include directory, then you need to include "XercesDefs.hpp" and not "xercesc/util/XercesDefs.hpp".
|
|
|
|
|
|
Hi people,
I dont know if anyone can help really, I have got to set up an array of size 20 easy but what i need to do and not sure how to is to randomly assign 6 positions in the array with a 1. Any ideas?
|
|
|
|
|
if u want to fill six positions out of 20 you can use
Array[rand()%20] = somevalue..
are you looking for this functionality?
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
thank you very much do u do thi whilst you are declaring it? or in the main part of code?
|
|
|
|
|
You need to generate
int arr[20]={0};
for(int i=0;i<6;i++)
{
int i = 0 + rand() % (19 - 0);
arr[i]=1;
printf("\n%d",i);
}
for(int i=0;i<19;i++)
{
printf("\n%d",arr[i]);
}
You might also add a condition to check for repetitions in the random generated nos.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
printf("\n%d", what exactly does that do?
|
|
|
|
|
C tutorial needed. Anyway see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Too many trivias today
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|