|
Whitesky,
Please refer me any of the sites, tutorials, articles etc.,
With Regards,
Sangeetha.
|
|
|
|
|
I think its better you buy a book about it however you can read sites about it but read a book its better because you are new
|
|
|
|
|
fine whitesky. Book name..?
With Regards,
Sangeetha.
|
|
|
|
|
Well I have a book but its compilation and farsi not english you can ask on a global forum
|
|
|
|
|
Ah, good luck. I will not say that it is impossible, because that word is no longer in my vocabulary, but it is close enough that it does not matter. If you where actually dealing with glass the odds would be higher, because you would be dealing with 3 points of congruence (width, depth, height). But a bitmap is just a bunch of [2D] pixels and you can not necessarily associate them with any other set of pixels. If you where to tare a picture apart, then you may have a chance of putting it back together visually, What I mean by that is matching the contours of the pieces, which can also be done programmatically.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Hi,
How could it be accomplished..? Is there any articles / materials, so that i could go through it and do it..? I need to tare any of the bitmap picture and reassemble it visually.. This is the requirement.
With Regards,
Sangeetha.
|
|
|
|
|
I have seen this error periodically during writing to a DVD-RAM:
Windows Delayed Write Failed
|
|
|
|
|
Have you tried Google "Windows Delayed Write Failed"?
|
|
|
|
|
|
<code>
WCHAR szBuff[5000]={};
bool bSucced=ReadFile(hFile,&szBuff,5000,&dwRecvLen,NULL);
szBuff[dwRecvLen] = '\0';
CloseHandle(hFile);
Utility util;
string str1=util.ConvertWCHARToString(szBuff);
</code>
<code>
string Utility::ConvertWCHARToString(LPCWSTR source)
{
try
{
size_t len = wcslen(source) * sizeof(LPCWSTR);
char* tempOutFile = new char[len];
WideCharToMultiByte(CP_ACP,0,source,-1,tempOutFile,(int)len,NULL,NULL);
string s = tempOutFile;
if(tempOutFile)
{
delete[] tempOutFile;
}
return s;
}
catch(exception ex)
{
throw ex;
}
}
</code>
when i debug it.it gives me the ? questionmark after (return)conversion.
i have also tried directly WideCharToMultiByte but it also gives the same error ? mark .
i have replace LPCWSTR to WCHAR but didn't work.
basically this conversion is need to print the string value in listview control
Amit
|
|
|
|
|
Google for USES_CONVERSION, or just use bstr_t ( which basically just wraps this stuff ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
When a ? appears, it isn't an error. It means your ANSI code page doesn't have an equivalent for that Unicode character.
|
|
|
|
|
Hi,
I need some help in creating a control. I need to have a button, which is nothing but the file browse button. But on the button one more down arrow will be there to show/allow to select the recent five files. When the user clicks on the arrow, recent list will be displayed. If user clicks on the button then the file browse dialog will be popped up.
I know how to open the file browse dialog, but is ther any control which displays the arrow.
Thanks in advance
Pratap
|
|
|
|
|
If I understand you correctly, you need to create two buttons, one to open the fie browser dialog and another to display the last files. Perhaps you could use a context menu for the latter. If you change the style for the menu button ( remove the borders etc ) you can create the illusion of a single button. Using two buttons will also make your life easier when trapping the messages.
There is no button which contains an arrow that I know of, you will have to add a bitmap to the button. Either add a bitmap to your resources or create it at runtime. Or, depending on the font you are using, there may be an arrow character that you could use.
|
|
|
|
|
humm.. in continuation with waldermort.. you can add List Control on fly on click of button!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
You can always try to find a button class that would allow you to add images there, and then using pretranslatemessage to try yo read the position in which the mouse was when the OnLButtonUp was received, depending on that position you could react in different ways.
A good class for that could be CButtonST.
Hope this helps.
|
|
|
|
|
Its interesting I think your answer yesterday but I dont know its on edit section or button section on the codeproject
|
|
|
|
|
Hi,
is there a free powerful datagrid control for VC++?
its color could be changed, and also can add droplist in its field.
Thanks.
|
|
|
|
|
Try MFC Grid Control[^] by Chris Maunder.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: Try MFC Grid Control[^] by Chris Maunder.
No.. thats not that powerful. try TrueDB Grid or Grid provided by Dundas Software
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
liur17 wrote:
its color could be changed, and also can add droplist in its field.
try TrueDB Grid or Grid provided by Dundas Software
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
TrueDB is a good grid control, Thanks.
|
|
|
|
|
while compiling pwlib i got this error.
'.\msvc6chk' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\winnt\system32\cmd.exe.
I have downloaded that msvc6chk.exe and i kept it in the workspace of pwlib. what else should i do to solve this.
Please help.
Thankyou.
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: I have downloaded that msvc6chk.exe and i kept it in the workspace of pwlib. what else should i do to solve this.
Please help.
Thankyou.
try to change Project Properties.. i.e. postbuild steps
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Thanks Alok.
What changes should i make?
KIRAN PINJARLA
|
|
|
|