Spotted it. You define _ISAC_Session OUTSIDE the library, so it cannot see the ADO definitions brought in by the importlib statement, as that is wihtin the library definition.
Changing the importlib to an import statement OUTSIDE the library definition will fix your error. Here's the sample code you posted, modified so it'll work. I've highlighted the import statement I added.
I'm not talking about your IDL file any more. Somewhere in one of your .cpp files, there is a #import statement that defines a reference to a COM object. THAT #import statement is the one that needs modification.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
tried like this to get this value:
view = (int) SendMessage(pshell,WM_COMMAND,ID,0);
but in ID,it is always returning same value for all views.
Plz suggest me some solution.
I explained this to you in an earlier question that you raised (exactly the same if I recall). Send Message will not set ID to anything, SendMessage is for sending messages and their associated parameters. I am also not aware of any method to get the view type from the dialog when it closes.