Hi!
COM object usually works in its own memory space, and it is a separate module. For OS sequrity reasons COM object cannot access and know the variables from the main application.
You can only pass a value of the public variable as a parameter to COM object. If you have a lot of values in public variables, put them all into the array and pass an array to COM object.
HTH.
>Hi,
>i have a public variable in my application. I try to access it from my COM DLL. However, it return error.
>
>How to solve it?
>
>Thank you
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.