|
I am trying to use tiff.lib generated from cxImage project (I just compiles tiff project to generate just tiff.lib) and then linked it in my project and included the necessary header files. While building my project it gives the following errors..
Tiff.lib(tif_lzw.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_fax3.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_dirread.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_dirwrite.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_write.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_luv.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_aux.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_read.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_dirinfo.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_compress.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
14BitImageCreator.obj : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_getimage.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_dir.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
Tiff.lib(tif_open.obj) : error LNK2001: unresolved external symbol __TIFFmalloc<br />
14BitImageCreator.obj : error LNK2001: unresolved external symbol _TIFFOpen<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_lzw.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_write.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_luv.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_fax3.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_dirinfo.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_compress.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_dirread.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_dirwrite.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_close.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_getimage.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_dir.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_read.obj) : error LNK2001: unresolved external symbol __TIFFfree<br />
Tiff.lib(tif_getimage.obj) : error LNK2001: unresolved external symbol __TIFFmemcmp<br />
Tiff.lib(tif_dirwrite.obj) : error LNK2001: unresolved external symbol __TIFFmemcmp<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_next.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_packbits.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_dumpmode.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_dirread.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_dirwrite.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_fax3.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_getimage.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_dir.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_aux.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_read.obj) : error LNK2001: unresolved external symbol __TIFFmemcpy<br />
Tiff.lib(tif_luv.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_fax3.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_lzw.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_getimage.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_dir.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_open.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_write.obj) : error LNK2001: unresolved external symbol __TIFFmemset<br />
Tiff.lib(tif_error.obj) : error LNK2001: unresolved external symbol __TIFFerrorHandler<br />
Tiff.lib(tif_warning.obj) : error LNK2001: unresolved external symbol __TIFFwarningHandler<br />
Tiff.lib(tif_dirinfo.obj) : error LNK2001: unresolved external symbol __TIFFrealloc<br />
Tiff.lib(tif_write.obj) : error LNK2001: unresolved external symbol __TIFFrealloc<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol __TIFFrealloc<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _inflateInit_<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _inflateReset<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _inflateSync<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _inflate<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _deflateInit_<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _deflateReset<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _deflate<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _deflateEnd<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _inflateEnd<br />
Tiff.lib(tif_zip.obj) : error LNK2001: unresolved external symbol _deflateParams<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_CreateDecompress<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_CreateDecompress<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_std_error<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_std_error<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_abort<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_abort<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_resync_to_restart<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_resync_to_restart<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_read_header<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_read_header<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_start_decompress<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_start_decompress<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_reset_huff_decode<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_finish_decompress<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_finish_decompress<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_read_scanlines<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_read_scanlines<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_read_raw_data<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_read_raw_data<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_alloc_huff_table<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_alloc_quant_table<br />
Tiff.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol _jpeg_destroy<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_destroy<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_CreateCompress<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_set_defaults<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_set_quality<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_suppress_tables<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_write_tables<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_set_colorspace<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_start_compress<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_write_scanlines<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_write_raw_data<br />
Tiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol _jpeg_finish_compress
I made sure that both projects are set to /MTd option...
Any ideas/suggestions?? All I wanna do is to read any tiff file and get the contents of the image data... thats all...
thanks...
Pavan
|
|
|
|
|
Disclaimer: I have no clue what CxImage is but those link errors are pretty common when forgetting about to tell the linker about the .lib file.
Underneath your "#include" statements for the library, don't forget to include a pragma for it. Also, make sure the .lib file is in your paths or at least in your project directory when linking.
#pragma comment(lib, "Tiff") // If .lib file is called Tiff.lib
|
|
|
|
|
I'm using ATL w/ Attributes and maybe w/ WTL (no MFC and WTL looks interesting). I am trying to figure out how CPTicker (here on CodeProject) was built and I'm stuck on figuring out how to add the IInputObject interface using VC++ .NET 2003. I managed to create an equivalent class (to CTickerBand) by right-clicking on the project->Add Class Wizard->ATL Simple Object.
I switched to the Class View, found my newly added class, right-clicked, Implement Interface Wizard...
Now what? Can't seem to find the IInputObject interface.
It has been a while since I've messed with COM. I'm kind of surprised I remembered that much.
And, for the kind soul, it would be nice to remind me on how to do the rest of these too:
public IInputObject,
public IPersistStreamInitImpl<CTickerBand>,
public IContextMenu,
public IDispatchImpl<ITickerWindow>,
public CTickerWindowImpl
|
|
|
|
|
Hi, so here's what I want to do:
In my VC++ resource file for my project, I have a menu. This menu has a subgroup, Options, and, under Options, another MENUITEM called View. I have View set to be checkmarked. Now, how do I uncheck it programmatically, when my only reference to this item is the ID?
So let's say my ID for View is IDM_VIEW.
I've tried the standard HWND view = GetDlgItem(window, IDM_VIEW); and then sending the windows message BM_SETCHECK with BST_UNCHECKED to the view HWND, but that doesn't seem to work.
Bottom line: I want to toggle this checkmark on and off, and be able to check it from within my program to see if it's checked or not. I was hoping I could do it with BM_GETCHECK windows messages but that doesn't seem to work.
Help is appreciated!
Thanks
KR
|
|
|
|
|
CMenu::CheckMenuItem / GetMenuState
Menues have their own messages, BM_SETCHECK / BST_UNCHECKED deal with buttons (radio and checkbox) on views and dialogs.
Judy
|
|
|
|
|
|
Hello all,
I'm trying to use an OCX control inside my application, that OCX has two interfaces; I can see the two interfaces opening the activex control using the OLE Viewer from VC++6.
It seems that when I insert the ocx control in my dialog, the class that is being generated only has the first interface, but not the second one.
In the OLE VIEWER, if I select view typelib, I can see:
- CROSSLIB
-- module XOE
-- dispinterface _DCross
-- dispinterface _DCrossEvents But in my wrapper class I can see only the things that appear inside the firs interface (_DCross).
Do you know how could I make that second interface to appear?
As always thank you very much in advance.
|
|
|
|
|
The webbrowser control (and CDHtmlDialog) insists on drawing all the widgets/form elements/buttons in with an legacy-style hard beveled look.
When I use an input tag with type="button" in the webbrowser control it looks like a system button on windows 95. However when I view that same page in IE6 or 7 it has a nice soft rounded look. Is there a way to get webbrowser control to look the same as IE?
Thanks.
-C
|
|
|
|
|
Hi Guys
i am very new to create service using VC++ 2005. can anybody help me,how will i start to do? if some book is available then please do let me know.
With Regards
R e h a n
|
|
|
|
|
Have you searched CP, MSDN, or Googled for examples?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yaa , i got sample "DevService", which is very concerned of my requirment but i am not able to understand, how to debug and see what is happening behind if i start this service.This service help to detect the arrival or removal of devices, so i want check if i am inserting CD then i should know, CD has arrived.
|
|
|
|
|
VC_RYK wrote: ...how to debug and see what is happening behind if i start this service.
See here and here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
when i am trying to write log file using
CRITICAL_SECTION myCS;
void WriteLog(char* pMsg)
{
// write error or other information into log file
::EnterCriticalSection(&myCS);
try
{
SYSTEMTIME oT;
::GetLocalTime(&oT);
FILE* pLog = fopen(pLogFile,"a");
fprintf(pLog,"%02d/%02d/%04d, %02d:%02d:%02d\n %s\n",oT.wMonth,oT.wDay,oT.wYear,oT.wHour,oT.wMinute,oT.wSecond,pMsg);
fclose(pLog);
} catch(...) {}
::LeaveCriticalSection(&myCS);
}
it is crashing over ::EnterCriticalSection(&myCS); so can you help to atleast write a log file to know the arrival or removal.
|
|
|
|
|
VC_RYK wrote: ::EnterCriticalSection(&myCS);
How is myCS created/initialized?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi resolve this one but i am trying to install this service by following the steps what is given on MSDN but not get installed.
|
|
|
|
|
VC_RYK wrote: ...but not get installed.
Ok, so what's the problem? Your screen is too far away for me to see.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
For standard services, it easiest (at least in VC++ 6.0) to create an ATL COM service and remove what you don't want. I only used VS2005 while it was in beta and never tried to create a service with it but I'm guessing that functionality should (operative word) still be there.
|
|
|
|
|
Look here[^] for a nice tutorial on how to write services.
|
|
|
|
|
I was trying to update the statusbar information with the colour information of pixels.
Image is open in a view clas named CChildView, which is attached to a child frame of the MainFrame named ChildFrame.
What I was trying to Update it using a string, it keeps give me the error message:
Unhandled exception at 0x00402ca6 in ImageLab.exe: 0xC0000005: Access violation reading location 0xbaadf009.
and stopped at here:
CSimpleStringT& operator=( __in const CSimpleStringT& strSrc )
{
CStringData* pSrcData = strSrc.GetData();
CStringData* pOldData = GetData();
if( pSrcData != pOldData)
{
-> if( pOldData->IsLocked() || pSrcData->pStringMgr != pOldData->pStringMgr )
{
SetString( strSrc.GetString(), strSrc.GetLength() );
}
else
{
CStringData* pNewData = CloneData( pSrcData );
pOldData->Release();
Attach( pNewData );
}
}
return( *this );
}
|
|
|
|
|
I'm not sure about the code you posted but MSDN for VC++ 6.0 has a tutorial for updating from CMainFrame. Look up "CStatusBar"/"updating pane" for that.
However, since m_wndStatusBar is Protected, you will have to stand on your head a bit to get this to work from other classes. For simplicity, lets assume your updating the location of the mouse cursor in the MDI child view coordinates. You can get to the m_wndStatusBar by making it Public but that's not usually desireable so lets create a mutator for it.
In CMainFrame of an MDI app. Add an entry for the pane that will be filled with the coordinates. You would likely create a symbol for this for production but for now, just create an entry reusing the separator symbol and we'll just go for index 1 to speed this demo up.
// MainFrm.cpp
//...
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_SEPARATOR, // *** Added ***
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
//...
void CMainFrame::SetPaneText(const int nPane, const CString& sPane)
{
// Mutator for protected member
m_wndStatusBar.SetPaneText(nPane,sPane);
}
// MainFrm.h
...
public:
void SetPaneText(const int nPane,const CString& sPane);
// CYourView.h - Note: the placement may vary if conflicts arise
#include "MainFrm.h"
// Use the classwizard to create a WM_MOUSEMOVE handler
void CYourView::OnMouseMove(UINT nFlags, CPoint point)
{
CString sText;
CMainFrame* pFrame=(CMainFrame*)AfxGetMainWnd();
if (pFrame) {
sText.Format(" X=%d Y=%d",point.x,point.y);
pFrame->SetPaneText(1,sText);
}
CScrollView::OnMouseMove(nFlags, point);
}
// End code
Not pretty but it works. However, I'm betting the Update Handler that is discussed in MSDN is the proper way to go so I would recommend trying that and see if it fits your needs. If not, this technique might get you by.
|
|
|
|
|
Hi All,
i'm using IXMLDOMDocumentPtr for loading xml and do operations on it.
when i run my application with purify it is showing a memory leak in CreateInstance & loadXML.
please give me a suggestion where am i wrong? or what changes i need to do.
here is my sample code:
BSTR bstrUserInputsXml=NULL;
{
CoInitialize(NULL);
IXMLDOMDocumentPtr pXMLDom=NULL;
hr=pXMLDom.CreateInstance( "Microsoft.XMLDOM" );
//hr=pXMLDom.CreateInstance( __uuidof(MSXML2::DOMDocument40));
if(FAILED(hr))
{
//cout<<"Failed to instantiate DOMDocument40"<<endl;
return="" -1;
="" messagebox(null,"failed="" to="" instantiate="" domdocument40","keytable.s",mb_ok);=""
="" ;
="" }
="" if(pxmldom-="">load("D:\\userinputs1.xml")!= VARIANT_TRUE)
{
//MessageBox(NULL,"Failed load xml string","KeyTable.s",MB_OK);
return ;
}
bstrUserInputsXml = pXMLDom->xml;
pXMLDom.Release();
CoUninitialize();
}
Thanks in advance.
Prashanthv
-- modified at 14:02 Friday 27th April, 2007
|
|
|
|
|
Are you sure there is a memory leak with that code snippet?
|
|
|
|
|
Hi all.
I need come function that is't member of MFC and can read chan from file, that stands in (x,y) coordinate.
|
|
|
|
|
david bagaturia wrote: that stands in (x,y) coordinate.
What do you mean by COORDINATE in a file?
You can use fseek() to go to a certain location in a file and then perform operations on the file data.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|