Re: Javascript COM and CF
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 = 0x8002; > oInParam.hDefKey = HKLM; HKLM is usually short for the registry key HKEY_LOCAL_MACHINE. > CF Version. > > > > > 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
Re: Javascript COM and CF
Turn the hex value to a number... but why use com? CF has cfregistry tags. On 6/28/07, D F <[EMAIL PROTECTED]> wrote: > > I figured it was a registry key as well I guess I'm not sure how one > would store this data without it being considered a string by CF. > > > ~| 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:282452 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Javascript COM and CF
I figured it was a registry key as well I guess I'm not sure how one would store this data without it being considered a string by CF. ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282451 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Javascript COM and CF
What are you trying to do? HKLM sounds to me like a registery key? The other thing is thet 0x802 is a hex value. On 6/28/07, D F <[EMAIL PROTECTED]> 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 = 0x8002; > oInParam.hDefKey = HKLM; > > CF Version. > > > > > 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. > > any ideas? > > > > > > > ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282450 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4