use class CPAlbImageViewerBasic - unresolved external symbol
| Tue, 2006-03-07 23:50 | |
|
Hi,
I'm trying to use class CPAlbImageViewerBasic to display jpg picture. I know I need this code against Palbview.lib. I've appended row "LIBRARY Palbview.lib" into my mmp-file. But always this error is displayed. error LNK2019: unresolved external symbol "public: void __thiscall CPAlbImageViewerBasic:: ... I use VS2003 + Carbide. It's right way to solve this problem? If I change and save mmp-file and build the project, VS show error and ask me to reload mmp-file or not. ("mmp-file has been modified outside of the source editor. Do you want to reload it?") If I confirm Yes, the row "LIBRARY Palbview.lib" is marked as a comment (like // LIBRARY...) How can I use this class? Specially how can I link this code? Thanks and sorry for my english |
|






Forum posts: 15
Did you include this header file??
PAlbImageViewerBasic.h
just check it out
Also try to insert additional dlls and add palbview.dll file
Actually we use this in vc++ editor
also see to the following usage
Examples: 1) Instantiation CPAlbImageViewerBasic* iViewer = CPAlbImageViewerBasic::NewL(this, Rect());
2) Loading a new image into the control iViewer->SetImageNameAndDisplaymodeL(_L("C:\Images\mini.jpg"), EColor4K); iViewer->LoadImageL();
or
2) iViewer->LoadImageL(_L("C:\Images\mini.jpg"), EColor4K); iViewer->ScaleOptimumL();
3) Rotation, around the center point of the visible window. RotateLeftL() and RotateRightL()
4) Panning, will move the center point of the window by half of the screen dimensions. PanLeft(); PanRight(); PanUp(); PanDown();
I wish this would help you
Raja
Raja
Forum posts: 5
header file is OK. My code is compiled and error is displayed during linking...
How can I include ddl file? Just write into mmp-file?
VS2003 doesn't use that library...
This is the part of mmp where libraries are situated
LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â cone.lib
LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â eikcore.lib
LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â euser.lib
LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â apparc.lib
LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â eikcoctl.lib
LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â avkon.lib
// [-]Â Â LIBRARYÂ Â Â Â Â Â Â Â Â Â Â Â Palbview.lib
VS commnets my modification after compilation
I really don't know why.
I use SDK 2.0.
Have anybody same problem?
Thanks
Forum posts: 15
i.e., palbview.lib and palbview.dll exists together in the same folder
And you should not include this dll file in the same way as you do for lib in mmp file
Ok another idea
Just do this thing
place this in mmp file
LIBRARY avkon.lib Palbview.lib
instead of
LIBRARY avkon.lib
LIBRARY Palbview.lib
I suppose this line would not be commented because avkon.lib is compulsory
Just reply me if that works
Raja
Forum posts: 5
It seems, VS doesn't care about mmp-file and if it's modified and program is compiled VS show question to reload mmp. Reload marked line as a comment.
(if I write LIBRARY avkon.lib palbview.lib ... VS seperate it to diferent lines)
This is output of program epoc.exe from VS2003.
There are many lines such as these:
. . .
'epoc.exe': Loaded 'C:\Symbian\7.0s\Series60_v20\Epoc32\release\wins\udeb\avkon.dll', No symbols loaded.
. . .
'epoc.exe': Loaded 'C:\Symbian\7.0s\Series60_v20\Epoc32\release\wins\udeb\palbview.dll', No symbols loaded.
. . .
I think epoc.exe search for the symbols from program in these libs, but I don't understand why it doesn't load symbols from avkon or palbview, which I use in my program!?
Forum posts: 5
In VS Project properties must be set linker input!
(additional depencies)
The linker doesn't work, if libraries are written only in mmp... It's curious, but...
Mazi
Forum posts: 15
Nice to hear your problem is solved
i was still studying about it
Any ways we'll meet for the next problem
If you have time i have placed my problem please try to look at it
Bye
Raja
Raja