To fix this issue It can be because of (lack of) administrator permissions required for running batches from cmd.exe on windows server 2003. Method 1 Grant the cmd.exe program Read and Execute permissions for the user account that the batch job runs under. To do this, follow these steps:
Issue on adding ActiveX Controls in MFC CPropertySheet (Windows 7 64 bit and Windows 2008 Server)
should help you out Try to create VB Controls with "Apartment Threaded" threading model. You can choose Threading model in Project --> Properties --> General Tab --> Threading model --> "Apartment Threaded".