Hi,
have created XMLParser.dll with two functions in
vb
ParserMRXML(Filename as string) as MASTERRECIPE
&
CreateMRRecipe(Filename as string,MasterDetail as MASTERRECIPE)
Wherein MASTERRECIPE is userdefined nested structure used to hold all tag details.
Now I have opened another
vb standard exe project.
Gave the reference of xmlparser.dll
Created same structure MASTERRECIPE in the project
dim MasterRecord as MASTERRECIPE
dim obj as CXmlParser
MasterRecord = obj.ParseMRXML("C:\MasterRecipe.xml")
This successfully executes and give me the xml file details in MasterRecord.
Now I am calling
obj.CreateMRRecipe("c:\MRCreated.xml",MasterRecord );
I am getting compilation error for MasterRecord as "Byref argument type mismatch"
My conclusion : It works fine when I am returning user defined data type from DLL
But it fails when I am passing user defined parameter as input parameter.
User defined data types should be passed as byref only not Byval .
If the same dll code is copied to standard exe then it works fine... No problem at all.
Please Help!!!! Its Really very urgent.. I am stucked.
Thanking in advance..
Regards
Smita.
Smita