D F wrote: > Hi there. I'm currently working on converting a JS script into CF. Uses a lot > of COM. Anywhoo, I'm having some problems with the following line of code. > > JS Version. > > HKLM = 0x80000002; > oInParam.hDefKey = HKLM;
HKLM is usually short for the registry key HKEY_LOCAL_MACHINE. > CF Version. > > <cfset HKLM = '0x80000002'> > <cfset local.oInParam.hDefKey = HKLM > > > I think that the problem is that it doesn't like the fact that HKLM is a > string in the CF version. And CF wont allow me ( for obvious reasons ) to > store this as number... nor will it allow me to cast it as an int. It is hex. Remove the 0x and FormatBaseN() the resulting string to get an integer. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282460 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

