Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have developed two modules in in vc++. 1. first module consists of implementing save as method in microsoft offie using c++/clr recommendations using primary interop assemblies. 2.second module consists of xsl transformation using MSXML sdk.

when i compile two .cpp files in single vc++ project, its compiling fine and its generating binary .exe, but the main problem is xsl transformation method is not working..but when i make two module as seperate project, it is working fine.

may is know what is problem??..c++/clr compiler will compile the native code??...can we add native code to c++\cli project??
Posted
Updated 14-Oct-14 21:57pm
v2
Comments
Richard MacCutchan 15-Oct-14 3:44am    
Not enough information here, what do you mean by "method is not working"?
krishnaprasad t 15-Oct-14 4:02am    
hi richard..let me clear.. xsl transformation is native code and to implement save as option is c++\cli code(managed code)..when i add native code in to c++\cli project, xsl transformation is not happening.
Richard MacCutchan 15-Oct-14 4:11am    
Sorry but that does not make anything clear. It is no good telling us that something is not working or not happening. We have no idea what your code does or maybe does not do.

1 solution

http://msdn.microsoft.com/en-us/magazine/dd315414.aspx

Discuss Interoperability of native and managed code in Microsoft Office.

My guess is that the c++/cli code is being compiled into MSIL (Microsoft intermediate language) while the native code of the XML transformation is being compiled into native assembly code. Probably wrapping the native code in c++/cli would help then they would both be compiled into MSIL. It sounds as though you need some type of interop strategy for dealing with the different languages.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900