|
uh... can you please rephrase that question, i dont get it...
"The beauty of Grace is that it makes life not fair" Relient K, Be my Escape
|
|
|
|
|
Doesn't look like it should compile either.
|
|
|
|
|
There were a few syntax errors in your program. Besides that, if you were looking to start with a simple multiplication program, I just wrote one for you:
#include <iostream>
void main()
{
int number, limit = 10;
cout<<"Multiplication Chart"<<endl<<endl;
cout<<"please enter a number to view multiplication chart ";
cin>>number;
cout<<endl;
for(int i=1; i<= limit; ++i)
{
cout<<number<<" x "<<i<< " = "<<number*i<<endl;
}
cout<<endl;
}
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
thanks i guess
"The beauty of Grace is that it makes life not fair" Relient K, Be my Escape
|
|
|
|
|
Hi,
I have a List Control in my project.
When the user clicks anywhere outside the listcontrol view (the control loses focus) the item that was selected loses it's selection.
How can I keep this item selected, even if the control loses focus?
I am already using the LVS_SHOWSELALWAYS style.
this is how I create the list control:
CListCtrl cList;
cList.CreateEx(
WS_EX_STATICEDGE | LVS_EX_TWOCLICKACTIVATE | LVS_EX_DOUBLEBUFFER ,
LVS_ICON | LVS_SHOWSELALWAYS | LVS_ALIGNTOP | LVS_OWNERDATA | WS_BORDER | WS_TABSTOP |WS_VISIBLE | LVS_SINGLESEL,
ClientRect, this, IDC_LIST)
Thanks
|
|
|
|
|
Have you tried playing around with those styles to see if the presence of one is possibly negating the effects of LVS_SHOWSELALWAYS ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
How's business in the Kwik-E-Mart?
|
|
|
|
|
And indeed was a difficult task beating it [^].
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
|
|
|
|
|
Message Deleting without alid reason is crime
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi for all
I've bought a simple bluetooth external device(like Asus WL-BTD201 Bluetooth dongle).
I want to create a single program to read it but I haven't any idea what I need to do. Is there a free library that I can use?
I've read something like bluetooth have a stack(???). Things like WIDCOMM stack.
Honestly I have any idea how can I do this. Someone can help.
Thanks for support.
|
|
|
|
|
Read this about Bluetooth at first: http://en.wikipedia.org/wiki/Bluetooth[^]
Bluetooth is a connection technology, so you have a connection to another device. And what THAT can that is interesting for your programming approach.
Have a lot of fun.
Greetings from Germany
|
|
|
|
|
|
Alex Cutovoi wrote: Is there a free library that I can use?
Bluetooth development kit[^] from Broadcom corporation is distributed free of cost.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
AFAIK your Bluetooth dongle should also be using the Widcomm stack. If it uses the Microsoft stack, then you have to use the Microsoft API. I don't know if there are other BT stacks though...
|
|
|
|
|
The OP said Widdcom stack, somewhere in his query. So, I took a guess.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Bluetooth development kit[^] from Broadcom corporation is distributed free of cost.
Thats quite a good library dude!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Is there a way to do a line-by-line (F10) debugging for a console application as done for dialog-based applications.
Thanks in Advance
|
|
|
|
|
Of course. Why didn't you try it instead of asking that here
|
|
|
|
|
SherTeks wrote: Is there a way to do a line-by-line (F10) debugging for a console application as done for dialog-based applications.
Yes!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Your question has answer itself.
|
|
|
|
|
Question with solution
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Thanks all for making me realize that I was not clear in my question.
I had tried debugging before posting the question.
I placed the breakpoint inside main(). The control also stopped there when I pressed F5.
But the problem for me was that I had no idea how I could pass the commaind-line parameters
and receive it in the argv[] while debugging.
For ex :
If I could run the console application like this :
>exename commandlineparam1 commandlineparam2
How could I start the debugging for this application.
I am supposed to pass the command line params commandlineparam1 and commandlineparam1 before
starting the debugging process and I am expecting argc = 3 and argv[1] = commandlineparam1, and
so on, while debugging.
Thanks in advance
|
|
|
|
|
Open project settings There should be option for command line parameters.
Which VS version are you using?
|
|
|
|
|
Thanks for the reply.
This worked.
In VC++ 6.0, the path / flow is :
Project -> Settings -> Debug (tab) -> Program Arguments (field)
|
|
|
|