Enum access in .NET assemblies


i've run out of ideas.

 

i'm trying call function in .net dll uses 1 of parameters, enumerated value.

 

the specific code is:

 

<cfobject action="create" type=".net" name="enum_messageid"  class="quiksoft.easymail.imap4.messageid"  assembly="#assembly_path#" />
<cfdump var="#enum_messageid#" label="enum_messageid" expand="no" />

<cfset bodystruct = imap4.getbodystructure(env.get_messagenumber(),  enum_messageid.ordinalposition) />

 

n.b. imap4 , env other class instatiations formed , have been used extensively point.

 

the getbodystructure function documented here:
http://www.quiksoft.com/emdotnet/docs/html/ndocquiksofteasymailimap4imap4classgetbodystruc turetopic_2db5939b.html

the messageid enum documented here:
http://www.quiksoft.com/emdotnet/docs/html/ndocquiksofteasymailimap4messageidclasstopic_3d 4eda2d.html

 

the error thrown exception:

the getbodystructure method not found.

either there no methods specified method name , argument  types, or getbodystructure method overloaded argument types  coldfusion cannot decipher reliably. coldfusion found 0 methods  matched provided arguments. if java object , you  verified method exists, may need use javacast  function reduce ambiguity.

 

as javacast can used elemental datatypes, there's no way can find coerce "ordinalposition" proper data type.

 

i've tried creating "class" of quiksoft.easymail.imap4.messageid.ordinalposition which creates fine, still useless in function call.

 

i've hunted everywhere , can find 2 places talked about.  1 here: http://forums.adobe.com/message/123943#123943 (unanswered since 2007) , other ishttp://forums.adobe.com/message/2417973#2417973 doesn't work (i.e. "javacast(enum,1)" not valid).

 

i'm stuck , out of ideas.

 

a little help?

 

upgrading cf9 not option.



More discussions in Advanced Techniques


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO