| |

VerySource

 Forgot password?
 Register
Search
View: 981|Reply: 6

Use of cximage

[Copy link]

2

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-28 20:20:01
| Show all posts |Read mode
The relevant instructions for download are:
To use CxImage in your project, you must edit these settings:

Project Settings
|-C / C ++
| |-Code Generation
| | |-Use run-time library: Multithreaded DLL (must be the same for
| | | all the linked libraries)
| | |-Struct member alignment: must be the same for all the linked
| | | libraries
| |-Precompiled headers: not using precompiled headers
| |-Preprocessor
| |-Additional Include Directories: ..\cximage
|-Link
    |-General
        |-Object / library modules: ../png/Debug/png.lib
                                    ../jpeg/Debug/jpeg.lib
                                    ../zlib/Debug/zlib.lib
                                    ../tiff/Debug/tiff.lib
                                    ../cximage/Debug/cximage.lib ...
The several libraries that need to be added in the above Link option settings, but when the program runs, an error occurs, "cximage.lib could not be found", all the added * .lib libraries are not found, how can this happen? ? ?

(Note: The WIN32 project is created, convert the jpg to bmp format and save)

This is my first time using the xcimage library. Thank you for your help! !! !!
Reply

Use magic Report

0

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-1 16:00:01
| Show all posts
Include the directory, set the link lib, check the information, don't think complicated
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-6-25 19:30:02
| Show all posts
Copy all the generated libraries and necessary header files to a folder, include them, and then press the settings they give.
Reply

Use magic Report

2

Threads

16

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-7-14 12:30:01
| Show all posts
Just include "atlimage.h"
The easy way is to put both LIB and H headers in your project directory, then #include the header file
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-31 08:00:01
| Show all posts
I used CxImage 4 years ago and I feel pretty good, no problem.
    Today I downloaded a new version from http://www.codeproject.com/KB/graphics/cximage.aspx. It feels very good. It contains all the source code, especially a demo program. However, when you encounter problems while studying, you can't solve them all the time, so please give advice. Those who are interested, download it and try it.
    Open the workspace CxImgLib.dsw, set the demo to active at this time, compile and run OK! very good.
    In the Demo folder, there is demo.dsw. After compiling at this time, it is OK. In fact, there is no compilation at all at this time, and the last executable program is used directly. If you make a slight modification to any file in the demo, such as (fill in a blank line), then the compilation link is all Lnk2001 wrong, and it always says that CxImage.lib cannot be found. But I have been watching it for two days and I feel that their settings are exactly the same. I'm so depressed, I haven't slept well for 2 days. The error is as follows:

   Compiling...
demo.cpp
demoDoc.cpp
demoView.cpp
Generating Code...
Linking...
   Creating library ../bin/demou.lib and object ../bin/demou.exp
cximage.lib(ximaraw.obj): error LNK2001: unresolved external symbol _dcr_cleanup_dcraw
cximage.lib(ximaraw.obj): error LNK2001: unresolved external symbol _htons@4
..........................
..............

../bin/demou.exe: fatal error LNK1120: 24 unresolved externals
Error executing link.exe.

demou.exe-25 error(s), 0 warning(s)
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-31 09:00:01
| Show all posts
You copy those *.lib library files directly under your project, and be careful not to create a folder in your project and then put it in the folder. These library files and your .cpp, .h files are placed on the same layer. All right.
I just used this library. If you must create a folder in the project and then put it in the folder, you need to
Link
        |- General
                |- Additional library directory ------ add the folder you created here.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-31 09:15:02
| Show all posts
You need to compile all the projects in other folders! ! ! ! ! ! !
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list