Re: Creating COM object - troubleshooting

2011-04-20 Thread Russ Michaels

or the many others who have open source projects at www.riaforge.org



On Wed, Apr 20, 2011 at 11:19 PM, Maureen  wrote:

>
> Only that which is not based on code written by Ben Forta or Ray Camden.
>
> On Wed, Apr 20, 2011 at 2:43 PM, Bobby Hartsfield 
> wrote:
> >
> > Isn't all code in existence based off of code originally written by Ben
> > Nadel?
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343882
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-20 Thread Maureen

Only that which is not based on code written by Ben Forta or Ray Camden.

On Wed, Apr 20, 2011 at 2:43 PM, Bobby Hartsfield  wrote:
>
> Isn't all code in existence based off of code originally written by Ben
> Nadel?

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343877
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-20 Thread Bobby Hartsfield

Isn't all code in existence based off of code originally written by Ben
Nadel?

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Tuesday, April 19, 2011 11:26 AM
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


Here are the cfcs we developed based off of code originally developed by ben
Nadel...some of the modification ideas were based off another site as well
and I am drawing a complete blank, at the moment, who that blogger was...so
if you remember the convo we had, please pop up ;-)

Banner.cfc has some of the functions in imageUtils...tweaked a bit so as to
work abit more efficiently.  Some of the simpler functions can be replicated
using the cfimage tag dir

RE: Creating COM object - troubleshooting

2011-04-19 Thread Eric Roberts

Here are the cfcs we developed based off of code originally developed by ben
Nadel...some of the modification ideas were based off another site as well
and I am drawing a complete blank, at the moment, who that blogger was...so
if you remember the convo we had, please pop up ;-)

Banner.cfc has some of the functions in imageUtils...tweaked a bit so as to
work abit more efficiently.  Some of the simpler functions can be replicated
using the cfimage tag directly.










































































 





   



























































 


























 









 
 





















 










 

 






 








 







 






 







  





 
  























 




attr.size=Javacast("string", text_size);











   

Re: Creating COM object - troubleshooting

2011-04-19 Thread Dave Watts

> I'm showing my newbie-ness here but would Java offer a way out of this 
> problem? The vendor offers JAva examples
> (http://www.acasystems.com/en/web-thumb-activex/faq-convert-html-to-image-in-java.htm)
>  and I'm wondering if it
> would be (easily?) possible to compile a JAR that exposes the relevant 
> functions of the DLL?

You're not really showing any newbie-ness here, most CF programmers
never have to worry about this kind of stuff.

My guess is that this could work if you could compile Snap.cpp with a
64-bit compiler. However, that basically moves your problem from Java
to C++. I don't know enough about C++ on Windows to definitively
answer that question.

http://www.dnjonline.com/article.aspx?id=jun07_access3264

I don't think that you can invoke a 32-bit native program from a
64-bit JVM JNI call.

Honestly, my final recommendation would be to look for an alternative
to this library that's written in Java.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343848
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-19 Thread Stefan Richter

Thanks,
It's not totally critical - right now I am using PHP for this one task. Not 
ideal but it works. Since I am working on bundling all the separate remote 
files for this Flex app into one CFC it would have been neat to get this one in 
there as well.

Regards,

Stefan



On 19 Apr 2011, at 11:42, Russ Michaels wrote:

> 
> if it is critical for you to use this COM object, then here is one
> suggestion.
> Install CF 32 bit on the server as well, and just have one folder on your
> server set to use the 32bit connectors just so you can use your COM object.
> 
> On Tue, Apr 19, 2011 at 9:06 AM, Stefan Richter 
> wrote:
> 
>> 
>> I'm showing my newbie-ness here but would Java offer a way out of this
>> problem? The vendor offers JAva examples (
>> http://www.acasystems.com/en/web-thumb-activex/faq-convert-html-to-image-in-java.htm)
>> and I'm wondering if it would be (easily?) possible to compile a JAR that
>> exposes the relevant functions of the DLL?
>> 
>> Regards,
>> 
>> Stefan
>> 
>> 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-19 Thread Russ Michaels

if it is critical for you to use this COM object, then here is one
suggestion.
Install CF 32 bit on the server as well, and just have one folder on your
server set to use the 32bit connectors just so you can use your COM object.

On Tue, Apr 19, 2011 at 9:06 AM, Stefan Richter wrote:

>
> I'm showing my newbie-ness here but would Java offer a way out of this
> problem? The vendor offers JAva examples (
> http://www.acasystems.com/en/web-thumb-activex/faq-convert-html-to-image-in-java.htm)
> and I'm wondering if it would be (easily?) possible to compile a JAR that
> exposes the relevant functions of the DLL?
>
> Regards,
>
> Stefan
>
>
>
>
>
> On 18 Apr 2011, at 23:23, Dave Watts wrote:
>
> >
> >> Again it is has something to do with how MS is depreciating COM in favor
> of .NET.
> >
> > Well, this is kind of true, but not entirely true. CF uses a
> > third-party Java-COM library from JIntegra. They don't make a 64-bit
> > version of their library. There's nothing (that I know of) stopping
> > them from doing that right now, but you're correct that COM is
> > basically a dead-end - so it makes financial sense for JIntegra not to
> > pursue this.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > http://training.figleaf.com/
> >
> > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> > GSA Schedule, and provides the highest caliber vendor-authorized
> > instruction at our training centers, online, or onsite.
> >
> >
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343839
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-19 Thread Stefan Richter

I'm showing my newbie-ness here but would Java offer a way out of this problem? 
The vendor offers JAva examples 
(http://www.acasystems.com/en/web-thumb-activex/faq-convert-html-to-image-in-java.htm)
 and I'm wondering if it would be (easily?) possible to compile a JAR that 
exposes the relevant functions of the DLL?

Regards,

Stefan





On 18 Apr 2011, at 23:23, Dave Watts wrote:

> 
>> Again it is has something to do with how MS is depreciating COM in favor of 
>> .NET.
> 
> Well, this is kind of true, but not entirely true. CF uses a
> third-party Java-COM library from JIntegra. They don't make a 64-bit
> version of their library. There's nothing (that I know of) stopping
> them from doing that right now, but you're correct that COM is
> basically a dead-end - so it makes financial sense for JIntegra not to
> pursue this.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343838
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-19 Thread Stefan Richter

You are right Eric,
the 64bit DLL did not work either. 

Regards,

Stefan




On 18 Apr 2011, at 22:07, Eric Roberts wrote:

> 
> We tried that route Stephan...even a 64 bit dll never worked.  You can use a
> .NET object or a JAVA object, but no COM.  Again it is has something to do
> with how MS is depreciating COM in favor of .NET. 
> 
> -Original Message-
> From: Stefan Richter [mailto:ste...@flashcomguru.com] 
> Sent: Monday, April 18, 2011 14:12 
> To: cf-talk
> Subject: Re: Creating COM object - troubleshooting
> 
> 
> Thanks,
> Sounds like the best way forward is to ask the vendor for a 64bit dll... 
> 
> Thanks again, at least I can stop trying now :-)
> 
> Cheers 
> 
> Stefan
> 
> 
> 
> 
> On 18 Apr 2011, at 18:48, Dave Watts wrote:
> 
>> 
>>> I also tried using a tag based syntax specifying the DLL directly:
>>> >> assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX 
>>> Control\acawebthumb.dll">
>>> 
>>> Error:
>>> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
>>> The assembly that contains the class must be provided to the assembly
> attribute.
>> 
>> This is a 32-bit .NET assembly. You can tell because it's installed in 
>> "Program Files (x86)" rather than just "Program Files". You can only 
>> use this from a 32-bit version of CF. Fortunately, you can easily 
>> install 32-bit CF on a 64-bit Windows machine, but you'll have to 
>> configure the IIS application pool to also be 32-bit. Unfortunately, 
>> you lose all the 64-bit advantages when you do this, of course.
>> 
>> Dave Watts, CTO, Fig Leaf Software
>> http://www.figleaf.com/
>> http://training.figleaf.com/
> 
> 
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343837
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Dave Watts

> Again it is has something to do with how MS is depreciating COM in favor of 
> .NET.

Well, this is kind of true, but not entirely true. CF uses a
third-party Java-COM library from JIntegra. They don't make a 64-bit
version of their library. There's nothing (that I know of) stopping
them from doing that right now, but you're correct that COM is
basically a dead-end - so it makes financial sense for JIntegra not to
pursue this.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343831
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Dave Watts

> We tried several different methods Dave, but COM objects are just not
> compatible with CF8 or 9 64 bit.  Either you need another solution or go
> back to using the 32 bit.

Yes, you're absolutely correct that 64-bit CF can't instantiate COM objects.

But at the point you're using RUNDLL32.EXE to run a DLL function, it's
no longer going through COM. And it wouldn't matter if it were at that
point, as long as RUNDLL32.EXE can invoke the function in question.
Essentially, CF wouldn't be using the DLL at all - it would be opening
a shell to a program that could successfully run it.

But this is pretty close to irrelevant - there's no guarantee that a
COM object exposes useful functions for RUNDLL32.EXE to invoke.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343830
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Eric Roberts

They must have done something new since last fall then.  We ended up
changing all of our image manipulation to java calls in CFC's.

Eric

-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, April 18, 2011 16:14 
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


Eric,

Dave was right ... we replaced it with a 64bit compiled version of the CFX
tag... so it IS 64bit but it is NOT com.

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com]
Sent: Monday, April 18, 2011 4:01 PM
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


ImageCR will not work...you will have to replace it with the cfimage tag or
take a look at a thread we had here last fall in regards (September or
October I think) where we were discussing some issues with some image
manipulation java code that Ben Nadel wrote on his blog.  I had to modify it
to get it to do what I needed and posted the code on the list.  If you can't
find it, email me off list and I can see if I still have the code.

-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, April 18, 2011 12:49 
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


Eh?  We are using 64bit imageCR3 on a customer server... which I believe IS
com no?

-Mark


-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com]
Sent: Monday, April 18, 2011 12:46 PM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> First guess would be 64bit vs. 32 bit. Have you matched the correct
> "version" of the COM?

There's no COM at all if you're using 64-bit CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.









~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343829
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Eric Roberts

We tried that route Stephan...even a 64 bit dll never worked.  You can use a
.NET object or a JAVA object, but no COM.  Again it is has something to do
with how MS is depreciating COM in favor of .NET. 

-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: Monday, April 18, 2011 14:12 
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


Thanks,
Sounds like the best way forward is to ask the vendor for a 64bit dll... 

Thanks again, at least I can stop trying now :-)

Cheers 

Stefan




On 18 Apr 2011, at 18:48, Dave Watts wrote:

> 
>> I also tried using a tag based syntax specifying the DLL directly:
>> > assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX 
>> Control\acawebthumb.dll">
>> 
>> Error:
>> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
>> The assembly that contains the class must be provided to the assembly
attribute.
> 
> This is a 32-bit .NET assembly. You can tell because it's installed in 
> "Program Files (x86)" rather than just "Program Files". You can only 
> use this from a 32-bit version of CF. Fortunately, you can easily 
> install 32-bit CF on a 64-bit Windows machine, but you'll have to 
> configure the IIS application pool to also be 32-bit. Unfortunately, 
> you lose all the 64-bit advantages when you do this, of course.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343828
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Eric Roberts

We tried several different methods Dave, but COM objects are just not
compatible with CF8 or 9 64 bit.  Either you need another solution or go
back to using the 32 bit.

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Monday, April 18, 2011 13:46 
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> Is there some way you could call CFEXECUTE and call a BAT file or 
> something like that to run the DLL? Would this be a workaround for 
> calling a COM object from CF9 or a 32 bit object from CF 64 bit? Or is 
> it not possible or advisable to do this either?

Depending on how the DLL is written, you may be able to invoke functions
through RUNDLL32.EXE from the command line. Or you may not.

But frankly, I would just try to avoid using COM in this environment
entirely. It's not going to scale well.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343827
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

Eric,

Dave was right ... we replaced it with a 64bit compiled version of the CFX
tag... so it IS 64bit but it is NOT com.

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Monday, April 18, 2011 4:01 PM
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


ImageCR will not work...you will have to replace it with the cfimage tag or
take a look at a thread we had here last fall in regards (September or
October I think) where we were discussing some issues with some image
manipulation java code that Ben Nadel wrote on his blog.  I had to modify it
to get it to do what I needed and posted the code on the list.  If you can't
find it, email me off list and I can see if I still have the code.

-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, April 18, 2011 12:49 
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


Eh?  We are using 64bit imageCR3 on a customer server... which I believe IS
com no?

-Mark


-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com]
Sent: Monday, April 18, 2011 12:46 PM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> First guess would be 64bit vs. 32 bit. Have you matched the correct
> "version" of the COM?

There's no COM at all if you're using 64-bit CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.







~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Eric Roberts

As long as it is a COM object, it will not work.

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Monday, April 18, 2011 12:55 
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> Eh?  We are using 64bit imageCR3 on a customer server... which I 
> believe IS com no?

No, it's a CFX DLL. While I haven't used any 64-bit CFX libraries, I don't
see why they wouldn't work. But 64-bit CF doesn't come with the JIntegra
functionality needed to interact with COM objects. I don't think JIntegra
has a 64-bit library for COM. COM has been DOA for a long time, so I don't
think there's been much demand for it in the 64-bit world - existing COM
stuff is generally legacy 32-bit.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343825
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Eric Roberts

ImageCR will not work...you will have to replace it with the cfimage tag or
take a look at a thread we had here last fall in regards (September or
October I think) where we were discussing some issues with some image
manipulation java code that Ben Nadel wrote on his blog.  I had to modify it
to get it to do what I needed and posted the code on the list.  If you can't
find it, email me off list and I can see if I still have the code.

-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, April 18, 2011 12:49 
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


Eh?  We are using 64bit imageCR3 on a customer server... which I believe IS
com no?

-Mark


-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com]
Sent: Monday, April 18, 2011 12:46 PM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> First guess would be 64bit vs. 32 bit. Have you matched the correct
> "version" of the COM?

There's no COM at all if you're using 64-bit CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343824
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Eric Roberts

If I missed someone answering this, forgive me, but in CF8 and 9 64-bit, COM
Objects will not work...no work around. It has to do with how MS is
depreciating com objects and is out of CF's control.  I had an issue with
this about a year ago when a client I was working for migrated from 32 bit
to 64 bit.

Eric

-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, April 18, 2011 12:00 
To: cf-talk
Subject: RE: Creating COM object - troubleshooting


Stefan,

I suspect PHP is 32bit yes... but someone else will have to chime in
definitely. It's also possible that PHP uses a marshaling layer like the
.NET integration service (which runs on a TCP listening port) that makes it
a non-issue. But CF's implementation of COM has always been JNI - which is a
native Java thingy.

FYI - you should move away from COM if at all possible. It has been
deprecated for a long long time by now.

-Mark

-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com]
Sent: Monday, April 18, 2011 11:19 AM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


Thank you.

Is this a restriction via CF then or why is it so easy to do it in PHP? Is
it because CF will run in 64bit mode and PHP is not?

Regards,

Stefan








~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343823
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Stefan Richter

Thanks,
Sounds like the best way forward is to ask the vendor for a 64bit dll... 

Thanks again, at least I can stop trying now :-)

Cheers 

Stefan




On 18 Apr 2011, at 18:48, Dave Watts wrote:

> 
>> I also tried using a tag based syntax specifying the DLL directly:
>> > assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb
>> ActiveX Control\acawebthumb.dll">
>> 
>> Error:
>> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
>> The assembly that contains the class must be provided to the assembly 
>> attribute.
> 
> This is a 32-bit .NET assembly. You can tell because it's installed in
> "Program Files (x86)" rather than just "Program Files". You can only
> use this from a 32-bit version of CF. Fortunately, you can easily
> install 32-bit CF on a 64-bit Windows machine, but you'll have to
> configure the IIS application pool to also be 32-bit. Unfortunately,
> you lose all the 64-bit advantages when you do this, of course.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343822
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Dave Watts

> Is there some way you could call CFEXECUTE and call a BAT file or something
> like that to run the DLL? Would this be a workaround for calling a COM
> object from CF9 or a 32 bit object from CF 64 bit? Or is it not possible or
> advisable to do this either?

Depending on how the DLL is written, you may be able to invoke
functions through RUNDLL32.EXE from the command line. Or you may not.

But frankly, I would just try to avoid using COM in this environment
entirely. It's not going to scale well.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343821
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

Ah you are correct. My bad.

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Monday, April 18, 2011 12:55 PM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> Eh?  We are using 64bit imageCR3 on a customer server... which I believe
IS
> com no?

No, it's a CFX DLL. While I haven't used any 64-bit CFX libraries, I
don't see why they wouldn't work. But 64-bit CF doesn't come with the
JIntegra functionality needed to interact with COM objects. I don't
think JIntegra has a 64-bit library for COM. COM has been DOA for a
long time, so I don't think there's been much demand for it in the
64-bit world - existing COM stuff is generally legacy 32-bit.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343820
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Brook Davies

Is there some way you could call CFEXECUTE and call a BAT file or something
like that to run the DLL? Would this be a workaround for calling a COM
object from CF9 or a 32 bit object from CF 64 bit? Or is it not possible or
advisable to do this either?

Brook

-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: April-18-11 7:45 AM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


I should also add that the PHP example works fine on the same box:
$t_xMaker = new COM("ACAWebThumb.ThumbMaker")

Also on the same server I am able to use other (.NET) DDLs, for example in
this way:
 

Regards,

Stefan







> Hi all,
> I'm trying to use a third party DLL called ACA Webthumb http://www.
> acasystems.com/en/web-thumb-activex/
> I've installed this on a Windows 2008 server running CF 9.0.1
> 
> I'm having issue instantiating the library in CF. I'm using the 
> supplied sample file that came with ACA. Here's the problematic line 
> from it:
> 
> WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", 
> "local");
> 
> This results in error:
> An exception occurred when instantiating a COM object.
> The cause of this exception was that: java.lang.RuntimeException: Can 
> not use native code: Initialisation failed.
> 
> 
> I also tried using a tag based syntax specifying the DLL directly:
>  assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX 
> Control\acawebthumb.dll">
> 
> Error:
> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
> 
> The assembly that contains the class must be provided to the assembly 
> attribute.
> 
> 
> Does anyone have any tips?
> 
> Best wishes,
> 
> Stefan
> 
> 
> 
> 
> 
> 
> 




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343819
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Dave Watts

> Eh?  We are using 64bit imageCR3 on a customer server... which I believe IS
> com no?

No, it's a CFX DLL. While I haven't used any 64-bit CFX libraries, I
don't see why they wouldn't work. But 64-bit CF doesn't come with the
JIntegra functionality needed to interact with COM objects. I don't
think JIntegra has a 64-bit library for COM. COM has been DOA for a
long time, so I don't think there's been much demand for it in the
64-bit world - existing COM stuff is generally legacy 32-bit.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343818
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

Eh?  We are using 64bit imageCR3 on a customer server... which I believe IS
com no?

-Mark


-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Monday, April 18, 2011 12:46 PM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


> First guess would be 64bit vs. 32 bit. Have you matched the correct
> "version" of the COM?

There's no COM at all if you're using 64-bit CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343817
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Dave Watts

> I also tried using a tag based syntax specifying the DLL directly:
>  assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb
> ActiveX Control\acawebthumb.dll">
>
> Error:
> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
> The assembly that contains the class must be provided to the assembly 
> attribute.

This is a 32-bit .NET assembly. You can tell because it's installed in
"Program Files (x86)" rather than just "Program Files". You can only
use this from a 32-bit version of CF. Fortunately, you can easily
install 32-bit CF on a 64-bit Windows machine, but you'll have to
configure the IIS application pool to also be 32-bit. Unfortunately,
you lose all the 64-bit advantages when you do this, of course.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343816
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Dave Watts

> First guess would be 64bit vs. 32 bit. Have you matched the correct
> "version" of the COM?

There's no COM at all if you're using 64-bit CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343815
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

Stefan,

I suspect PHP is 32bit yes... but someone else will have to chime in
definitely. It's also possible that PHP uses a marshaling layer like the
.NET integration service (which runs on a TCP listening port) that makes it
a non-issue. But CF's implementation of COM has always been JNI - which is a
native Java thingy.

FYI - you should move away from COM if at all possible. It has been
deprecated for a long long time by now.

-Mark

-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: Monday, April 18, 2011 11:19 AM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


Thank you.

Is this a restriction via CF then or why is it so easy to do it in PHP? Is
it because CF will run in 64bit mode and PHP is not?

Regards,

Stefan






~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343813
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Stefan Richter

Thank you.

Is this a restriction via CF then or why is it so easy to do it in PHP? Is it 
because CF will run in 64bit mode and PHP is not?

Regards,

Stefan




On 18 Apr 2011, at 16:47, Mark A. Kruger wrote:

> 
> Stefan,
> 
> If you are running 64bit you will need a 64bit version of the COM. I know of
> no way around that. I would contact the vendor. If it's .NET you can use it
> through the .NET integration services (either 32 or 64) but there are a good
> number of nuances to that as well.
> 
> -Mark
> 
> 
> Mark A. Kruger, MCSE, CFG
> (402) 408-3733 ext 105
> www.cfwebtools.com
> www.coldfusionmuse.com
> www.necfug.com
> 
> -Original Message-
> From: Stefan Richter [mailto:ste...@flashcomguru.com] 
> Sent: Monday, April 18, 2011 10:41 AM
> To: cf-talk
> Subject: Re: Creating COM object - troubleshooting
> 
> 
> Thanks Mark.
> 
> 32/64bit: there seems to be only one DLL in the program's directory, and
> it's in x86 so I guess it's 32bit only. The server is a 64bit machine. Do I
> somehow need to 'tell' CF that we are looking at a 32bit DLL here?
> 
> I take your point on .NET and COM, I was just goofing around to see if it
> would work :-) I agree that it's likely to be a COM. 
> 
> As for 'is it registered': how can I tell? I'm not that clued up on these
> things, but I did use OLE Viewer and saw 'ACAWebThumb 1.0 Type Library'
> under 'Type Libraries'. Is that confirmation? 
> Does the fact that the straight forward PHP call works tell us anything?
> 
> Cheers 
> 
> Stefan
> 
> 
> 
> On 18 Apr 2011, at 16:18, Mark A. Kruger wrote:
> 
>> 
>> FYI - .NET and COM are very (very very) different - I would not expect
> this
>> DLL to work both ways. It's either a COM or an assembly. I would suspect
>> it's a COM (the path "activeX control" gives it away). Also - you are sure
>> the COM is registered?
>> 
>> -mark
>> 
>> 
>> Mark A. Kruger, MCSE, CFG
>> (402) 408-3733 ext 105
>> www.cfwebtools.com
>> www.coldfusionmuse.com
>> www.necfug.com
>> 
>> 
>> -Original Message-
>> From: Stefan Richter [mailto:ste...@flashcomguru.com] 
>> Sent: Monday, April 18, 2011 9:38 AM
>> To: cf-talk
>> Subject: Creating COM object - troubleshooting
>> 
>> 
>> Hi all,
>> I'm trying to use a third party DLL called ACA Webthumb
>> http://www.acasystems.com/en/web-thumb-activex/
>> I've installed this on a Windows 2008 server running CF 9.0.1
>> 
>> I'm having issue instantiating the library in CF. I'm using the supplied
>> sample file that came with ACA. Here's the problematic line from it:
>> 
>> WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local");
>> 
>> This results in error:
>> An exception occurred when instantiating a COM object.
>> The cause of this exception was that: java.lang.RuntimeException: Can not
>> use native code: Initialisation failed. 
>> 
>> 
>> I also tried using a tag based syntax specifying the DLL directly:
>> > assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX
>> Control\acawebthumb.dll">
>> 
>> Error:
>> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
>> The assembly that contains the class must be provided to the assembly
>> attribute. 
>> 
>> 
>> Does anyone have any tips?
>> 
>> Best wishes,
>> 
>> Stefan
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343812
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

Stefan,

If you are running 64bit you will need a 64bit version of the COM. I know of
no way around that. I would contact the vendor. If it's .NET you can use it
through the .NET integration services (either 32 or 64) but there are a good
number of nuances to that as well.

-Mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: Monday, April 18, 2011 10:41 AM
To: cf-talk
Subject: Re: Creating COM object - troubleshooting


Thanks Mark.

32/64bit: there seems to be only one DLL in the program's directory, and
it's in x86 so I guess it's 32bit only. The server is a 64bit machine. Do I
somehow need to 'tell' CF that we are looking at a 32bit DLL here?

I take your point on .NET and COM, I was just goofing around to see if it
would work :-) I agree that it's likely to be a COM. 

As for 'is it registered': how can I tell? I'm not that clued up on these
things, but I did use OLE Viewer and saw 'ACAWebThumb 1.0 Type Library'
under 'Type Libraries'. Is that confirmation? 
Does the fact that the straight forward PHP call works tell us anything?

Cheers 

Stefan



On 18 Apr 2011, at 16:18, Mark A. Kruger wrote:

> 
> FYI - .NET and COM are very (very very) different - I would not expect
this
> DLL to work both ways. It's either a COM or an assembly. I would suspect
> it's a COM (the path "activeX control" gives it away). Also - you are sure
> the COM is registered?
> 
> -mark
> 
> 
> Mark A. Kruger, MCSE, CFG
> (402) 408-3733 ext 105
> www.cfwebtools.com
> www.coldfusionmuse.com
> www.necfug.com
> 
> 
> -Original Message-
> From: Stefan Richter [mailto:ste...@flashcomguru.com] 
> Sent: Monday, April 18, 2011 9:38 AM
> To: cf-talk
> Subject: Creating COM object - troubleshooting
> 
> 
> Hi all,
> I'm trying to use a third party DLL called ACA Webthumb
> http://www.acasystems.com/en/web-thumb-activex/
> I've installed this on a Windows 2008 server running CF 9.0.1
> 
> I'm having issue instantiating the library in CF. I'm using the supplied
> sample file that came with ACA. Here's the problematic line from it:
> 
> WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local");
> 
> This results in error:
> An exception occurred when instantiating a COM object.
> The cause of this exception was that: java.lang.RuntimeException: Can not
> use native code: Initialisation failed. 
> 
> 
> I also tried using a tag based syntax specifying the DLL directly:
>  assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX
> Control\acawebthumb.dll">
> 
> Error:
> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
> The assembly that contains the class must be provided to the assembly
> attribute. 
> 
> 
> Does anyone have any tips?
> 
> Best wishes,
> 
> Stefan
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343811
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Stefan Richter

Thanks Mark.

32/64bit: there seems to be only one DLL in the program's directory, and it's 
in x86 so I guess it's 32bit only. The server is a 64bit machine. Do I somehow 
need to 'tell' CF that we are looking at a 32bit DLL here?

I take your point on .NET and COM, I was just goofing around to see if it would 
work :-) I agree that it's likely to be a COM. 

As for 'is it registered': how can I tell? I'm not that clued up on these 
things, but I did use OLE Viewer and saw 'ACAWebThumb 1.0 Type Library' under 
'Type Libraries'. Is that confirmation? 
Does the fact that the straight forward PHP call works tell us anything?

Cheers 

Stefan



On 18 Apr 2011, at 16:18, Mark A. Kruger wrote:

> 
> FYI - .NET and COM are very (very very) different - I would not expect this
> DLL to work both ways. It's either a COM or an assembly. I would suspect
> it's a COM (the path "activeX control" gives it away). Also - you are sure
> the COM is registered?
> 
> -mark
> 
> 
> Mark A. Kruger, MCSE, CFG
> (402) 408-3733 ext 105
> www.cfwebtools.com
> www.coldfusionmuse.com
> www.necfug.com
> 
> 
> -Original Message-----
> From: Stefan Richter [mailto:ste...@flashcomguru.com] 
> Sent: Monday, April 18, 2011 9:38 AM
> To: cf-talk
> Subject: Creating COM object - troubleshooting
> 
> 
> Hi all,
> I'm trying to use a third party DLL called ACA Webthumb
> http://www.acasystems.com/en/web-thumb-activex/
> I've installed this on a Windows 2008 server running CF 9.0.1
> 
> I'm having issue instantiating the library in CF. I'm using the supplied
> sample file that came with ACA. Here's the problematic line from it:
> 
> WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local");
> 
> This results in error:
> An exception occurred when instantiating a COM object.
> The cause of this exception was that: java.lang.RuntimeException: Can not
> use native code: Initialisation failed. 
> 
> 
> I also tried using a tag based syntax specifying the DLL directly:
>  assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX
> Control\acawebthumb.dll">
> 
> Error:
> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
> The assembly that contains the class must be provided to the assembly
> attribute. 
> 
> 
> Does anyone have any tips?
> 
> Best wishes,
> 
> Stefan
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343810
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

FYI - .NET and COM are very (very very) different - I would not expect this
DLL to work both ways. It's either a COM or an assembly. I would suspect
it's a COM (the path "activeX control" gives it away). Also - you are sure
the COM is registered?

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: Monday, April 18, 2011 9:38 AM
To: cf-talk
Subject: Creating COM object - troubleshooting


Hi all,
I'm trying to use a third party DLL called ACA Webthumb
http://www.acasystems.com/en/web-thumb-activex/
I've installed this on a Windows 2008 server running CF 9.0.1

I'm having issue instantiating the library in CF. I'm using the supplied
sample file that came with ACA. Here's the problematic line from it:

WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local");

This results in error:
An exception occurred when instantiating a COM object.
The cause of this exception was that: java.lang.RuntimeException: Can not
use native code: Initialisation failed. 


I also tried using a tag based syntax specifying the DLL directly:


Error:
Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
The assembly that contains the class must be provided to the assembly
attribute. 


Does anyone have any tips?

Best wishes,

Stefan











~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343809
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Creating COM object - troubleshooting

2011-04-18 Thread Mark A. Kruger

Stefan,

First guess would be 64bit vs. 32 bit. Have you matched the correct
"version" of the COM?

-Mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: Monday, April 18, 2011 9:38 AM
To: cf-talk
Subject: Creating COM object - troubleshooting


Hi all,
I'm trying to use a third party DLL called ACA Webthumb
http://www.acasystems.com/en/web-thumb-activex/
I've installed this on a Windows 2008 server running CF 9.0.1

I'm having issue instantiating the library in CF. I'm using the supplied
sample file that came with ACA. Here's the problematic line from it:

WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local");

This results in error:
An exception occurred when instantiating a COM object.
The cause of this exception was that: java.lang.RuntimeException: Can not
use native code: Initialisation failed. 


I also tried using a tag based syntax specifying the DLL directly:


Error:
Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
The assembly that contains the class must be provided to the assembly
attribute. 


Does anyone have any tips?

Best wishes,

Stefan











~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343808
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Creating COM object - troubleshooting

2011-04-18 Thread Stefan Richter

I should also add that the PHP example works fine on the same box:
$t_xMaker = new COM("ACAWebThumb.ThumbMaker")

Also on the same server I am able to use other (.NET) DDLs, for example in this 
way:



Regards,

Stefan







> Hi all,
> I'm trying to use a third party DLL called ACA Webthumb http://www.
> acasystems.com/en/web-thumb-activex/
> I've installed this on a Windows 2008 server running CF 9.0.1
> 
> I'm having issue instantiating the library in CF. I'm using the 
> supplied sample file that came with ACA. Here's the problematic line 
> from it:
> 
> WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", 
> "local");
> 
> This results in error:
> An exception occurred when instantiating a COM object.
> The cause of this exception was that: java.lang.RuntimeException: Can 
> not use native code: Initialisation failed. 
> 
> 
> I also tried using a tag based syntax specifying the DLL directly:
>  assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX 
> Control\acawebthumb.dll">
> 
> Error:
> Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
> 
> The assembly that contains the class must be provided to the assembly 
> attribute. 
> 
> 
> Does anyone have any tips?
> 
> Best wishes,
> 
> Stefan
> 
> 
> 
> 
> 
> 
> 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343807
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Creating COM object - troubleshooting

2011-04-18 Thread Stefan Richter

Hi all,
I'm trying to use a third party DLL called ACA Webthumb 
http://www.acasystems.com/en/web-thumb-activex/
I've installed this on a Windows 2008 server running CF 9.0.1

I'm having issue instantiating the library in CF. I'm using the supplied sample 
file that came with ACA. Here's the problematic line from it:

WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local");

This results in error:
An exception occurred when instantiating a COM object.
The cause of this exception was that: java.lang.RuntimeException: Can not use 
native code: Initialisation failed. 


I also tried using a tag based syntax specifying the DLL directly:


Error:
Class ACAWebThumb.ThumbMaker not found in the specified assembly list.
The assembly that contains the class must be provided to the assembly 
attribute. 


Does anyone have any tips?

Best wishes,

Stefan









~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm