#1 Burning Software

It is currently Sat Apr 19, 2025 11:39 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Callback in VB
PostPosted: Mon Sep 06, 2004 1:53 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 4:22 pm 
Offline

Joined: Thu Jul 08, 2004 8:25 am
Posts: 51
Location: Germany
Triggering callbacks in VisualBasic I S very sophisticated, especially with void* handling...I did it once (I think it was the callback for Win-SDK-function EnumWindows() ) and I will look for the code, I once wrote for this. give me a day or two.
On the other hand, you could wait for the people at RocketDivision; I heard, they will provide an ActiveX-Control for such purposes, soon. With this, you can feel familiar with events resp. don't need to enum devices in your code...

Spin


Top
 Profile  
 
 Post subject: Making Progress
PostPosted: Tue Sep 07, 2004 1:20 am 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
I have gotten the callback function to work but I am now receiving another error. It is error 49, "Bad Dll calling convention"

Here is my vb delcaration for the function.

Declare Function StarBurn_FindDevice Lib "c:\windows\system32\StarBurn.dll" (ByVal DeviceType As Any, _
ByVal IsFindFirst As Boolean, ByVal CallBack As Long, CallBackContext As Any) As Long

the callback function looks like this

Public Sub ProcessCallBack(ByVal CallBackNum As Long, _
ByVal CallBackContext As Long, _
ByVal CallBackSpecial1 As Long, _
ByVal CallBackSpecial2 As Long)
End Sub

The error pops up when the program executes the End Sub command.

Have I gotten something declared wrong?


Top
 Profile  
 
 Post subject: Re: Making Progress
PostPosted: Tue Sep 07, 2004 5:43 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands


Top
 Profile  
 
 Post subject: Re: Making Progress
PostPosted: Tue Sep 07, 2004 11:01 am 
Offline

Joined: Thu Jul 08, 2004 8:25 am
Posts: 51
Location: Germany


Top
 Profile  
 
 Post subject: Re: Making Progress
PostPosted: Tue Sep 07, 2004 1:40 pm 
Offline

Joined: Mon May 31, 2004 6:22 am
Posts: 134


Top
 Profile  
 
 Post subject: Looking Forward to Update
PostPosted: Tue Sep 07, 2004 3:58 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118


Top
 Profile  
 
 Post subject: Re: Looking Forward to Update
PostPosted: Tue Sep 07, 2004 7:11 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 79 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group