Well, actually this is an error resulting from the code snippet you gave me
a few days back ;)
Here's what I edited it to.
<cfscript>
Encoder1 = CreateObject("COM", "ASF.RealTimeEncoder");
Encoder2 = CreateObject("COM", "ASF.RealTimeEncoder");
Encoder1.LoadASD("C:\LowFiConfig.wme");
Encoder2.LoadASD("C:\HiFiConfig.wme");
Encoder1.InputSourceFile = "#URL.file#";
Encoder2.InputSourceFile = "#URL.file#";
Encoder1.Start();
Encoder2.Start();
Encoder1.RecordFileName = "z:\hifi_audio\#Variables.TempFileName2#.asf";
Encoder2.RecordFileName = "z:\lowfi_audio\#Variables.TempFileName2#.asf";
Encoder1.RecordStart();
Encoder2.RecordStart();
Encoder1.RecordStop();
Encoder2.RecordStop();
Encoder1.Stop();
Encoder2.Stop();
</cfscript>
I'm not sure why the object wouldn't have been registered when I installed
the SDK, but I've seen it happen before. I'll give regsvr32 a try.
Todd Ashworth
----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 10:53 AM
Subject: RE: Finding the Class ID for a component
| > I'm futzing around with a COM object and I keep getting this
| > error:
| >
| > | Error trying to create object specified in the tag.
| > | COM error 0x800401F3. Invalid class string
| >
| > Now, I assume this is telling me I'm not giving it the CLSID
| > that it needs. If that is the case, does anyone know how I can
| > look up the class ID of the component I am trying to use? I've
| > looked all over Micorosft's site, but can't find anything and
| > Allaire's forum keeps timing out.
|
| The likely cause of the problem is that you haven't registered your COM
| object on your system. You have to do this before you can use it. To
| register the component, find a copy of REGSVR32.EXE on your system, and
run
| it from the command line:
|
| regsvr32 myobj.dll
|
| Generally, you use a "friendly" name rather than a CLSID to reference most
| COM objects. You can find CLSID values and other info about registered COM
| objects by using the OLE/COM Object Viewer (OLEVIEW.EXE). You can get this
| from somewhere on the MS site, I think, and with Visual Studio.
|
| > Also, to make this CF related, does anyone know the syntax to
| > pass the CLSID when using cfscript to call the object instead
| > of <cfobject>?
|
| If I understand correctly, you just want to know how to instantiate
objects
| within CFSCRIPT instead of using CFOBJECT. You can do this with the
| CreateObject function, which I think was introduced in CF 4.5.x:
|
| <cfscript>
| myobj = CreateObject("COM", "MyObj.Name");
| </cfscript>
|
| Dave Watts, CTO, Fig Leaf Software
| http://www.figleaf.com/
| voice: (202) 797-5496
| fax: (202) 797-5444
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists