Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Need help]Converting structures from c++ to vb

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Tue Apr 24, 2007 9:09 am    Post subject: [Need help]Converting structures from c++ to vb Reply with quote

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

The function called is like that

MyInfo __stdcall GetLastInfo()
{
return LastInfo;
}

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?

_________________

ASM/C++ Coder
Project Speranza lead developer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites