|
|
You can create a dll file that can be registred usign regsvr32 command.
Finally change the extension from .dll to .cpl register it and you will see this in control panel.
ritz1234
|
|
|
|
|
|
ritz1234 wrote: change the extension from .dll to .cpl register it and you will see this in control panel
Apllets have a different entry point.
|
|
|
|
|
|
Hi,
I need to write some data in the CD (ofcourse through a CD writer) and need to read it programatically.
But my concern is that it should not be recorded in the CDFS. So it is obviously a hidden data...
I am not sure about the API(s) which can be used for this. Will DeviceIOControl help?
Thanks in advance.
|
|
|
|
|
An option (though remaining in the CDFS) maybe steganography , there are a lot of articles here at CP, most of them written by Corinna John (she's able to hide info almost anywhere ) http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=475133[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thank you for the reply. But I need to keep the data in CD itself, not as a file.
|
|
|
|
|
His point is that you can keep it in a file on the CD.
Then you can probably use easier APIs to write a file(s) to a CD as per normal.
(And no, I have no idea about those APIs, but they'll make it a lot easier than raw device driver stuff to read and write your secret data.
Iain.
|
|
|
|
|
Thank you for the reply. Yes, I got his idea, ofcourse. But I have to write in the CD itself.
|
|
|
|
|
For write to cd see this[^] article.
|
|
|
|
|
Thank you. I have to do a deep look in to that.
|
|
|
|
|
Hello All
I am trying to catch a right button down event for a control before the form sends it to this control;
Is there any way to do that?
|
|
|
|
|
IMHO the event travels in the opposite direction, i.e. the message comes to the control that usually notify it to its parent.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Mouse events are sent by the system, not a form
(unless you have a form that sends them).
Subclass the control and you'll get the first look
at the messages and you can decide what messages to
let the control handle.
Are you using MFC or straight Win32 APIs?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Actually I am using MFC but I am able to use direct win32
And I got what you mean by sub classing the control,
But the problem is that I am trying to catch mouse event send to a com component not an ordinary control, so that I can't subclass it, it is a black box
But I believe that I should be able to catch the event through the default window Proc and before dispatching it, where the application itself dispatch the every event and send it any GUI item
But I am new in that area so I found difficulty
And I need help.
|
|
|
|
|
In that case, override CWinApp::PreTranslateMessage()[^] in your
application class. You can filter messages there.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
many thx, it works
and here is the code
const UINT RBUTTONDOWN = 0x204;
const UINT RBUTTONUP= 0x205;
BOOL Cmfc01App::PreTranslateMessage(MSG* pMsg)
{
switch (pMsg->message)
{
case RBUTTONDOWN:return true;
case RBUTTONUP:return true;
default:CWinApp::PreTranslateMessage(pMsg);
}
}
|
|
|
|
|
Remember, that disables ALL RBUTTON messages for ALL windows
You can also check the message and filter by HWND if you need to.
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hey i tried to use the handle to not disable all the RButton messages
and i used this code
but it fails
BOOL Cmfc01App::PreTranslateMessage(MSG* pMsg)
{
CButton* pb = (CButton*) GetDlgItem( m_pMainWnd->m_hWnd,IDC_BUTTON5);
switch (pMsg->message)
{
case RBUTTONDOWN:if(pMsg->hwnd==pb->m_hWnd)return true;
default:CWinApp::PreTranslateMessage(pMsg);
}
}
give me an exception " Access violation reading location 0x00100d46."
plz help
|
|
|
|
|
is there any one can help ?
|
|
|
|
|
Hi Friends,
I am writing a MFC Application for UNICODE convertion,
After convertion i need to delete unwanted files in a particular folder.
Could any one tell me how to do that.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
|
Of course I suggest use of SHFileOperation because it ask of you for confirm.
|
|
|
|
|
Hello everyone,
I am confused what is the type of *this? Type of reference to instance or type of instance?
Looks like both code can compile, no warning messages. Any ideas?
class A{
A& foo1()
{
return *this;
}
A foo2()
{
return *this;
}
};
thanks in advance,
George
|
|
|
|