This problem is driving me nuts so if anyone can help resolve it i would really appreciate it. It is a unique situation in dealing with different user accounts.
I have a win32 project in vs 2005
I create a thread that calls a dialogbox from resource when an event happens.
void Thread{
if event() {
DialogBox(hinst, MAKEINTRESOURCE(DLG_DELETEITEM), hwnd, DlgFunc)
}
}
It works just fine initially.
I then switch user accounts on windows xp/vista (not logging out) and log into a second account and create a second instance of the same application....which is creating another instance of the thread
However, if I switch back to first account from second account (again not logging out), the dialogbox is not shown in the currently open windows account when the event happens. It however pops up on the SECOND account.
Anyone have any ideas? It seems the thread is not exclusive to each account and only has a handle to the resource most recently created.
thanks in advance