EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SolFS StorageSearch variable creation problem

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
Posted: 09/21/2006 05:24:54
by Imran Kazi (Basic support level)
Joined: 08/21/2006
Posts: 11

Hello All,

I am using VC++.Net Microsoft Development Environment 2003. I am using Managed code. In this code i want to create the object of StorageSearch Structure. But i am unable to do it. The error i am getting is as below

C3635: '::StorageSearchStruct': undefined native type used in 'SolFS::StorageSearch'; imported native types must be defined in the importing source code

What might be the problem. Please do the needfull at the earliest.

The Sample code is as below.

#include "stdafx.h"
#include <Windows.h>
#include <stdlib.h>

#using <mscorlib.dll>

using namespace System;
using namespace SolFS;

int _tmain()
SolFS::SolFSStorage *Storage = NULL;

Storage = new SolFS::SolFSStorage();
char CArray[MAX_PATH] = "D:\\WorkArea\\DotNetEldos\\From Amit\\SolFSNet\\HS_Managed3\\BVlocalbck.st";//"D:\\Workarea\\Data\\RND\\HS_Managed3\\BVlocalbck.st";
Storage->FileName = Convert::ToString(CArray);
Storage->Logo = "SolFS Explorer sample storage";
Storage->PageSize = 512;
Storage->PathSeparator = '\\';
Storage->UseTransactions = true;
Storage->OnHashCalculate = false;
Storage->OnHashValidate = false;
Storage->OnDataEncrypt = false;
Storage->OnDataDecrypt = false;
int i = 5;
DWORD dwCheck;
SolFS::StorageSearch *hStSearch = new SolFS::StorageSearch;
//SolFS::StorageSearch *hStSearch = __gc new SolFS::StorageSearch;
catch(Exception *ex)
return 0;
return 0;

i have tried both veriation of variable creation. Second is the one which is commented.

Thanking you in advance

Posted: 09/23/2006 05:40:27
by Eugene Mayevski (EldoS Corp.)

The problem is clearly described in the error message -- some unknown unmanaged type is accessed.

Here's the working code:

#include "d:\\program files\\eldos\\solfs\\win32\\StoreDecl.h"

#using <mscorlib.dll>

using namespace System;
using namespace SolFS;

int _tmain()
SolFS::StorageSearch search;

You need to change the path to StoreDecl.h

Sincerely yours
Eugene Mayevski



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