|
hi,
i need to make http request to server through web proxy servers. any one help to me. thanks in advance.
Murali.M
|
|
|
|
|
i think you send the same request to the proxy than to the server.
the only difference is that the url is not just the path, you have to send the full url.
Don't try it, just do it!
|
|
|
|
|
Hi All,
I want to write my own plugin for internet explorer,since i have not this ,from where and how to start any resource.
Thanks in advance,
AL
|
|
|
|
|
|
I want to write user name and password in login window of Yahoo messenger from my application.
Till now I am able to get Handle to Login window using Getclass and GetwindowText.My plan is to get the handle of Login window , then that of edit boxes of Login window. Then to paste text into edit boxes.
The problem is how to know whether this login (which is a dialog box) or edit boxes belongs to Yahoo messenger or a particular window.
|
|
|
|
|
presumably you have used the findwindow function to get the handle for the llogin window
fromthere you can find the client windows by using findwindowex
use spy ++ to gather information about the login window
is this what you have been trying?
bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
<presumably you="" have="" used="" the="" findwindow="" function="" to="" get="" handle="" for="" login="" window.="">
GetWindowText is giving me handle. But handle is generated at runtime. It is not unique.
Yes U are very much near to my goal.
Cheers!!!!!!!
Siddharth
|
|
|
|
|
The Login window of Yahoo messenger is a dialog resource
hence the classname is #32770 (dialog) which is not unique
but the Parent of this login window is "YahooBuddyMain" (classname) , you can check the parent of the dialog via
GetParent and then see whether it is a Yahoo login window or not
Better Yet try to get the GetDlgCtrlID of the login window that should be consistant
But beware there can be no sure fire way of doing what you are trying
Hope that helps
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
That's exactly what I need.
But is there any other better method of doing it. More generalized.
Thanx
|
|
|
|
|
Hey everyone!
I am working on this freeware application that does archiving of certain files. I am wondering can anyone point me in the best direction on how to implement ZIP from within my own code? (Preferably a FREE method). I've found a company that allows you to buy and redistribute a .DLL from them that you can call methods to ZIP, but they want to charge for the amount of distributions. And since its FREEWARE, I don't really want to pay for everyone that uses this program freely!
In the meantime, what I've done is installed WinZip's command line addon, and I've been calling that with a CreateProcess() command. But I don't want to have to my users have to download and install WinZip, so that my program works. I want everything in one bundle preferably to call some code or a (FREE) .DLL within my own app that creates the .ZIP file!
Thanks
|
|
|
|
|
|
First off, I am a newbe. I have learned C++ from book on my own because I seek knowledge and I like to know as much stuff as I can. I love to program.
Using a MFC app. You can place a static or edit control on the dialog and declare a Cstring to it. but as far as I can manage you cant get it to display both numbers and letters. How do I make a edit or static control display something like “gun + 12” (space ship game I am making).
.format
did not work
“I do the best possible thing in the worst possible way”
rea
|
|
|
|
|
Do you mean you are trying to set the text of your control?
Try
GetDlgItem([your control ID])->SetWindowText("gun + 12")
If you want to put a variable value into it, try:
CString display;
display.Format("gun + %d", your_variable);
GetDlgItem([your control ID])->SetWindowText(display);
Hope this helps
|
|
|
|
|
I may be doing something wrong (probably the case) but I tried those and none of them worked. I did update the data. Dose it mess up if there is a member variable already set the control?
I right now have a static control IDC_mes, with a Cstring member variable called mes.
“I do the best possible thing in the worst possible way”
rea
“I do the best possible thing in the worst possible way”
rea
|
|
|
|
|
It is probably best if you leave the 'UpdateData ' stuff alone, declare a control variable (thats of type CEdit for a editbox and CStatic for static text) and use SetWindowText / GetWindowText on it.
This way you have the fuill control over when and what is written to your dialog.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hi everyone,
I'm writing a program that deals with packet routing. My problem is, when my application exits, I need to renew (by using IpRenewAddress) all interfaces so that I can restore the adapters to the way it was before my program took over. This process doesn't take long UNLESS u have things like network bridges. These virtual adapters are not renewable and when my application tries to renew them, it takes forever. Is there a way for me to determine which adapter is actually renewable and which is not?
Thanks!
|
|
|
|
|
Hello All,
I'm a newbie on VC++ and i'm writing an application that able to open/close explorer.exe on the desktop. is there any method to do this??
I've done a little bit research, is it prossible to use WIN32 APIs like 'GetWindow()', 'FindWindow()' and 'DestroyWindow()' , if so, how to obtain the explorer's handle . Or other easier way to do it .
Thanks in advance.
|
|
|
|
|
|
|
ShellExecute(handle, "explore", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
will open it for you
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
|
If you want to Open and then Close explorer you can use
CreateProcess to Open
which will return a HANDLE
using that handle you can close the explorer
using TerminateProcess
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Thx your suggestion, but i want to Close all explorer before the application update something and then open the explorer again.
i followed Bryce's suggestion and i can open the explorer but this is after. now i'm trying to get the handle/s of those windows explorer on the desktop and than close it.
i'm trying to use 'FindWindow()' and 'GetWindowText()' but with no luck. do you have any comments or suggestions.
thanks in advance.
|
|
|
|
|
How can i set a bitmap image as the background of a list box so that on scrolling, the listbox's background image remains still?
|
|
|
|
|
Derive a class from listbox and handle
OnEraseBackground
and paint the BMP
might work
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|