|
How much is the code worth to you?
|
|
|
|
|
|
Does not meet the requirments. IUrlHistoryStg only works for IE 5.5 or above and WinMe & Win2K or above.
|
|
|
|
|
I think MSDN's documentation is incorrect there. Those interfaces have been included since visual studio 6. I've been able to use them on Win95 and IE 4.0 (I think).
|
|
|
|
|
Is it so?
as i tried with the IUrlHistoryStg2 with WinNT4.0 and IE 5.5 but it not working . Below is the code i tried.
IUrlHistoryStg2 * pHistory;
HRESULT hRes;
CoInitialize(NULL);
hRes = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC_SERVER,
IID_IUrlHistoryStg2, (LPVOID *)&pHistory);
if (SUCCEEDED(hRes))
{ pHistory->ClearHistory();
pHistory->Release();
}
CoUninitialize();
return hRes;
what could be the problem?
thanx and rgds
archana
|
|
|
|
|
This code looks good to me. Is it the CoCreateInstance or the 'ClearHistory()' that fails?
|
|
|
|
|
ammm one doubt is there...
do "today" folder should also get cleared using this method????
As, in my case it's not getting cleared. And i need to clear it.
Thnax in adv.
archana
|
|
|
|
|
I'm not sure why the 'today' folder wouldn't get cleared. I guess you could use IUrlHistoryStg to enumerate and delete the URLs that remain, but that seems like overkill.
|
|
|
|
|
well, i think it was the problem as my browser instances were open. I will tackel that now.
Could u tell me something .....changing the subject bit Now it's about deleting History files for Netscape 4.7 and 6.0 .
My research told me that...NS 4.7 saves it's history in netscape.hst in user profiles but i didn't get any file of named netscape.hst in NS 6.0 instead i got history.dat but it is not containing URLs. So, do u know where actually NS 6.0 stores it's visited URLs . Is it cookies.txt?
I doubt but...and even it stores it's entries in the address bar(drop down combobox) in different way or in different location i think...i didn't get that also....if u know details of NS 6.0 history files then plz do let me know...
Thanx in advance
archana
|
|
|
|
|
I'm afraid I don't know how to access Netscape's history info.
|
|
|
|
|
Thanx
IUrlHistoryStg2 is working
thanx a lot
archana
|
|
|
|
|
To get text under mouse cursor, i think we much hook
some API such as TextOut, but I can't hook any API function which have address above 2Gb. Anybody can help me?
Please email me if you can. phamthienan@yahoo.com
|
|
|
|
|
Hi,
I'm in search of a sample of creating a MAPI preprocessor. I've taken a look at the one in the Platform SDK, but am a little confused as to what *basics* I need to have done..
The same preprocessor in the SDK is full of a lot of stuff which might probably be unneccessary for what I want to do..
thanks in advance,
Erik
I hit faked him with my win32 API .chm and the peabrain goes for it. I follow it up with a salvo of left's and right's sending him down hard. It's lunch time and he's getting a Champ Sandwhich Special. I said, How's that Mr. VB?! Is that 'I wanna use COM in that Server enough for you?!'
...Ever since then, I've been the Champ.
|
|
|
|
|
I get a
LNK2001 unresolved external symbol _outp
link error on the following code:
#include "conio.h"
int main (void)
{
outp(0x64, 0xFE); //reboot win95
return 0;
}
I am a VB programmer learning VC. Can somebody help me to get this code running?
|
|
|
|
|
Why don't you use ExitWindowsEx ?
"A surprise to be sure, but a welcome one."
- Senator Palpatine
|
|
|
|
|
This kinda coding won't get you far on other Win versions
TMB!
|
|
|
|
|
Thanks everybody,
I have got it working now.
|
|
|
|
|
I'm developing a simple remote control app. To command the remote PC I use some simple API call:
SetCursoPos(x,y) to set Cursor position.
WindowFromPoint(x,y) to get the handle of the Window under the screen coordinates x,y. Then I send messages like WM_LBUTTONDOWn and WM_LBUTTONUp to command the window, this works, but I have a problem to open the menu bar of the remote winodw. I know that when the cusror is over the non client area of window I must send the message WM_NCLBUTTONDOWN, and this is what I do, but it doesn't , works! When the cursor is over the window menu bar and I send WM_NCLBUTTONDOWN, I expect that the Menu is opened, but it doesn't. Using SPY I knwo that this is the message that is sent to the window when you press the left mouse button over the nonclient area of the window ( the menu bar ). Any idea about what I must do to in this situation ?
|
|
|
|
|
you are kidding me ! check this out ! thank me later :
i made a remote control programme about subseven fans said it`s way better !
mouse_event
The mouse_event function synthesizes mouse motion and button clicks.
Windows NT: This function has been superseded. Use SendInput instead.
VOID mouse_event(
DWORD dwFlags, // flags specifying various motion/click variants
DWORD dx, // horizontal mouse position or position change
DWORD dy, // vertical mouse position or position change
DWORD dwData, // amount of wheel movement
DWORD dwExtraInfo
// 32 bits of application-defined information
);
Parameters
dwFlags
A set of flag bits that specify various aspects of mouse motion and button clicking. The bits in this parameter can be any reasonable combination of the following values: Value Meaning
MOUSEEVENTF_ABSOLUTE Specifies that the dx and dy parameters contain normalized absolute coordinates. If not set, those parameters contain relative data: the change in position since the last reported position. This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section.
MOUSEEVENTF_MOVE Specifies that movement occurred.
MOUSEEVENTF_LEFTDOWN Specifies that the left button is down.
MOUSEEVENTF_LEFTUP Specifies that the left button is up.
MOUSEEVENTF_RIGHTDOWN Specifies that the right button is down.
MOUSEEVENTF_RIGHTUP Specifies that the right button is up.
MOUSEEVENTF_MIDDLEDOWN Specifies that the middle button is down.
MOUSEEVENTF_MIDDLEUP Specifies that the middle button is up.
MOUSEEVENTF_WHEEL Windows NT: Specifies that the wheel has been moved, if the mouse has a wheel. The amount of movement is given in dwData
dx
Specifies the mouse's absolute position along the x-axis or its amount of motion since the last mouse event was generated, depending on the setting of MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual x-coordinate; relative data is given as the number of mickeys moved. A mickey is the amount that a mouse has to move for it to report that it has moved.
dy
Specifies the mouse's absolute position along the y-axis or its amount of motion since the last mouse event was generated, depending on the setting of MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual y-coordinate; relative data is given as the number of mickeys moved.
dwData
If dwFlags is MOUSEEVENTF_WHEEL, then dwData specifies the amount of wheel movement. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120.
If dwFlags is not MOUSEEVENTF_WHEEL, then dwData should be zero.
dwExtraInfo
Specifies an additional 32-bit value associated with the mouse event. An application calls GetMessageExtraInfo to obtain this extra information.
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
Hi everyone,
I am totally unfamiliar with windows programming, and I need to write a simple program for my boss. I have written all of the meat of the program so that it runs as a console app. I need help converting it into a windows app.
** The part I need help with is:
- use a menu
- choose a file option called "parse"
- have that pop up a dialog box that allows you to browse for files and then choose multiple files.
- then when you click ok, it parses all of the chosen files with the code I have already written.
Please help!!!
Thanks,
pwkicker97@hotmail.com
pwkicker97@hotmail.com
student Johns Hopkins University
|
|
|
|
|
It will probably be easier for you to create a new project using MFC AppWizard and then cut-and-paste your file parsing functionality into that rather than trying to wrap your console app. in windows.
Depending on what type of output is expected you could simplify life even further by using a "Dialog based" app. If you want some kind of report generated and visible on screen you should use a document/view app. If your output can be presented as few numerical or string values or a simple list of values then it would probably be simlper to use a dialog based app.
Do you use Visual C++ 6.0?
Steve T.
|
|
|
|
|
hi everyone,
i'm doing my final year programming project. i was hoping to get opinions on methods/designs for my system. the system im creating is a new version of an existing system. my supervisor wants me to create a system that is flexible enough to accept certain codes from the previous system. import the code into the new system and be able to run without much changes or without any changes. any ideas? im using ASP (VBscript) and SQL. the old system is also using ASP(VBscript).
|
|
|
|
|
I need to save a web document in MHTML format (just like IE does: Save As Web Archive) and looking for component (Win95/98/NT4) that can do that. Something like CDO.Message from CDO for Win2K. I'd appreciate any info or idea.
Thanks
Edward
|
|
|
|
|
I want to program a window, which like windows 98 Driver installation window. When it shows, you cannot click other window, and will beep once to warning. Anybody can help me or give me a tip?
What I needed maybe you have, so let's help each other.
|
|
|
|
|
The ClipCursor function confines the cursor to a rectangular area on the screen. If a subsequent cursor position (set by the SetCursorPos function or the mouse) lies outside the rectangle, the system automatically adjusts the position to keep the cursor inside the rectangular area.
BOOL ClipCursor(
CONST RECT *lpRect // pointer to structure with rectangle
);
RECT r;
POINT p;
GetClientRect(hWnd,&r);
p.x=r.left;
p.y=r.top;
ClientToScreen(&p);
UINT w=r.right-r.left;
UINT h=r.bottom-r.top;
r.left=p.x;
r.top=p.y;
r.right=r.left+w;
r.bottom=r.top+h;
why am i doing this !?
if you capture the mouse inside a window and you right click the title bar it gets free ! this way it doesn`t !
Make sure to make your window system modal ! because if you loose control of the locked mouse RESET helps you brother !
//ate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|