|
I'm not sure what an activex is, but the plugin I'm writing is registering as COM component. What should my plugin do to be an activex and how after that I can access the NavigateComplete2Explorer1 event?
Can you forward me to some documentation or stuff?
Thank you.
|
|
|
|
|
Ah, i see. I thought you are using an MFC application to host your web browser "Which is off course much easier".
Are you trying to build a web browser ???
if you want your web pages to be rendered through a microsoft webbrowser activeX control, all you need to do is to go to your dialog box (or whatever u r using as a container) and insert an ActiveXControl (microsoft web browser).
However, if you not trying to render web pages then i have no clue how to do it.
llp00na
|
|
|
|
|
llp00na wrote: Are you trying to build a web browser ???
actually i believe he is trying his hand in BHO..
"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
|
|
|
|
|
you are right I'm trying to do a BHO that would catch all HTTP headers.
|
|
|
|
|
You know what, your way should work as well.
From your code:
case DISPID_NAVIGATECOMPLETE2 :
BSTR url;
IWebBrowser2* m_spWebBrowser2;
m_spWebBrowser2->get_LocationURL(&url);
Now, how are you printing (or testing) the url ???
llp00na
|
|
|
|
|
I'm printing a MessageBox(NULL, reqUrl.c_str(), "URL", MB_OK); for now, but i don't know how to access http headers from here.
|
|
|
|
|
That should do the job for you. so do you get no results ???
And by the way, do u get the urls from a file or from the user as an input ???
llp00na
|
|
|
|
|
I get the URLs from IE Address Bar so it is actually what user printed. But I really don't know how to get to the HTTP headers received by the browser, the only thing that comes right now to my mind is to do the same request that browser does through my own method that will give me back the response headers, but I know this is not really the best idea, and there should be a way to receive these http headers from the browser itself through some interface, I just don't know what is that interface.
Thanks for helping.
|
|
|
|
|
|
If I understand correctly this is for creating your own protocol and then attaching or receiving its headers. Do you have any idea how to do this for existing protocols like: http, https ?
Thank you.
|
|
|
|
|
|
CSplitterWnd[^]
There are certain samples listed below the topic. Take a look at them too.
Nibu thomas
Software Developer
|
|
|
|
|
thank for your reply.
i want to delete or add sub windows on runing time?
reuter's split control is owner draw.
|
|
|
|
|
vicstart wrote: I want to delete or add sub windows on runing time?
Thats more advanced but certainly possible.
You need to have your view initially in a splitter with only one pane. Then, you change the splitter to have more panes and create your new view in the new pane.
The CSplitterWnd is a nasty beast, so you need a lot of practice to force it into submission..
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
vicstart wrote: i want to delete or add sub windows on runing time?
DeleteColumn(...)<br />
DeleteRow(...)<br />
DeleteView(...)
Nibu thomas
Software Developer
|
|
|
|
|
Dear jigneshrpatel ,
Thanks for ur quick reply. Ya I make an attempt thru
CHttpFile: SendRequest(). still not working.
code is!..
pStrVerb = POST;
pServer = session.GetHttpConnection(lpstrServer, usPort,
pstrUserName, pstrPassword);
pFile = pServer->OpenRequest(pstrVerb, strFile, pstrReferer);
CString strFile= "\mypage\getdata.asp ";
pFile = pServer->OpenRequest(pstrVerb, strFile, pstrReferer);
//,1, &pstrAcceptTypes, pstrVersion, dwHttpRequestFlags);
pFile->AddRequestHeaders(szHeaders);
pFile->AddRequestHeaders("User-Agent: GetWebFile/1.0\r\n", HTTP_ADDREQ_FLAG_ADD_IF_NEW);
CString CStrTempQueryString = _T("txtpname=Winrunner&txtptype=Testing");
pFile->SendRequest(NULL, 0,(LPVOID)(LPCTSTR)CStrTempQueryString,CStrTempQueryString.GetLength());
pFile->QueryInfoStatusCode(dwRet);
I want these data (txtpname=Winrunner&txtptype=Testing") in ASP page
Note:
I also change the code to
CString CStrTempQueryString = _T("?txtpname=Winrunner&txtptype=Testing"); still not working.
Kindly do it ASAP. Thanks for ur effort.
viveks
|
|
|
|
|
Hi,
I am trying to generate a Excel Spreadsheet using VC++ 6.0. The spreadsheet, for example, may be a budget estimation form.
I am new to VC++, if someone can give me a lead, I will appreciated very much.
Thanks for your attention,
Betty
|
|
|
|
|
Have a look at this.
[this^]
Vini
|
|
|
|
|
How to catch ActiveX Install or Excute using BHO?
I want detect ActiveX behavior about install, execute, download *.cab ...
help me~
thanks
and sorry about My little English.
|
|
|
|
|
Hi,
I try to copy contacts between two *.wab files(windows address book file),
but the WAB API allows only one session at one time.
so the IABContainer::CopyEntries does not work at all.
One article said: open the source wab file, read every contact entry and save their properties into a data file, then open the dest wab file and create entries with the properties from data file. But I cannot find such an API!
Can any guru here help me to make that?
Thank you in advance!
Life is hard.
|
|
|
|
|
Is there anyone who can help me with this question??
Life is hard.
|
|
|
|
|
Atony Chen wrote: Is there anyone who can help me with this question??
Try Google or MSDN newsgroups
"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
|
|
|
|
|
1.a Solution had project A and project B,
they are must use a.cpp and a.h,
where the a.cpp and a.h place that is good.
2.and one project use some character string,
define them in a same file, is it good?
and how can i rename this file ?
3.same as question 1, and a.cpp and a.h write some usual function, how can i rename it? Function.h and Function.cpp?
Thank u.
|
|
|
|
|
Usually, when one or more projects share files like that, then I place the 'shared' files in a folder SEPARATE frome other project, such as a 'Common' folder, and then reference the 'Common' folder for header file inclusion. The viusual studio lets you 'add' the files to the project. You can add the files from the 'Common' folder to each project tha needs them.
The reason to keep them separate is so that when the 'common' files reference a 'non-shared' header file like stdafx.h, they will see the correct header file from the respective project.
Otherwise, your two easy options are a statically linked library (LIB) or a dynamically linked library (DLL). These project would include the same code, theoretically, when used from one project to another.
Now, one reason I don't always go the LIB or DLL route is so that the 'shared' files take on the characteristics of their respctive project - UNICODE, multithreading, exception handling, etc. which can sometimes cause issues when you use a LIB or DLL built differently from your current project's settings.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
Hello,
I have an FTPServer application developed using CAysncSocket, which
is running quite well from the past 4 years.
I have added OpenSSL support to this application recently.
This is how my application works exactly.
1)A connection is established with the server app from a client.
2)Once the connection (command socket) is established, a thread is
created and the socket is transferred into the thread.
3)Then a set of commands are transferred between the client and the
server (My app)
4)Then another socket is created, (data socket), in which the actual
data file is tansferred.
5)The connection for both the sockets are established successfully.
The SSL handshake also happens correctly.
When I am trying to transfer the file in the data socket in encyption mode using SSL, a portion of the data is transferred successfully (received by the server app) and socket is timedout aborting the data transfer.
When I have debugged the application I have found that
MySocket::OnReceive() is not getting called, where I have put a breakpoint.
Note: SSL connection for each socket is exists.
Can any one please help why this is happening or how I can make the
OnReceive() fn get called so that my data is transferred completely.
Thanks in Advance.
Seetharam
nsrsetty@yahoo.com
|
|
|
|