Hi guys,
I have a weird problem.
I wrote an application that has 2 UI threads both windows
are top-level. When I insert my USB disk on key into
computer I receive several WM_DEVICECHANGE which are sent
trough PostMessage and WM_DEVICECHANGE with wParam set to
DBT_DEVICEARRIV AL and this one is sent to me through
SendMessage(by windows) I checked this through Spy++(I
don't know why last one is sent through SendMessage). The
intention of program is to write that it detected
insertation of USB disk on key and it works fine, BUT if
main UI thread is in state that it doesn't pump its
message queue some kind of long processing, and I insert
USB disk on key into the computer , the second UI thread
that DOES pump messages gets several WM_DEVICECHANGE
notification but it NEVER receives the one with wParam
DBT_DEVICEARRIV AL. This happens as I mentioned only when
the main thread is in some busywait state but second UI
thread is also top level windows so I don't see any reason
I don't get DBT_DEVICEARRIV AL.
Thanks in advance 0 1803 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Leo Jay |
last post by:
when i use POP3.retr() in poplib module, the retr() function will not
return until the receiving progress is finished
so, is there any way to get the rate of receiving progress?
Thanks
--
Best Regards,
Leo Jay
|
by: Ramiro Barbosa, Jr. |
last post by:
All,
In regards to the call below, I was wondering why is it that the
'szMessage' receiving buffer results in an empty one, but by printing
'ret' it indicates the number of bytes I am indeed receiving!
int ret = recvfrom(receivingSocket,szMessage,sizeof(szMessage),0,sockaddr*)&addr_Cli,
&clilen);
Any ideas?
|
by: Matteo |
last post by:
Hello everyone,
I'm trying to write a little app that wait for the WM_DEVICECHANGE
message from Windows that tht OS raises when a device (such as CD,
DVD,...) is inserted or ejected (in BC++ 6)
I've tried whith the Application->OnMessage() but it never receives
the message, so I've tried with the esample in the MSDN, write below,
but I dont know how to register the message handler in the
application.
I know that it could works because...
|
by: Stephan Steiner |
last post by:
Hi
I have a small program listening to UDP broadcast datagrams that are
periodically sent out. It will stop listening for a certain period if either
a sufficient number of packets has been received (this is triggered from a
class not in the sample code), or if there has been no data on the net for a
certain period. During the time where I don't want any packets, I set my
socket receive buffer size to zero.
The problem is, when I used...
|
by: yuri |
last post by:
Hi all
At coding XP Themes i can't get "GetThemeColor" to work.
It always fails ("not found" err. code) regardless of which control parts
and states entered.
Could somebody help me with advice?
Yuri
| |
by: Sajsal |
last post by:
Hi all
I am developing a web app in which the client wants an email sending and
receiving functionality. Is it possible in C#. If yes where should I start.
If anyone could tell that how long would it take to develop and the human
resources etc
I'll be very thankful
Regards
|
by: Jason |
last post by:
I'm trying to implement some pretty basic behavior in c#/.net 1.1
Forms but can't seem to find all the requisite pieces. When a user
clicks on the background of the form, I want the app to start
receiving MouseMove updates -- whether the pointer is over the form or
not (this being the crucial part) -- until the next MouseDown. It's
easy to receive MouseMove events while the pointer is over the form
but not when the pointer leaves. (Forms...
|
by: André Betz |
last post by:
Hi,
I've established a TCP-Socket Connection and now I want to receive
datas. So I called BeginReceive where I set the receiving buffer and
length. Now in the asynchronous CallBack-Function I call EndReceive and
get the length of rceived datas. After receiving datas I call the
Beginreceive-Function again.
So my question is now what is if the send datas is greater than the
receiving buffer? Ok, I know, I will get it in the next...
|
by: Ryan |
last post by:
I'm writing a utility that needs to be aware of media (CD, DVD, Zip
disk, usb stick, etc) insertions and removals. Which seems to be more
of a problem than I original imagined.
I can't use any auto-run features because this is actually running on
Windows XP Embedded... so that's the first thing to be aware of.
Using WM_DEVICECHANGE works about half the time...that is, it works when
a DVD or CD is inserted, but it does not work for Zip...
|
by: LS |
last post by:
Can a WebMethod return an Interface type?
Can we pass an interface parameter ?
Example :
public interface IEntity
{
long Id { get; set; }
string Name { get; set; }
}
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |