473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CListCtrl LVN_ITEMCHANGED causing mmedia DLLs to load?

Here's one I've spent the last 6 hours trying to figure out...
I have a CListCtrl derived class. The first time I click an item in
the list to select it, I see a lot of multimedia dll's being loaded
and unloaded causing a noticable delay before the item selects. After
that its fine.

The funny thing is, my set up is exactly the same as another program I
have and it doesn't load anything! I created a stock MFC DLG app with
a CListCtrl and it also had the dll loading problem.

I traced the loading of the libraries down to occuring after clicking
the mouse but before the LVN_ITEMCHANGED i sent to the ListCtrl. I
even dumbed down my ListCtrl to do nothing except add one text item
with no OWNERDRAW extensions etc. same problem.

The "model" project was originally done in vstudio6 but i converted it
upwards to 7.1. I checked all of the project settings between my
program and the model I have, they are exactly the same. I copied the
working project, deleted its files and added mine. problem occurs. I
went over all of the calls being made by the classes above the
ListCtrl (CView, CMainFrame, CWinApp) and everything is the same in
both programs. I do notice that at the end of the "model" program, I
get an "Unloaded ....dll" for all the dll's used, but in my program,
there is no printout of unloaded dll's. This is the only related
difference I can find. Maybe if someone at least knew what causes the
unloading/messages I'd have another lead.

I even walked through both executables with DependencyWalker. It seems
that for some reason, in mine, comctl32.dll is calling
waveOutGetNumDevs (which probably explains the mm iterating). But in
that instance, the same functions in comctl32.dll are being in called
in both my program and the model one.

I know this is long and rambling but I tried to include any details
that might be familiar to someone. Thanks in advance for anyone
willing to send a response.

Here are the libraries that load when I make my first ListCtrl
selection.

'LZ.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\ctwdm32.dll', No symbols
loaded.
'LZ.exe': Unloaded 'C:\WINDOWS\system32\ctwdm32.dll'
'LZ.exe': Loaded 'C:\WINDOWS\system32\wdmaud.drv', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No
symbols loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', No
symbols loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No
symbols loaded.
'LZ.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll'
'LZ.exe': Unloaded 'C:\WINDOWS\system32\wdmaud.drv'
'LZ.exe': Loaded 'C:\WINDOWS\system32\wdmaud.drv', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No
symbols loaded.
'LZ.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll'
'LZ.exe': Loaded 'C:\WINDOWS\system32\msacm32.drv', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', No symbols
loaded.
'LZ.exe': Loaded 'C:\WINDOWS\system32\midimap.dll', No symbols
loaded.
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 17 '05 #1
0 1858

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Joseph Smith | last post by:
Well I just started playing with VC++ yesterday, so keep it simple if you can. thx. Anyway, I'm having problems with a CListCtrl in report view. The first column seems to display fine, but the...
2
by: Chandrakanth | last post by:
How to make the selection in CListCtrl to appear in different color?
2
by: kinghuangz | last post by:
Everyone: I want to use a DLL(FileName:PubFunction.Dll) built with VS.Net(C#) in a unmanaged Program .But there was a Dll just has the same filename,it was built with VC++(6.0).The unmanaged was...
2
by: Herbert VON GRÜNENWALD | last post by:
Hi everyone ! I would like to set an ListViewItem at a special position, into a ListView. There is Bounds, but it's a propertie, that can be only get ! (i could to that in MFC with...
0
by: Rajko | last post by:
Here is something I find unusual. I implemented Drag and Drop to CListCtrl. First I created my own class myCListCtrl from CListCtrl. I implemented OnMouseMove and OnLButtonUp message handlers...
0
by: Victor | last post by:
Hi everybody! VS.NET 2003 C++ MFC project for Windows XP I would like to use a CListCtrl control in a dialog. So I have #include'd "afxcmn.h" in my CMyDialog.h and declared a variable...
7
by: George Copeland | last post by:
This is a request for assistance analyzing a problem we are experiencing in our VB6 development environment. All our code is developed in VB6, and our persistance layer is SQL Server. We are...
22
by: Brett Romero | last post by:
If my UI app uses three DLLs and two of those DLLs reference something named utilities.dll, does the UI app load utilities.dll twice or does the compiler recognize what is going on and load...
1
by: rag84dec | last post by:
Hi, I have many check boxes in a list control.My problem is to uncheck the check box if there is a check box already checked.How can i do??..I tried doing the below but it checks the first check box...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.