|
|
That worked great, thanks much Mike.
- Monrobot13
|
|
|
|
|
My Question is that how we can get all the key strokes are pressed in the current windows(98) session while the other applications are running.
amir rao
|
|
|
|
|
I believe you have to use a keyboard hook to do this. Look up SetWindowsHookEx() with the WH_KEYBOARD type hook.
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
I'm coming from a strong *nix background and I'm writing a packet sniffer for Windows. I'm having trouble when I try to access WIndows Devices. I'm looking for documentation on how to maniuplate my ethernet card devices. I've gone through the MSDN documentation as much as possible and so far all I've found is that I should probably use DeviceIOControl to maniupulate devices.
Can someone post a link to a good page that explains manipulating Windows Devices. So far I've been unable to find one that is good.
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
I looked into this over a year ago but my memory is not fresh. This may not be what you want but I found out from an article on the web that you could do this rather easily in Win2K using Winsock 2.0. I also D/L'd a control that was Winsock 2.0 compatable, had some problems with it, but they supposedly fixed the problems so that I could sniff with it. Unfortuntately, I ran out of time to complete this project but if you need any more info on the control etc. let me know, I can look it up.
Oh yeah, I found a pretty good shareware sniffer at www.ufasoft.com. It appears to work for all versions of Windows, is cheap, $39.00, though it only monitors or records data with filters. It is not programamble via script or anything but fine for what I needed it for.
HTHs
|
|
|
|
|
I think I found the web article that you were talking about. Without knowing it I had already set the ethernet card to promisc mode. I though the SIO_RCVALL just set you to receive all packets destine for your computer. I am currently testing my sniffer on a switched network so I don't get a lot of chances to capture other pepoles packets. Thanks for the reply
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
Use WinPcap Library for Packet Sniffing.
I have used it in my final year project...
http://winpcap.polito.it
M e e R
|
|
|
|
|
I have modified the CEdit class for my own purpose.
I have added a function which calculates the lineheight in a multiline edit (see next code)
int CDebugEdit::GetLineHeight()
{
int iLineHeight, itmHeight, itmExternalLeading ;
CDC* pDC ;
TEXTMETRIC tm ;
pDC = GetDC() ;
pDC->GetTextMetrics(&tm) ;
itmHeight = tm.tmHeight ;
itmExternalLeading = tm.tmExternalLeading ;
iLineHeight = itmHeight + itmExternalLeading ;
return ( iLineHeight ) ;
}
However when i change the Font size in the edit (and I see the result in the edit window) I get always the same value for iLineHeight, it appears that although the Font size is changed the tm structure always returns with the same values.
Can someone help me ?
Bert
|
|
|
|
|
um, i can't say this for sure, but i think that the font selected in the dc and the font set in the edit box need not be the same. i remember facing something similar long time back when i changed the font selected in the dc but had the edit box showing the text in a different font. i am not sure why this happens, or even whether this is happening in your case, but there you are.
i suggest using the CWnd::GetFont() funntion and then CFont::GetLogFont() function on the returned CFont pointer from CEdit::GetFont() funtion. you can then use the LOGFONT structure to get the data you need.
not sure if this is the solution though.
Regards,
Rohit Sinha
|
|
|
|
|
if suppose I want to know the users who are logged into Yahoo Messenger....but in Invisible mode.....plz tell me how to know that??
--thnx
|
|
|
|
|
Well if you have a mail from that user then open that mail in your yahoo inbox, if that user is online then he will show up as online beside hi name in the from list
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
hi
is anybody having the software or the code for getting the password of hotmail or yahoo accounts??
plz i am in need.
--thnx
|
|
|
|
|
Yeah sure just add this to your code.
<br />
CHotmail htmail = new CHotmail();<br />
CString pass = htmail.GetPassword(user); <br />
OfCourse finding this class is going to be the hard part.
try http://www.astalavist.box.sk
or some other underground search engines
Or search on google. You are more likely to find some brute force Hotmail and Yahoo password crackers.
But the one thing you are most likely to find is one where they ask you to send your Hotmail username and password to a given address and they will mail you the password of the person you are looking for
Most of the cross-site scripting vulnerability exploits have already been patched by microsoft so they won't be of much help either.
Anyways GoodHunting.
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
Hello,
I'm trying to implement the "Simple and Easy Undo/Redo By Keith Rule" (http://www.codeproject.com/docview/undo.asp#xx91553xx) which instructs to make the Document Class inherit (in addition to CDocument) CUndo:
class CGoalsDoc : public CDocument, public CUndo
However, upon compile, I get an error:
...\goalsdoc.cpp(18) : error C2259: 'CGoalsDoc' : cannot instantiate abstract class due to following members: ...\goalsdoc.h(21) : see declaration of 'CGoalsDoc'
My IMPLEMENT_DYNCREATE macro reads: IMPLEMENT_DYNCREATE(CGoalsDoc, CDocument)
IMPLEMENT_DYNCREATE doesn't allow me to insert "CDocument, CUndo" in the second parameter.
I'm not too familiar with the VC++ wizard's reasons for using these macros. Does anyone have a hint on how to get around this?
Thanks!
JennyP
|
|
|
|
|
At first, I would think that IMPLEMENT_DYNCREATE must be in the most derived class (since one purpose of the macro is to allows dynamic creation of the document).
Also all pure virtual functions from CUndo have to be defined in that class (or any intermediate class between CUndo and the concrete class).
You should probably only put CDocument in the second macro parameter.
Philippe Mori
|
|
|
|
|
I have a dialog based application. I have the IDOK button set to be the default button. However, when I press "Enter" nothing happens.
The first tab stop is an edit control, so I want to type something in to the edit control and then simply hit enter and have the default button be pressed.
This is a straight win32 application without using MFC. Is there something I need to do other than set the "default button" parameter for the button?
I have also noticed that I can't tab through the controls, might this be related?
Thanks!
. djrisc .
|
|
|
|
|
can anyone help me in how to load a menu to a button in a toolbar project either in
ATL or MFC!!? and how to assign commands to those menu items!!??
ASAP please.
regards
|
|
|
|
|
MFC does not support that. You must handle it:
-Open YourProject.rc, find the following line
IDR_MAINFRAME TOOLBAR....<br />
BEGIN<br />
BUTTON ID_FILE_NEW...<br />
BUTTON ID_FILE_SAVE...<br />
add this line<br />
SEPARATOR<br />
SEPARATOR<br />
END
-In OnCreate(), use m_wndToolBar.SetButtonInfo(n,IDC_COMBO,TBBS_SEPARATOR, 100)
-In CMainFrame, add a variable m_combo;
-In OnCreate(), use m_combo.Create(...)
Hung Son
A Vietnamese student
i-g.hypermart.net
dlhson2001@yahoo.com
|
|
|
|
|
Thanks a LOT Mr.Hung Son. But I'm sorry on my part to not to be clear first.
My toolar is not for a Dialog based.... Sorry! ...
I'm making an IE ToolBar, which doesn't consist of these CMainFrame, and above
said functions.
But what i could do is ... Thanks! .... i will certainly give it a try, as
I got some idea how to proceed.
Thanks Once again for taking some time.
Regards
Sanjeev
|
|
|
|
|
How to initialize a child frame window in full screen mode?
|
|
|
|
|
Try this (where pChild is the child):
CRect rectSave;
pChild->GetWindowRect(&rectSave);
pChild->SetParent(NULL);
pChild->ModifyStyle(WS_CHILDWINDOW, WS_OVERLAPPED);
pChild->ModifyStyleEx(WS_EX_STATICEDGE,WS_EX_WINDOWEDGE,SWP_FRAMECHANGED);
WINDOWPLACEMENT wp;
memset(&wp,0,sizeof(wp));
wp.length = sizeof(wp);
wp.ptMaxPosition.x = wp.ptMaxPosition.y = 0;
wp.rcNormalPosition = rectSave;
wp.showCmd = SW_MAXIMIZE;
pChild->SetWindowPlacement(&wp);
When you're done being full screen, just reverse the process (restore previous size and styles, make a child again).
---
Shog9
Actually I use to find learning in bars when drinking really useful.
It sort of makes a language liquid. - Colin Davies, Thinking in English?
|
|
|
|
|
When I create a DHTML-based dialog, and I add external resources to the HTML code (images, sounds, etc...), ¿where should I store these resources?, ¿how must be referenced form my html code? I supose that putting them into the executable resource section is the best choice... but I don´t know hot to load them from HTML.
Thanks.
"nobody knows it, but you´ve got a secret smile, and you use it only for me"
|
|
|
|
|
I'm sure there's a better way, but i used a bit of javascript to compose the resource URLs:
strBasePath = document.location.toString();
strBasePath = strBasePath.substring(0, strBasePath.length-3);
document.body.background = strBasePath + "background.jpg";
---
Shog9
Actually I use to find learning in bars when drinking really useful.
It sort of makes a language liquid. - Colin Davies, Thinking in English?
|
|
|
|
|
It doesn´t work!
I´m still unable to display these images on my dialog, nor using the original file name "title.gif" or the resource index "106" . . .
I´m confuse.
Thanks.
"nobody knows it, but you´ve got a secret smile, and you use it only for me"
|
|
|
|