Jump to content

Linker error...


Recommended Posts

Guest grainy
Posted

Please someone save me.

I used "if ((pFile = _wfopen(strFileName, _T("rb"))) == NULL)" and so I included "stdio.h" but the link phase show me this error:

"error LNK2001: unresolved external symbol __imp__wfopen"

:?: I don't understand which library must be included. Same error if I use _wtopen instead _wfopen.

I'm working with evc3++ with smartphone 2002 emulator.

bye

Guest rcraswell
Posted

_wfopen is in coredll.lib so should link under default project settings. This works for me:

#include <windows.h>



int WINAPI

WinMain (

HINSTANCE hInstance,

HINSTANCE hPrevInstance,

LPWSTR lpCmdLine,

int nShowCmd

)

{

FILE* fp;



fp = _wfopen(_T("filename.txt"), _T("rb"));



return 0;

}[/code]

Guest grainy
Posted

Thank you, I found the problem. I compiled with Palm-size PC 2.11 options enabled. If I try with smartphone 2002 there isn't problem.

Anyway It's strange that wce 2.11 no supports _wfopen and _tfopen....

Sorry but the solution were front my eyes but I didn't see it. :oops:

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.