VMware {code} Community
tos2k
Expert
Expert

C++ question VixDisk

Hi!

I am trying to write som C++ code using Vddk.

I want to declare a variable of type VixDisk, to be able to intiate it later on. But I cant write

VixDisk disk;
disk = VixDisk(params);

I get the compile error:

test.cpp: In function ‘int main(int, char**)’:
test.cpp:165: error: no matching function for call to ‘VixDisk::VixDisk()’
test.cpp:68: note: candidates are: VixDisk::VixDisk(VixDiskLibConnectParam*, char*, uint32)
test.cpp:64: note:                 VixDisk::VixDisk(const VixDisk&)

How can I do that? All examples just show the immediate use like:

VixDisk disk(params);

Cant get that... Any help appreciated!!

Tos2k

Reply
0 Kudos
0 Replies