| T O P I C R E V I E W |
| bnahir |
Posted - 03/07/2008 : 11:27:17 AM Origin Version (Select Help-->About Origin): 8 SR1 Operating System: Windows XP
Is it possible to import a .tif image directly to an internal matrix (i.e. without invoking labtalk)?
Also, I've been trying to use ImportFile but keep getting the following error: Linking... X:\Software\OriginC\Tools\On-line\Origin 8\BN_linescan.c(44) :Error, Function ImportFile@IAAAAAAADDAAAAAABCAAAAAADAAAAAAABCAAAAAADAAAAAAAIAAAAAAA was called, but its body could not be located during linking. Linking Failed!
As far as I can tell, the error is essentially saying the header file but not the c file has been found. I tried including FileImport.c in the System directory of the workspace but to no avail. Here is the code I've used to generate this error. All the function calls are to built in OriginC functions:
void lsdata(){ string strFile, strLSDfile; string strFilter="X:\Software\OriginC\Import Filters\PVLSD.oif";
strFile=GetOpenBox("*.lsd"); if(strFile.IsEmpty()){ out_str("Please select a file."); return; } string strLabel=GetFileName(strFile); WorksheetPage wpg; wpg.Create("Origin.otp"); Worksheet wks; wks=wpg.Layers(0); int iRet=ImportFile(wpg, strFilter, strFile); }
Thanks, Ben
Edited by - bnahir on 03/07/2008 2:01:48 PM |
| 1 L A T E S T R E P L I E S (Newest First) |
| Echo_Chu |
Posted - 03/08/2008 : 05:25:01 AM Hi, Ben,
It is because FileImport.c, where ImportFile() located is not compiled. Could you also add FileImport.c to your workspace, in addition your c file
Echo OriginLab Corp |
|
|