EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CBFS RC2

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#6227
Posted: 05/13/2008 11:52:15
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

I installed RC2 of CBFS and now my application will not compile. I get the following errors that I never got before.

Error 1 error C2664: 'CallbackFileSystem::SetOnCreateFile' : cannot convert parameter 1 from 'void (__cdecl *)(CallbackFileSystem *,LPCTSTR,DWORD,PVOID *)' to 'CbFsCreateFileEvent'

Error 2 error C2664: 'CallbackFileSystem::SetOnOpenFile' : cannot convert parameter 1 from 'void (__cdecl *)(CallbackFileSystem *,LPCTSTR,DWORD,PVOID *)' to 'CbFsOpenFileEvent'


I have made no changes to my code or include files, I just installed your new version. This all used to work fine before. The calls I am using to SetOnOpenFile and SetOnCreateFile were copied exactly as they are in your VDisk sample.

Can you explain this to me, please?
#6228
Posted: 05/13/2008 12:43:36
by Volodymyr Zinin (EldoS Corp.)

Hello,

These events in the v2.0 have additional parameters. Correct them in your code.
#6230
Posted: 05/13/2008 13:17:46
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

OK, Vladimir, I fixed my code and got by that error, but now I am getting the following error.

Error 1 error LNK2019: unresolved external symbol "public: __thiscall CbFsFileInfo::CbFsFileInfo(class CallbackFileSystem *,wchar_t const *)" (??0CbFsFileInfo@@QAE@PAVCallbackFileSystem@@PB_W@Z) referenced in function "unsigned long __stdcall CbFsOpenFileFunc(struct CBFS_VCB *,struct CBFS_FCB *,struct CBFS_CCB *,unsigned long,wchar_t *,unsigned long,unsigned long,unsigned long)" (?CbFsOpenFileFunc@@YGKPAUCBFS_VCB@@PAUCBFS_FCB@@PAUCBFS_CCB@@KPA_WKKK@Z) cbfs.lib

Can you help me with this one?
#6246
Posted: 05/14/2008 06:29:46
by Eugene Mayevski (EldoS Corp.)

This seems to be a conflict between some older precompiled header and the library file.
Are the sample projects compiled fine or they expose the same error?


Sincerely yours
Eugene Mayevski
#6254
Posted: 05/14/2008 11:18:10
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

No, the sample file expose the same error and in my project I do not use pre-compiled headers.
#6255
Posted: 05/14/2008 13:49:41
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

I downloaded the latest build (build 27) and that fixed the problem. Thank you.
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 4311 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!