Click here to Skip to main content
16,019,618 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to use Jpegxr coding . but I found coder header source in microsoft website . but they are in c++ ! and I don't know it .
How can I compile this code too dll?
i search it in internet and found one way but I don't understand it ...

this is microsoft HD photo Kit :
http://www.microsoft.com/downloads/details.aspx?FamilyID=285eeffd-d86c-48c3-ab93-3abd5ee7f1ce&displaylang=en[^][^]

before every think...tanx
Posted
Comments
Christian Graus 17-Jul-10 6:58am    
Reason for my vote of 1
Has already asked this question and been answered before
Toli Cuturicu 20-Jul-10 10:44am    
Reason for my vote of 1
non-sense

Compiling a header into DLL makes no sense: a header contains only the declarations of the functions so that your compiler can know how to call them, but doesnt't contain any definition (the code that will be execute).

In the download, if there is a ".h", there should be also a ".dll" and a ".lib". The ".lib" should be statically linked to your project to let the the call made by the complier mapped in the corresponding entry of the DLL.

If the DLL and LIB are not in the download, probably they are supposed to be already in the system.

Check the documentation for that.
 
Share this answer
 
v2
Convert a C++ project to C# requires a good knowledge of both the languages, and probably requires to change a lot of things in the source code.
The best way is to use C++/CLI to wrap the native project in a way that could be used from the managed world.
 
Share this answer
 
there is not DLL or LIB file included in my downloaded files .
this link is a jpegxr decoder and encoder source with c++ language .
I want to do it Step by Step and i can not write it in c# . . how can i convert this source from C++ to C# and use them?
 
Share this answer
 
Comments
Toli Cuturicu 20-Jul-10 10:43am    
Reason for my vote of 1
fake 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