Asynchronous Interface Implementations
Note the following findings about asynchronous interfaces :
1. An interface that is marked to be asynchronous must be derived from IUnknown. It cannot be derived from IDispatch.
2. A C++/ATL implementation which has #import'ed the originating IDL may experience compilation errors e.g. "MIDL2320 : conflicting optimization requirements, cannot optimize : [Procedure '...']" :
2.1 The cause of the problem has to do with the fact that the asynchronous interface most likely was declared outside of the "library" statement in its original IDL file.
2.2 This indicates to the compiler (compiling the current implementation) that the asynchronous interface will not be using Type Library marshaling (i.e. standard marshaling that uses the Type Library for information instead of any proxy/stub DLL).
2.3 The marshaling for the asynchronous interface will be done via a proxy/stub DLL.
2.4 We currently do not why the compilation error is issued. However, we do have a soluton : place an "importlib" statement inside the "library" statement of the current implementation. It must import the type library of the original IDL file.
2.5 This will avert the compilation problem.
3. A good news about asynchronous interfaces is that it can be implemented in VB. However, the VB implementation must be ActiveX EXE based.
_______________________
Tip Courtesy :- Lim Bio Liong
How to check whether a directory is accessible or not?
Stuart Dootson quoted :-
Use _stat[^]. It will fail if you can't access the directory.
Of course, it fails if the path you give it a) ends in a \, or b) is a UNC path - but I'm sure you can work around those issues.
AT Command for Nokia!
In continuation with previous post, if you want to communicate with Nokia, this link will be help ful. Thanks Sandip for providing this link.
AT Command for Mobile!
If you like hardware programming and interaction with Mobile, this link provide you set of AT command to communicate from Mobile on COM PORT.