|
HI all,
i m using coinitializesecurity for finding serial port.
here coinitializesecurity returned error 80010119.
i dont know how can i resolve this.
please help me for this.
thanks in advance
|
|
|
|
|
|
|
Great
|
|
|
|
|
Le@rner wrote: here coinitializesecurity returned error 80010119.
i dont know how can i resolve this.
please help me for this.
See here."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi all
I am making an activex control using vc++. I want to receive the message MM_WIM_DATA so that I try the callback function for this but this callback function calls only ones so please give me some help how i use this callback function. The source code I am using as follows
Deceleration
void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2);
class myclass : public COleControl
{
friend void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2);
};
definition
void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2)
{
switch(uMsg)
{
case MM_WIM_DATA:
OutputDebugStringA("wavein proc..............................");
break;
}
}
|
|
|
|
|
What is the problem? There is no question in your post.
-Saurabh
|
|
|
|
|
problem is that this callback function calls only ones.But I want to receive MM_WIM_DATA continuously.
|
|
|
|
|
you have to setup the callback properly. Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi
Can a dll have a message loop. I want to make a dll which can capture the key pressed event on a device and start doing something. Can anybody help me with some sample code as to how do that. Suppose i being the user have pressed the switched off button on the mobile(Windows Mobile) and my dll is working in the background . So how can i make my dll aware that a key has been pressed and I have to do something according to the pressed key.
Thanks in advance!!!!!!!!!!!!
|
|
|
|
|
You'll need to install a keyboard hook for that. However, post your query in the mobile development forum[^] as people there may be able to help you with more details.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Can you help me with some code as I am not very aware of this keyboard hook.
|
|
|
|
|
|
anuhoho wrote: and my dll is working in the background
You need to understand that a dll cannot work independently, it is merely a library of subroutines called by an executable program.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
My problem is my dll is getting attached to one of the processes which I dont know so its difficult for me to trace.Is there some solution or remedy to my problem
|
|
|
|
|
anuhoho wrote: Is there some solution or remedy to my problem
The only thing that comes to mind is that your design needs reviewing. I have no idea what your dll is supposed to do, but if it is necessary for it to know when the system is being shut down then I suspect it contains some functionality that does not belong in a dll.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Let me explain a bit what i am doing. We have a MapiRule example in one of the SDks(Windows MObile 6.0 SDK)where we are setting a rule of collecting the sms somewhere else apart from the default inbox.. This is the application which I am modifying a bit. Now when I install this dll in the device its get attached to one of the process(of which I have no idea)and starts working at the background. Now I want that this dll which is running at the background should be able to get a keymessage event(or a stylus event) and do something...but Suppose I am switching the device off then i want that a message box will pop up..something of that sort.
Now if you got some idea will you be able to help me out.
Thanks in advance!!!
|
|
|
|
|
anuhoho wrote: Now when I install this dll in the device its get attached to one of the process(of which I have no idea)and starts working at the background.
That would seem to be the first issue you need to resolve. If you do not know who is using your library then how can you expect to control it?
As I said before, your design needs to be looked. This functionality belongs in an application not in a dll.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi,
I am doing Interprocess communction between and C console program an MFC Win32 program
seems like the fastest way of sending data is using WM_COPYDATA
Since SendMessage is not asyncournos
I was wondering I can use this message (for IPC) with PostThreadMessage or PostMessage
thankx
|
|
|
|
|
You cannot use WM_COPYDATA with PostMessage , for the very reason that the operation needs to be synchronous (the data being copied should be still in place).
You could consider sending this message from within a worker thread, so your GUI won't be affected.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I understand thankx so much
|
|
|
|
|
You could use the Shared Memory
to allocate and set it at the first side
and then - just post an event at the second side...
I would use the COM transfer instead Check your definition of Irrationality[ ^]
1 - Avicenna
5 - Hubbard
3 - Own definition
|
|
|
|
|
not familar with com transfer but will look it up
|
|
|
|
|
PostMessage is for (MFC) Windows-GUIs
PostThreadMessage is for threads with a message queue
The shared data idea is really fine. It dimishes uneeded allocating and copying of memory.
allocate shared data and post user message when new data has arrived. Use an array and a flag which data has been read.Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Have the data in shared memory (used by both process)
and post a user message
thankx
|
|
|
|