Hello,
There are 3 applications as given below
1. CRM Web application
2. .Net Asset Maintenance ( C# based) Software
3. Inventory Control applicaton developed in VB6.0
that I am integrating with AgentDesktop
I have written three adapters for all the above so that when a new issue is created in CRM web app , it send the "Problem/Issue description" to other apps. They in turn will use the data and manipulate it.
The adapter for .Net application works fine. But the VB6.0 adapter is having issues. Using spy++, I found out the ControlID (Which is 00000008). Following is the code to populate the textbox in VB app with the data it reccives
public override bool DoAction(Action action, ref string data)
{
if (action.Name == "CreateTicket")
{
IntPtr txtDesc;
txtDesc = Win32API.FindWindowByID(this.process.MainWindowHandle, 8);
Win32API.SetWindowTextAny(txtDesc, data);
}
return true;
}
The above piece of code doesn't work at all.When I debugged I found Win32API.FindWindowByID function returns 0 (Zero). Any idea why and how to resolve the same
Is it because it is a VB App. Thanks in advance