Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
Posted: Tue Apr 24, 2007 9:09 am Post subject: [Need help]Converting structures from c++ to vb
Ok guys, i'm making now a GUI for my dll (nothing of big, it show datas got from dll), just i'm having problems passing structures from my dll (done in c++) and my gui (visual basic 6)
the structure is like that in the dll
struct MyInfo
{
char Owner[16];
char Victim[16];
char InfoType[32];
}
and in MyInfo.cls
Public Owner As String
Public Victim As String
Public InfoType As String
and it's declaration in vb
Private Declare Function GetLastInfo Lib ".\MyInfo.dll" () As MyInfo
When i call GetLastInfo in vb6 i get Error runtime '91': Object variable or With block variable not set and then it crashes
Does anyone knows why? _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum