|
And you have an article that I like it.;)
|
|
|
|
|
ashishbhatt wrote: ...I want to get the specific folder size.So How can I do that??
You want the size of the folder itself, or the size of all files in the folder?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: You want the size of the folder itself, or the size of all files in the folder?
He probably doesn't know. He should consider changing his vocation to something a bit less mentally challenging, like working at a convenience store, or driving a taxi.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: like working at a convenience store, or driving a taxi.
what about cleaning road!:->
"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 all,
Can you guys tell me how to connect a Access database to a MFC application. What are the steps I have to involve with.
Thanks.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote: Can you guys tell me how to connect a Access database to a MFC application. What are the steps I have to involve with.
Connecting MS Access to MFC app[^]
"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
|
|
|
|
|
Thanks, I'll be back if I got any issue.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote: I'll be back if I got any issue
you are always welcome!
"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
|
|
|
|
|
|
|
chandu004 wrote: i think, already you got some replies.
offcourse he have got many reply.. don't he!!! [ ]
"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
|
|
|
|
|
May be I'm the luckiest person on this forum
Actually straighter way I have a question. Lots of database are available for our work,
MS Access
MySql
So, which one is th most powerful and easy to use in MFC applications.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote:
So, which one is th most powerful and easy to use in MFC applications.
Each has their own strengths and weaknesses.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
That mean it is depend on the application going to develop, isn't it?
I appreciate your help all the time...
Eranga
|
|
|
|
|
I tried this once here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks. But I think it is better to go with SQL. Do you use such any...
I appreciate your help all the time...
Eranga
|
|
|
|
|
Hello everyone...
Good day to you....
Is there any way to dynamically mask a group of bits to retrieve certain values from them?
0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 0111 0010 0001
MSB LSB
There are a total of 52 bits .
Now there is a variable say "x" depending on which I should divide this bits to calculate two values.
I am using shift operators and masking to get this job done.
Suppose x is 20
0000 0000 0111 0010 0001 would give me the first value and
0000 0000 0000 0000 0000 0000 0000 0001 would give me the second value.
I am able to do it only for a predefined value for x i.e only for 20.
I have to mask these 52 bits in such a way that I am able to get the answer for the varying vlaues of x.
Is there a way to do this anyway.
Please help me if anyone knows to do this.
Thanks
cyjoy
|
|
|
|
|
u mean, you want to return first x bits in value 1 and remaining 52-x bits in value 2 right?
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
Yes you are correct..
If you could let me know how to do it.
thank you
cyjoy
|
|
|
|
|
give me few minutes iam working on it.
and is your variable a 64 bit integer?
---------------------------------------
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
and here is what you require.
UINT64 value,value1,value2,maskval;
maskval=0xfffffffffffffff;//assigning the 8 byte integer to all 1s.
maskval=maskval<<x;<i>//x is the number of bits you want to mask.
maskval=~maskval;//toggling the bits from 0 to 1 and vice versa.
value1=value&maskval;
value2=value>>x;
----------------------------------------
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
Thank you very much for your help.
I ll be obliged if you could illustrate me with the example which I have mentioned on my question.
0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 0111 0010 0001
MSB LSB
There are a total of 52 bits .
Now there is a variable say "x" depending on which I should divide this bits to calculate two values.
|
|
|
|
|
Try coding it and giving a few values to X while debugging or printing them in the screen to know if adapt to your needs
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
I ll do it....
Thanks ..
|
|
|
|
|
why not, definitely.
value=0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 0111 0010 0001
first, you will define a maskval with all 1s.
1111 1111 1111 1111 ........upto 64 bits.
then, shift the bits left, x many number of times.
for example, if x is 6, the lsb portion of ur maskval looks like this
1111 1111 1100 0000
if you not this value,
1 s become 0s and 0 s become 1s. something like this
0000 .......0000 0000 0011 1111.
now if you and this maskval with ur original val, then
first 6 bits will get filtered into value1.
to get value 2 right shift ur actual value by x bits.
thats it.
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|