|
You should scan lines of bitmap image.
If image is very separated by rectangles its a bit easiyer to cut cells.
And if each rectangle size is fixed, its easy programing.
But each character donsent hava ordinary rectangle regions its hard to cut from.
You must recognize each region of character at first and cut region, normalize and reconize as character next.
... it is very hard to program for me ...
|
|
|
|
|
Are you writing a bot?
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]
|
|
|
|
|
ya ofcourse..
Could u help me out
|
|
|
|
|
hi guys,do you know how can we print the unicode character using the unicode number to a text file?
for example,i read the unicode number from a text file & put in on a char array,for example:
char uniNumber[4];
uniNumber[0] = charInput[0] // charInput[0] == 6
uniNumber[1] = charInput[1] // charInput[0] == a
uniNumber[2] = charInput[2] // charInput[0] == 0
uniNumber[3] = charInput[3] // charInput[0] == 7
how can we print the unicode number to this character(樇) in text file?
thank you guys.
|
|
|
|
|
If I understand correctly and your UNICODE character code is 0x70a6 , you may try this
unsigned short us = (uniNumber[3] << 12) | (uniNumber[2] << 8) | (uniNumber[1] << 4) | uniNumber[0];
fwrite((char*) &us, sizeof (us), 1 , fp);
This is correct as far uniNumber[1] = 0x0a; , on the other hand, if uniNumber[1] = 'a'; then you need a bit more manipulation (the same applies, of course, to every uniNumber array item).
Moreover you need to write the proper BOM [^] at the very beginning of the file.
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]
|
|
|
|
|
Can anyone please tell me some package for handling Digital certificates.....
I want to extract the public key or private key from the digital certificate and use it for encryption and digital signature...
The code is in C programming
|
|
|
|
|
Hi guys
in CEdit control has text "The New (cursor at) Text"
when click 'enter' i want to implement text in CEdit is
"The New
Text
"
i don't know how to capture the 'enter' and to override the event
thank you for reply
|
|
|
|
|
I believe all you need is to make your edit box multiline? How do you create the edit box? If it is on a dialog you load from resource, select the edit box in resource editor and make sure the property "multiline" is set to TRUE for it. If you create the edit box from code, then add the ES_MULTILINE flag to its style.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
thank you for reply
I add a edit box on a dialog
i do follow you say to change the property 'multiline' to true;
but when i click 'enter' button text in edit box doest't chagne line
'cursor' you know i want to split the text by cursor right of cursor text
to new line left is not change;
thanks
|
|
|
|
|
I'm not sure i completely understand your problem. What do you mean by "click enter button", you mean, you have a button labeled "Enter" on your dialog and you click that with the mouse and want a new line inserted into your edit box?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
first i very sorry for my poor english
click enter button is means click KeyBoard's enter button,so my program
must to capture the KeyBoard input what key
i do not know how to implement
thanks
|
|
|
|
|
I guess, you need to handle PreTranslateMessage[^]. Check for message WM_KEYDOWN[^] and parameter VK_RETURN . Once you got this, make sure your control has focus, so that you can make sure enter key is clicked from that control.
|
|
|
|
|
jeansea wrote: but when i click 'enter' button text in edit box doest't chagne line
Did you also remember to add the ES_WANTRETURN style? Otherwise, the ENTER key will cause the dialog to close.
"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
|
|
|
|
|
You don't have to do any coding for that.
Just set Multiline property to true and Want Return property to true.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
WebService::CWebService * web = new WebService::CWebService ;
........;
........;
if( web->ReverseIP( bstr_key , bstr_text ,&bstr,&len ) == S_OK )
{
for (int i=0;i < len;i++)
{
CComBSTR domain = *bstr++ ;
m_listbox.AddString( (LPCTSTR) domain );
}
}
delete web;
The code have memory leak,where,who can tell me ? thankyou
|
|
|
|
|
guqingkui wrote: The code have memory leak
If you know it has memory leak, why can't you figure out where it has leaks? Read about RAII[^].
|
|
|
|
|
but how to figure out ,please tell me .thank you .i am a beginner.
where memory leak ,please tell me
|
|
|
|
|
If any exception occurred, your delete web won't get called and you have a leak there. RAII (provide link in my last post) is a common idiom in C++ to handle such situations. Or use some thing like boost smart pointers[^].
|
|
|
|
|
I know, thank you . other place have questions ?
|
|
|
|
|
What's the type of bstr ? If it's a BSTR then using ++ on it is wrong.
Steve
|
|
|
|
|
thank you yes ,it is BSRT
but why
can you give me a example ? thankyou
|
|
|
|
|
Actually, I take my previous statement back: ++ is ok as long as you don't treat the returned value as a BSTR .
Steve
|
|
|
|
|
"your previous statement "sorry I hava not serched,can you tell me more Specific ,very thanks .
|
|
|
|
|
You probably need to do a SysFreeString of the BSTRs that are being allocated inside the ReverseIP function.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
We need to know the type of the bstr variable. I assume it's a raw BSTR because the ++ compiles without errors. If this is the case, what is the point of the ++ ?
Steve
|
|
|
|