Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Type from Weird External COM Object ?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Create Type from Weird External COM Object ?
Miscellaneous
Thread ID:
00690044
Message ID:
00690044
Views:
56
I am trying to create a MSMQ Trigger completely through code. The problem is that I don't know how to type something that doesn't have an interpretable(sp) VFP data type. I think.


Try this in VFP7/SP1:
  Local oTrigSet as MSMQTriggerObjects.MSMQTriggerSet
  oTrigSet = CreateObject("MSMQTriggerObjects.MSMQTriggerSet")
  oTrigSet.Init(%your-computername-here%)
  oTrigSet.Refresh()
  
  Local 	;
   iCnt as Integer , ;
   psTriggerName as String , ;
   psQueueName as String , ;
   psSystemQueue as String , ;
   pSystemQueue as .Null. , ;      && I think the problem is here
   pINumberOfRules as Number , ;
   pIEnabledStatus as Number , ;
   pISerialized as Number
  
  arIt = oTrigSet.GetTriggerDetailsByID( ;
   "fb1e644d-6ea0-40ce-aa29-ada8b0868921" ;  && This exists, I dug it from the Registry
   , @psTriggerName ; 
   , @psQueueName ; 
   , @pSystemQueue ;
   , @pINumberOfRules ; 
   , @pIEnabledStatus ;
   , @PISerialized ;
  )


I get an error "Type mismatch" on the GetTriggerDetailsByID method, I think it is because I didn't type pSystemQueue correctly. IntelliSense says the type of pSystemQueue should be "SystemQueueIdentifier", but that is not a string/int/null/etc. The Object Browser is also ambiguous on SystemQueueIdentifier - I see it listed as a constant, but that's it.

How do I define this "weird" type?

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform