|
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
|
|
|
|
|
hi friends
i need to post binary data to server using WinHTTP Technology.
i have code for this posting data using WinInet Technology.
can anyone give to me idea
|
|
|
|
|
|
This is somewhat of a difficult problem to explain, so please bare with me.
I have a class which is resposible for the allocation of an array of 4 structs. This class is a base class through which I can retrieve a pointer to the array and modify the struct members. Due to the nature of the program, I need access to all the structs ( for each instance of the class ). So, In the base class I created a static vector of structs, each time an instance of the class is created it add 4 new members to this static vector.
This is where my problem lies. Each instance needs to know exactly where in the vector it's 4 structs are located. This could be easily solved by recording the index they were inserted. But lets say I create 3 instances ( 12 structs in the vector ), then I delete the first instance. I would need to erase those 4 members from the vector which would cause the next instance to index the wrong value, and the third to be past the end.
I need some way to keep track of those 4 structs without needing to worry about instances being added or deleted. Any ideas?
|
|
|
|
|
Create a hashtable of vectors and make a pointer to your base class the key. Then, you can use 'this' to access each vector, to delete it in your destructor, or to access it otherwise.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for the idea. I guess 'this' does have it's uses after all.
|
|
|
|