|
Well i m also havinn other control such as button,combo box,date time picker etc.,
Thts y i m going to formview rather than listview
Thanks
Gany
|
|
|
|
|
As I said before it's a long time since I have used MFC, but it may be that you should use a ListBox rather than a ListView to contain your entries. Other than that, I'm afraid I have no suggestions.
It's time for a new signature.
|
|
|
|
|
thanks for ur suggestions
|
|
|
|
|
Hi,
I want a progress bar in marquee style but it does not appear in marquee.
How to do that?
|
|
|
|
|
|
ok I did but I am getting problem:
I added manifest file to create marquee progress bar, now I want to add manifest file for UAC So I tried to combine both in single manifest file.
It working in Vista and Win7 but not in XP.
If I click on exe in XP, system gets restart.
|
|
|
|
|
|
Hi Folk,
I wanna create an application which should be run as a windows service. Application should receive HTTP request from the third party application. HTTP request hold xml data, i wanna parsing that and store it into local file. For above the constrains what type of application should i create using win32 or mfc?. Plz.. get me out from this confession...
thanks in advance
suzuuu
modified on Thursday, April 22, 2010 1:32 AM
|
|
|
|
|
Nor the Win32 or MFC, I better suggests you to use C#.net. It will be much easier to do that with C#.net. Also you can use MFC, if you want to do it.
|
|
|
|
|
Okay... should i use socket to receive http request?
|
|
|
|
|
Are you want to create your own http server?
|
|
|
|
|
I have no idea about server! But, my need is just receive HTTP request and parse xml then store it into local file. That's all
|
|
|
|
|
As I get you want to create server. Simple open a socket and start listening on a specified port.
for test
open internet explorer. type http://127.0.0.1:5000
5000 is port number on which server is listening request. It is changable but should be same on both server and client.
On server read socket.
|
|
|
|
|
TQ manish... Is there any specific socket for HTTP in windows? OR is there are any specific format to play with HTTP request through socket?
|
|
|
|
|
There is no specific socket for http.
|
|
|
|
|
Thank you very much for your reply...
|
|
|
|
|
|
|
Dear all,
I have a problem when using ParseDisplayName function to get ITEMIDLIST of USB Memory device. The scenario is: I insert USB into PC and catch an event by [OnDeviceChange] function, then I use ParseDisplayName function to get ITEMIDLIST of inserted USB memory, but it is failed.
This phenomenon only occur in Widows XP Service Pack 2, in Windows XP Service Pack 3, it doesn't happen.
Here is a code I use to get ITEMIDLIST by ParseDisplayName function(the input path is valid).
....
LPITEMIDLIST l_pIDL;
LPSHELLFOLDER pDesktopFolder;
if( ::SHGetDesktopFolder( &pDesktopFolder ) != NOERROR )
{
return NULL;
}
OLECHAR ochPath[MAX_PATH];
ULONG chEaten;
HRESULT hRes;
::MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, W2A(p_strPath), -1, ochPath, MAX_PATH );
hRes = pDesktopFolder->ParseDisplayName( NULL, NULL, ochPath, &chEaten, &l_pIDL, &p_uAttribute);
if( hRes != NOERROR )
{
l_pIDL = NULL;
}
.....
One more thing is: if I try to call this function again, and it will success.
But I don't know why I need to call it twice in Windows XP Service Pack 2.
If anybody knows this phenomenon, please help me make it clearly.
I'm looking forward to receiving your reply as soon as possible.
Thanks in advance.
nobitanha
|
|
|
|
|
kakalotasdf wrote: ::MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, W2A(p_strPath), -1, ochPath, MAX_PATH );
What's with this? W2A then back to wide again?!?
Steve
|
|
|
|
|
Hi Steve,
Because "p_strPath" is TCHAR type variable, so it need to convert to Multibyte character type by W2A macro.
Thx for your reply
|
|
|
|
|
Well use T2W and forget about calling MultiByteToWideChar .
Steve
|
|
|
|
|
Hi,In my vew class.Im drawing one rect and im displaying numbers in right side of corner.
Like
10.00
20.00
....
Like this.When the number is like more than five digits,then half then number get out of Rect.
Like
20.00|
20000|.00
500.0|0
Here '|' shows the rightside of rect.So i want to align the Numbers in Right Align,It should look like this
20.00|
20000.00|
500.00|
Now im using this code
pDC->TextOut(AlignX(x1+250),AlignY(y2+65),sPV);
here sPV contains that values.
How can i right align this?
Anu
|
|
|
|
|
i hope u trying to print the text from some fixed location.you dint tell the x1 and y2 values. you will get the correct solution if you adjust these values.
dffsfsdfdsfs
|
|
|
|
|
Use the text alignment options of CDC; see here[^].
It's time for a new signature.
|
|
|
|