I am trying to register a Type Library (.tlb) on Windows 7 operating system.
I am having around 40 Type Libraries. Few type libraries are not getting to register. I have used command prompt for registering them using 'Run as an Administrator' BUT still it fails to registers. I am an 'Administrator' of the machine with UAC(User Account Control) disabled.
Those type libraries who succeeds display
"Registration of MyTypeLib.tlb successful"
But those who fails display
"RegisterTypeLib of MyOtherTypeLib.tlb failed : 8002801c". I have also used process monitoring tool, but not able to find any break through.
Did you check the Access permissions? Is the file open in another process? Which file are you trying to map? Is it a real file, or do you use the paging backing store? If so, does the system have a backing store?
It is working for Administrative User, But failed in for standard user with Administrative Privilages.
These is observed only on Windows 7 Version and Vista for 2003 and Windows XP working for standard user with administrative previlages.
That's a different story than what you told us in the original question.
I will assume that it a real file, since you haven't answered any of the questions I asked you
Check the file permissions on disk, you will probably discover that it is limited to the administrators group.
You can either change the permissions, or run your program with elevation.
I am trying to fire event from a ATL dll file, callable from client.
To fire event I need to use class template.
I am using extern "C" before the function name in ATL dll file, to export this function and to make it visible at client.
In main thread you listen for client connections. Once you got a client connection, you can create a corresponding socket and thread.Then all the communication can be handled in that thread using that socket.
Of course, if there are too many client to deal with, this is not a good way. You can use iocp instead.