|
|
Deepu Antony wrote: Can anybody help me in converting an ascii vaue to a binary or hexamdecimal value..
If you are wanting to convert from base-10 to base-2 or base-16, use strtol() .
"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
|
|
|
|
|
dear all
i am sorry to ask such question again, i tried many time and still couldn't finish it. can anyone help me here? thanks a lot.
my problem is below: just example, my real data are so huge
0 0 0 0 0
0 6 6 6 6
0 0 6 0 0
0 6 6 6 6
how to calculate each column amount 6 and then save it into .txt file as a array. thanks a lot.
gentleguy
|
|
|
|
|
Repost, as you yourself said.
More than one person gave you good help yesterday. And you still don't give enough information in your question. You don't say where the data comes from. Your question implies it is in text format, but your answers yesterday imply it is an in-memory array of data.
You also don't say where your actual problem is. If (as it seemed) you don't understand a simple for loop in C, then writing to a text file is the least of your problems.
Asking an identical incomplete question will (at best) get identical incomplete answers.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
i appologize to you for this case, my data is coming from the mostleft bottom corner, and then scan from this row one by one, after that go to lase-second row, also mostleft point.do you understand? sorry for that, friend.thanks a lot
gentleguy
|
|
|
|
|
gentleguy wrote: data is coming from
I'll ask for the last time, first by asking a different question.
me: Where does your car come from?
you: It comes from the front left tire, and goes all the way to the read bumper.
what you should have said: It comes from the car shop.
Now, where does your data come from. Are you reading it line by line from a text file? Are you typing it in manually? Is it in some binary format? Do martians who are visiting the planet zog implant it in your computer using psychic powers?
Now my psychic powers and interest are both fading,
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Iain Clarke wrote: you: It comes from the front left tire, and goes all the way to the read bumper.
I love having a read bumper in my car. They are awesome.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
It's not a typo, I'm too perfect for that.
From the Iain dictionary:
Read bumper:
A rear bumper with interesting bumper stickers.
Unread bumper:
A rear bumper with boring bumper stickers.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
i showed my data examlpe in first post of this time, i thought you have seen it already, so that is why i dun meationed any more, i am sorry for that and thanks for your reply.
gentleguy
|
|
|
|
|
Iain Clarke wrote: Now, where does your data come from. Are you reading it line by line from a text file? Are you typing it in manually? Is it in some binary format?
Does this help?
"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
|
|
|
|
|
gentleguy wrote: how to calculate each column amount 6...
The answer you need is here. Simply change 255 to 6.
gentleguy wrote: ...and then save it into .txt file as a array. thanks
Work on the counting first before trying to tackle this.
"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
|
|
|
|
|
When I try to call CopyFile API on Vista machine where destination is C drive (OS drive), I get "Access denied" error.
Can anyone suggest how to resolve that.
Thanks,
Mushq
|
|
|
|
|
The app must be run with elevated (administrator) privileges as you are trying to write something into the Windows directory.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Nice Articles.
Thanks.
Regards,
Mushq
|
|
|
|
|
i have a ListView with Report style, an imageList is attached to it. I want to avoid image for a single item in the row. I tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Thanks & Regards
|
|
|
|
|
nitin3 wrote: tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Instead, specify the LVIF_IMAGE flag and set the value of iImage as -1;
|
|
|
|
|
i allready tried by setting iImage as -1, it displays the same image at index 0.
Is this a known issue or a problem in my code ?
Thanks & Regards
|
|
|
|
|
nitin3 wrote: i allready tried by setting iImage as -1, it displays the same image at index 0.
I hope you have set the LVIF_IMAGE flag to also.
nitin3 wrote: Is this a known issue or a problem in my code ?
Possibly. Can you show the code?
|
|
|
|
|
Use default image (a white image)
If images than all.
Greetings from Germany
|
|
|
|
|
IMO, iIt would be probably shown as a blank space then, just before the text.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
If we didn't set the image but set an image list, then also it will show a blank space.
|
|
|
|
|
Hi,,,,
I have one GUI i.e,SDI application which is inherited from Form view
I want to add Key maaping to that GUI.
For that when i press 'a' i have to focus on One button
when i am press 'A' then i have to focus on another button.
//There is a problem in KEYDOWN MessageMap related to my application.
So,I use PreTranslate message to handle key events.but when i press 'a'it will treat that as 'A'.
so,please help me in this Regard.
|
|
|
|
|
I think if u handle WM_CHAR instead of WM_KEYDOWN, you can identify 'a' and 'A'.
|
|
|
|
|
Thanks for the Reply...
But i have some problem when using WM_CHAR and WM_KEYDOWN message maps.
So,Can i Handle it in "PreTranslateMessage"..
any suggestions.......
|
|
|
|