The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Image import to matrix
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bnahir

USA
Posts

Posted - 03/07/2008 :  11:27:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Echo_Chu

China
Posts

Posted - 03/08/2008 :  05:25:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000