EldoS | Feel safer!

Software components for data protection, secure storage and transfer

C++ samples not compiling

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#26472
Posted: 09/16/2013 21:42:15
by mzgcz (Basic support level)
Joined: 09/03/2013
Posts: 8

In the recently release, all samples in cpp dir can not compile.
It sayed:
Code
if(g_CbFs.GetMountingPoint(Index, &MountingPoint, &Flags, &AuthenticationId))

the function type is void.
#26473
Posted: 09/16/2013 23:38:41
by Eugene Mayevski (EldoS Corp.)

Thank you for the report. We will check the samples and update them accordingly.


Sincerely yours
Eugene Mayevski
#26495
Posted: 09/17/2013 07:13:53
by Eugene Mayevski (EldoS Corp.)

We have checked the samples and in the latest build they are correct (GetMountingPoint() is a void function and it's called as such).

Please re-check that you are using the latest build and that your <cbfs>\Samples folder was overriden by the installer. The best is to delete it altogether and then install fresh version.


Sincerely yours
Eugene Mayevski
#26496
Posted: 09/17/2013 08:14:21
by mzgcz (Basic support level)
Joined: 09/03/2013
Posts: 8

Quote
Eugene Mayevski wrote:
We have checked the samples and in the latest build they are correct (GetMountingPoint() is a void function and it's called as such).

Please re-check that you are using the latest build and that your <cbfs>\Samples folder was overriden by the installer. The best is to delete it altogether and then install fresh version.


You maybe mistake my mean.
My mean is in "Callback File System - Version 4.0.137 - Released August 30, 2013", in CbFS.h line 367, it like this:
Code
void GetMountingPoint(INT Index, LPWSTR* MountingPoint, DWORD* Flags, PLUID AuthenticationId);

and in Samples Mapper.cpp line 718, it like this:
Code
if(g_CbFs.GetMountingPoint(Index, &MountingPoint, &Flags, &AuthenticationId))
        {
            Item.mask = LVIF_TEXT;
            Item.iItem = ListView_GetItemCount(g_hList);
            Item.iSubItem = 0;
            Item.stateMask = (UINT)-1;
            Item.pszText = MountingPoint;
            Item.cchTextMax = _MAX_PATH;
            ListView_InsertItem(g_hList,  &Item);
         }


You know the void function can not used in the "if" expession, and the compiler also tells us this.

My environment is ok, no problem.
#26497
Posted: 09/17/2013 08:18:32
by Eugene Mayevski (EldoS Corp.)

Now I see. Maybe the change was made after build 137 cause current source code is correct. We'll make the update to CBFS 4 a bit later this week.


Sincerely yours
Eugene Mayevski
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 1183 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!