|
|
i have to implement http authentication using vc++ and i m new to vc++ please guide me how to make a sample application to implement this.
thanks
|
|
|
|
|
Hi
Ajay
Which version on VC++ ur using , so that i can guide u.
Regards
Atul
|
|
|
|
|
thanks atul for helping
my version is VC++ 6.0
and i want to know about how i can implement http auth and proxy authentication
thanks
|
|
|
|
|
Hi!
I'm doing something similar to this, but I'm using Visual C++ 2008..
I tried using libCurl but still can't make it work. Hoping someone can help me. Thanks in advance!
|
|
|
|
|
This WM_DEVICECHANGE handler is not being fired when i insert a normal CD(i.e Non Autorun type). can you help how to detect insertion or removal of such CD
Thanks in advance
R e h a n
|
|
|
|
|
VC_RYK wrote: This WM_DEVICECHANGE handler is not being fired when i insert a normal CD(i.e Non Autorun type).
this is because windows deactivated it. you must set windows to enable it, because you cannot force a CD/DVD to auto start if no autorun runs on te system
|
|
|
|
|
Thanks Dear But how will i enable it in windows?
|
|
|
|
|
What is the value of HKLM\System\CurrentControlSet\Services\CDRom and HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
HKLM\System\CurrentControlSet\Services\CDRom =0
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun = i dont have this Option in System, i have till(HKCU\Software\Microsoft\Windows\CurrentVersion\internet setting
Please do help me out
|
|
|
|
|
VC_RYK wrote: HKLM\System\CurrentControlSet\Services\CDRom =0
This should be set to 1 if you want autorun to work.
VC_RYK wrote: HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun = i dont have this Option in System
Do you have HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun instead? In either case, see here for how to use it.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I want Autorun as i insert my CD/DVD, if i am writing Autorun.inf so what i should write and where should i put it.
Thanks in advance
R e h a n
-- modified at 1:07 Tuesday 20th March, 2007
|
|
|
|
|
VC_RYK wrote: where should i put it
at the root of the CD/DVD
|
|
|
|
|
VC_RYK wrote: if i am writing Autorun.inf so what i should write
[autorun]
open=MyProgram.exe
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi,
I got a problem in setting the default icon for a custom file type
in window shell. For the DefaultIcon for a file extension, I set it to be
"C:\abc.ico" for the default value in the registry. But the icon settings only works for the files in the window desktop. For those files in other folders other than the desktop, the setting doesn't work. Why ?
Thanks
|
|
|
|
|
Please refer this[^]
Regards,
Paresh.
|
|
|
|
|
What is the easyest way to view a .ppm file in a mfc dialog?
|
|
|
|
|
Hi,
I am having a problem getting the OnReceive notification to trigger in my client code. I debugged with TRACE statements and I find that the Receive is failing with the WSAEWOULDBLOCK error and then OnReceive is never being called. I should have data being delivered to the client but I can't say 100% that this is true. I didn't write the server code but it has been used before and is know to work.
m_pDASsocket = new CSPDSSSocket;
m_pDASsocket->Create(0,SOCK_STREAM, FD_READ | FD_CONNECT | FD_WRITE);
m_pDASsocket->m_pMain = (CMyGUIDlg*)this;
void CMyGUIDlg::OnBnClickedmfp()
{
PBYTE pBuf;
pBuf = new BYTE[8];
char startrecvchar = 100;
if(m_bSocketConnected)
{
m_pDASsocket->Send(&startrecvchar,1);
if ( m_pDASsocket->Receive(pBuf,8) == SOCKET_ERROR )
{
int iErr = WSAGetLastError();
if ( iErr == WSAEWOULDBLOCK )
{
TRACE("OnBnClickedmfp: WSAEWOULDBLOCK");
}
else
{
TRACE("OnBnClickedmfp: a ""bad"" error occurred and must be handled");
}
}
else
{
TRACE("OnBnClickedmfp: Receive succeeded");
}
}
delete [] pBuf;
}
I know that OnConnect and OnSend are getting called. I also know the server is receiving my Send. As far as I know the server is working correctly. I don't have any control over the server code but I know it's listening for connections and once connected I can send certain commands to start and stop data packet delivery. Any help would be greatly appreciated! Thanks,
Clint
csmithmaui
"Turn My Headphones Up!"
|
|
|
|
|
Unlike OnConnect, OnReceive won't be called necessarily after a Receive() call fails with
WSAEWOULDBLOCK.
When Receive() fails with WSAEWOULDBLOCK error, that means no data has been sent to the socket.
If your OnReceive() override doesn't get called, that also means no data has been sent to the
socket.
OnReceive() is called to notify you that data has been received (it is buffered in the socket).
When you receive this notification, THEN you call Receive() to get the data from the socket.
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
I placed tab control with two dialog.i navigate tabs in control using tab key.after i moved to second tab i want set focus on dialog.how to do that.
How to transfer focus from tab to dialog.the dialog have edit boxes.i want to set focus on first edit box.
|
|
|
|
|
If you don't interfere with the processing of the TAB key messages then Windows will set the focus to the first control in the TAB order, and you set the tab order in the resource editor.
Note: If I recall correctly, you asked something like this the other day and you indicated that you were intercepting the TAB key messages.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Hi!
I faced the flickering problem when I resize my application how can I removed ?
second thing my conrols aren't resize e.g. listview control. but all the other windows resize.
how can i resize the control. I am using win32 in .NET environment.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: I faced the flickering problem when I resize my application how can I removed ?
Override WM_ERASEBKGND and simply return TRUE from it.
amitmistry_petlad wrote: second thing my conrols aren't resize e.g. listview control
You have to write code your self for that. This[^] article by Paolo Messina should give you some idea.
amitmistry_petlad wrote: but all the other windows resize.
What do you mean by this ?
|
|
|
|
|
prasad_som wrote: You have to write code your self for that. This[^] article by Paolo Messina should give you some idea.
By the help of this example I can reach here bu the problem is below.
I explaine you,
for create the frame window and put some dialogs inside in the following way.
hInst = hInstance;
<big>hWndStatic</big>=CreateWindow(szWindowClass, szTitle, WS_SYSMENU | WS_MINIMIZEBOX | WS_THICKFRAME , CW_USEDEFAULT,CW_USEDEFAULT,1090,710,NULL,NULL,hInstance,NULL);
<big>hWndNavigator</big> = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_NAVIGATORORI),hWndStatic,(DLGPROC)NavigatorProc);
<big>hWndHeader</big> = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_HEADER),hWndStatic,(DLGPROC)HeaderProc);
hWndFooter = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_FOOTER),hWndStatic,(DLGPROC)FooterProc);
<big>hWndListview</big> = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_LISTVIEW),hWndStatic,(DLGPROC)GlobaListProc);
if (!hWndStatic)
{
return FALSE;
}
ShowWindow(hWndStatic, SW_SHOW);
ShowWindow(hWndNavigator,SW_SHOW);
ShowWindow(hWndHeader,SW_SHOW);
ShowWindow(hWndFooter,SW_SHOW);
ShowWindow(hWndListview,SW_SHOW);
UpdateWindow(hWndStatic);
Window_Center(hWndStatic);
BEGIN_SIZINGRULES(m_grip, hWndStatic)
ADDRULE(m_grip<big>,hWndListview</big>, RX)
ADDRULE(m_grip, <big>hWndHeader</big> , RX)
ADDRULE(m_grip,<big>hWndNavigator</big>, RY)
END_SIZINGRULES
return TRUE;
upon your given link I have already used that one and made the above
BEGIN_SIZINGRULES from that code, but Look at that very carefully , I have made it for windows not for control inside that window, I am inprocess of that but how can I find the clue that windows and controlId.
in the same code. if you might checked Mr.Paolo Messina example.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: but Look at that very carefully , I have made it for windows not for control inside that window, I am inprocess of that but how can I find the clue that windows and controlId.
in the same code. if you might checked Mr.Paolo Messina example.
No, I'vent checked that example. But, sure that it will have same problem solution.
|
|
|
|