I have the problem that if I use InternetDial with the mainform as Parent handle it stops the program in order to do the dial.
What I want to do is use a thread as its parent handle so that I can still access the rest of the program and it dials in the background.
I tried the following:
It gives an error saying Invalid class typecast.
Any suggestions?
What I want to do is use a thread as its parent handle so that I can still access the rest of the program and it dials in the background.
I tried the following:
Code:
InternetDial((PParent as TCommThread).Handle, PChar('MWeb'), INTERNET_AUTODIAL_FORCE_UNATTENDED, @ConnectionID, 0);
It gives an error saying Invalid class typecast.
Any suggestions?