 |
|
 |
Hi,
I am using VC++ express edition 2005,WMPPSDK 9.0,WMFSDK 9.0 and PSDK.
i took the code from
http://download.microsoft.com/download/4/8/f/48f553fc-cdca-403c-b6aa-09de38559cd3/Connect_Plugins_Samples.EXE[^]
when i executed project wmplayerpluginagent it gave me the following errors.
------ Build started: Project: WMPlayerPluginAgent, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3242) : error C2065: '_Module' : undeclared identifier
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3242) : error C2228: left of '.Lock' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3244) : error C2228: left of '.Unlock' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3366) : error C2228: left of '.CreateInstance' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3373) : error C2228: left of '.Lock' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3375) : error C2228: left of '.Unlock' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3641) : error C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3658) : error C2228: left of '.AddTermFunc' must have class/struct/union
type is ''unknown-type''
e:\program files\microsoft platform sdk\include\atl\atlcom.h(3667) : error C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
type is ''unknown-type''
Build log was saved at "file://e:\Connect_Plugins_Samples\WMPlayerPluginAgent\Debug\BuildLog.htm"
WMPlayerPluginAgent - 9 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
can any one tell me why it is giving this error.
amiya kumar das
|
|
|
|
 |
|
 |
I am recieving losts of error messages when i comile the project. I am also not able to run the release version of your project.
if u have any version of you programme that run on VC2005 .Net plz tell me
|
|
|
|
 |
|
 |
Hi
I also get this error...
Fatal error C1083: Cannot open type library file: '..\\FileMonitor\\FileMonitor.tlb': No such file or directory
RussyB
|
|
|
|
 |
|
 |
Get the Dll and Tlb from the FileMonitor article.
Or if u have that check the path.
|
|
|
|
 |
|
|
 |
|
 |
This method no longer works with the new VS.NET that uses ATL 7 and MFC 7.
Does anyone had a clue how to migrate all my controls ?
|
|
|
|
 |
|
 |
Hello there
I downloaded the project and tried to compile it. It compiles. However, at runtime, I got an error "Unhandled exception in TempMonitor.Exe: 0xC0000005: Access Violation."
The error happens in the OnInitDialog
specifically in step:
m_FileMonitorSink->Start(m_FileMonitor, &succeeded);
here is a snip of the code :-
m_FileMonitor.CoCreateInstance(__uuidof(FILEMONITOR::Watch), NULL, CLSCTX_INPROC_SERVER);
CComObject::CreateInstance(&m_FileMonitorSink);
VARIANT_BOOL succeeded;
m_FileMonitorSink->Start(m_FileMonitor, &succeeded);
...
apparently m_FileMonitor is null.
Any idea what's wrong?
Thanks
|
|
|
|
 |
|
 |
Hi i read ur article it's quite interesting for me
b/c i m building an ATL-ActiveX control with events which uses a MFC class. This MFC class also have message handler too.
i call this class inside a MFC worker thread class.
The problem is that there is lack of cummunication b/w ATL n MFC Worker class.
also i want to pass the message(event) from MFC class to ATL class
do u have any idea for this problem?
-----------------
Saeed A. Siddiqui
|
|
|
|
 |
|
 |
I am getting fatal error and my machine gets rebooted while linking.
Pls let mw know what could be the problem
Regards
Satish
|
|
|
|
 |
|
 |
Dear Sir,
I using Visual C, I have been problem with menu system and messagebox. How did you have solution to redefine label on menu or messagebox. Example:
- Open -> Mo
- Ok -> Dung
....
Thank you very much
Lai The Thoi
|
|
|
|
 |
|
 |
Hello out there,
I´ve got the problem that I´ve to connect the ATL Eventsink object to diffrent firing objects.
The firing objects supports diffrent Event Interfaces. The interfaces use the same names for the functions, but diffrent functions dispids.
What I want to do is to derive the ATL Eventsink object from more than one IDispEventImpl with diffrent DISPID_ s, but I run into problems with the DispEventAdvise in the start function of the ATL Eventsink object.
The ATL Eventsink object just use one event sink per time and instance.
Did anyone got expierence with that kind of problem?
Thanks
llangolas
|
|
|
|
 |
|
 |
gurus,
the sample TempMonitor project compiled and linked fine. but, i got "illegal problem" message box when running it.
when clicking on "Debug", got this message box:
Unhandle exception in TempMonitor.exe: 0xC00000005: Access Violation.
Help please!!
thanks.
|
|
|
|
 |
|
 |
Run line to line, to see in wich instruction you have the error
Best Regards
Carlos Antollini.
|
|
|
|
 |
|
 |
hi, guru carlos,
i'm a rookie.
don't know exactly how to debug line by line. could u pls brief guide me through?
also, i didn't change the original code. did u run into similar problem?
appreciate ur reply very much.
|
|
|
|
 |
|
 |
First.
For the type of error I think that the problem is that the ATL control is not registered...
You Compiled the ATL Project? In case of neg answer, you need to compile the ATL Project....
Second.
For debug you need to compile the debug version, and make a breakpoint in the first line of the button that make the test of the control.
Run with F5 and the code will stop in that line. Then you need to run with F10 for make the step to step and you will see in wich line is the error.
I can't see the sample that you are trying to run, I hope to help...
Best Regards
Carlos Antollini.
|
|
|
|
 |
|
 |
I Can see the article, You need to Debug the project,I thinked that the project was a dll with a project for test this...
Try to run the project step to step, is the only mode to Know what happen....
Best Regards...
Carlos Antollini.
|
|
|
|
 |
|
 |
Thanks, guru carlos.
i got it. stupid me, didn't run ATL project first. thought FileMonitor.tlb is enough..
appreciate ur reply veryyyy much...
have a nice one.
|
|
|
|
 |
|
 |
I'm having the same problem
I downloaded the project and tried to compile it. It compiles. However, at runtime, I got an error "Unhandled exception in TempMonitor.Exe: 0xC0000005: Access Violation."
The error happens in the OnInitDialog
specifically in step:
m_FileMonitorSink->Start(m_FileMonitor, &succeeded);
here is a snip of the code :-
m_FileMonitor.CoCreateInstance(__uuidof(FILEMONITOR::Watch), NULL, CLSCTX_INPROC_SERVER);
CComObject::CreateInstance(&m_FileMonitorSink);
VARIANT_BOOL succeeded;
m_FileMonitorSink->Start(m_FileMonitor, &succeeded);
...
apparently m_FileMonitor is null.
Any idea what's wrong?
Thanks
|
|
|
|
 |
|
 |
All,
Like many, I am adapting the example to my own dll. My dll written in VB, and is running the code that raises the event. My MFC client correctly starts the dll, and successfully advises. However, my client's event handler is not getting called. I've looked at the sink map, IDispEventsImpl, etc., and cannot find anything wrong, compared to the original example. I have precisely followed the example, too. I know one cannot get specific without code, but does the above spark a memory of what COULD be the problem?
TIA,
Dave
|
|
|
|
 |
|
 |
The article has been very helpful but unfortunately there are some problems in IDispEventImpl's handling of parameters. I was successful in getting a connection point to work in which the function had no parameters. But I received 0x80070057 on a function that had 2 parameters. This appears to be a known Microsoft bug, take a look at Microsoft Knowledge Base Articles Q288724 and Q241810. Both were last reviewed on May 4 so at the time of my writing there does not appear to be a fix from Microsoft. I've become so frustrated with this that I removed IDispEventImpl and am now trying to do AtlAdvise directly.
|
|
|
|
 |
|
 |
What a great tutorial - I've learned tons from it. However, I tried the technique on an automation server, and my m_EventManager (in place of your m_FileMonitor variable) of CTestDlg never seems to get instantiated. It is zero when I get to the CoCreateInstance. Does this ring a bell? The server works with VB, Borland C++Builder (in which the server was developed) and in HTML files. Your code is the closest I've come yet - it even compiles and links! I'm wondering if there is something different I need to do since the server is out-of-proc.
Thanks in advance
Dave
|
|
|
|
 |
|
 |
I am getting 3 errors when I compile my program.
Here are the errors
Compiling...
FileMonitor.cpp
c:\projects\filemonitor\filemonitorsink.h(48) : error C2039: 'AddString' : is not a member of 'CString'
c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
FileMonitorDlg.cpp
c:\projects\filemonitor\filemonitorsink.h(48) : error C2039: 'AddString' : is not a member of 'CString'
c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
FileMonitorSink.cpp
c:\projects\filemonitor\filemonitorsink.h(48) : error C2039: 'AddString' : is not a member of 'CString'
c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
Generating Code...
Error executing cl.exe.
FileMonitor.exe - 3 error(s), 0 warning(s)
Could anyone tell me what do I need to fix these errors?
Thanks
Thanks
|
|
|
|
 |
|
 |
Did you make changes over the original code?....
Because the original code don't have errors.
In the original code the AddString is used in a ListBox....
Cheers!!!
Carlos Antollini.
|
|
|
|
 |
|
 |
Hi Carlos,
I already took care of those errors because Listbox uses CListBox instead CString type from MFC ClassWizard. There are no errors when I compile. Thanks.
1. When I execute TempMonitor.exe and I got the application error.
The instruction at "0x00401e3b" referenced memory at "0x00000000", The memory could not be "read".
Click on OK th terminate the program.
Click on CANCEL to debug the program.
2. I noticed this program monitors only on c:\windows\temp\ directory.
What changes do I need make so it looks to different directory?
(Example: c:\Program Files\)
Can anyone help me on these issues?
|
|
|
|
 |
|
 |
I sent you an email, with an article, explaining how find what do the error....
Cheers!!!!
Carlos Antollini.
|
|
|
|
 |