|
I'd program my pluggable protocol to provide data by read local compressed HTML file and pics in HTML.
In my Interface inherit form IInternetProtocol
I found implemented function : IInternetProtocolRoot::Start
the parameter /* [in] */ LPCWSTR szUrl is not incorrect while ask for html pics.
eg: To open url myprot://index.htm/ (there is a pic in this html file named : hello.jpg in the subfolder images/hello.jpg)
First Start functoin's szUrl is myprot://index.htm it's no problem.
Then I call IInternetProtocolSink::ReportData (BSCF_DATAFULLYAVAILABLE, 100, 100) to tell the sink data is ready return S_OK.
When finished read the html data Start function is been call angain, this time the szUrl parameter is myprot://index.htm/images/hello.jpg. I think the pic's url is not incorrect as the other protocol(eg:file ftp http), in http protocol the url normal is prot://images/hello.jpg
Can you help me?
Thanks.
Phourm
|
|
|
|
|
Hi,
I am porting a Application which communicates with a Wireless Protocol
Stack from unix m/c to WPS on Enfora board. Previously packets are sent through TCP which I
have to change it to use PPP mode instead of TCP. Application is running on windows XP m/c.
Is there any way to do this through some mechanism either editing regedit or some how.
Thanks in advance,
Regards,
pramodav@sasken.com
Pramod Kumar A
SASKEN-INDIA
|
|
|
|
|
PPP is a TCP tunneling protocol for peer-to-peer connections like dial-up ones. In Windows, these connections can be programmatically managed with the Ras library (see for instance RasDial and pull the thread from there). Once a PPP session is established, you can use TCP as you did before, so basically you only have to add code for establishing the dial-up connection and leave the rest unchanged (hopefully).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hello all
could any of you help me how
to develope a voice chat appn with vc++
1. how to enable voice chat appln between registered users of a web site?
2 . what are the libraries needed and where r they avialable ?
3. how to link the appn developed using vc++ into the web site?
so that it is served to all the persons logged in?
regards
dharani babu
|
|
|
|
|
Help!!!Who can tell me
how to command the controller of Floppy Disk Device to do verify?
|
|
|
|
|
Is there any existing classes/functions that do md5 encryption, for example "LRESULT MD5(LPCTSTR lpOriginalString, LPTSTR lpEncryptedString)" or something like that that we can directly call in our code? Thanks a lot.
|
|
|
|
|
|
If it doesn't necessarily have to be MD5, you could try my SHA-1 implementation as C++ class:
http://www.codeproject.com/cpp/csha1.asp[^]
SHA-1 produces a 160-bit hash and therefor is generally regarded to be more secure than MD5.
You can also have a look at the implementations I used in my hash calculator:
http://www.codeproject.com/cpp/ReHash.asp[^]
This also includes a MD5 implementation.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Thanks to both of you for the replies, I appreciate that. The reason why I want an md5 api is because I'm cuurently working on a sql server2000 database project which must store user password in md5 encrypted format. I've been using mySQL for a while which has a built-in md5 function so we don't need to do a thing, but in sql server2000 I failed to find any similar features, so I have to do the encryption by myself I guess... To Dominik Reichl, thank you for the article links but it does have to be md5.
|
|
|
|
|
Then go and download my ReHash hash calculator source code. Go to the "algo" directory and grab the files MD5.cpp and MD5.h.
Include these 2 files to your project. These 2 files implement the MD5 standard as described in RFC 1321 by Rivest.
To hash a string, do the following:
char yourstring[] = "this can be a string of any length";
MD5_CTX ctx;
MD5Init(&ctx, 0);
MD5Update(&ctx, (unsigned char *)yourstring, strlen(yourstring));
MD5Final(&ctx); Now ctx.digest[16] contains the 16 hash bytes (MD5 is a 128-bit hash, therefor 16 bytes [16*8=128]).
You could output these 16 bytes like this:
for(int i = 0; i < 16; i++) printf("%02X ", ctx.digest[i]); Hope that helps
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
|
Could help me but to say, as to codify to capture I cosay of bar with of recording machine.
Visual C++ MFC
|
|
|
|
|
Hi. I'm trying to get the pixel length of a string inside a CStatic, so I can chop it off in the middle and put "..." in the middle. The string happens to be a filename. So if C:/WINNT/ABC/XXX/YYY/ZZZ/DEF/COMMAND.COM is too long to fit inside CStatic width, it will be something like C:/WINNT/AB...EF/COMMAND.COM that will fit. I'm using true type font for the CStatic, so I have to calculate this on the fly. The problem is I have to get the DC to do GetTextExtent, and I dont want to override OnPaint method. I was hoping to get this before the OnPaint is called (actually I dont mind looping on SetWindowText until the length fits) Any ideas?
Thanks
|
|
|
|
|
|
Or, if you really want to calculate it yourself, simply get the dc when you need to compute the size manually like this:
...
CWnd *pStatic = GetDlgItem(IDC_MY_STATIC_FILENAME);
CDC *pDC = pStatic->GetDC();
pDC->GetTextExtent() or pDC->DrawText(cText,&oRect,DT_CALCRECT....
your calculations...
pStatic->ReleaseDC(pDC);
|
|
|
|
|
How can I calculate the data rate of a video stream in an avi file (contains two streams, one video, one audio) without knowing the audio details in the same way that windows xp does when you right click on the file and look at the properties tab?
|
|
|
|
|
|
geee. some boolean read only flag, checked in mouse button down handler ignoring the click when set? It's not a pretty elegant, but it works
|
|
|
|
|
well, I'd something like
<br />
class CView<br />
{<br />
...
CView()<br />
{<br />
...
m_bviewLocked = false;<br />
}<br />
<br />
bool m_bviewLocked;<br />
}<br />
<br />
void CView::OnToolLock()<br />
{<br />
m_bviewLocked = !m_bviewLocked;
}<br />
<br />
WM_LBUTTONDOWN handler = where you handles the mouse click<br />
{<br />
if( m_bviewLocked ) return 0;
}<br />
or some variantion to this
|
|
|
|
|
hi..
My code is like that,
CRect Panerc;<br />
<br />
m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_ZEK),&Panerc);<br />
<br />
m_edit.Create(ES_LEFT,Panerc,this,5132);
but not work.
HELPPP!!!
|
|
|
|
|
You need to be more specific than "it doesn't work".
From just looking at it, the window styles aren't enough (you need at least WS_VISIBLE|WS_CHILD ), and the parent window is wrong (it should be m_wndStatusBar since that's where the edit box should go).
--Mike--
Latest blog entry: *drool* (Alyson) [May 10]
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Hello
I want that one button be deactivate(non active) until an other button was clicked on.
How I can do that?
|
|
|
|
|
One solution is messages. Send a message to the control to make it the default control.
Kuphryn
|
|
|
|
|
|
can i use EnableWindow for that?
|
|
|
|