RSS Feed Print
LightScribe in VB6
Charley1952
Posted: Wednesday, January 28, 2009 7:52 AM
User Rank: Newbie
Joined: 1/28/2009
Posts: 6


Hi, I'm developing a program in Visual Basic and want to incorperate LightScribe. I only have the documentation for Visual C. Is there any documentation on how to use the LifgtScribe API in VB6
cimofj2
Posted: Wednesday, January 28, 2009 12:52 PM
User Rank: Power User
Joined: 8/3/2008
Posts: 1570


Hi Charley1952!

Based on my experience, VB can use the same API, but you'll probably have some problems with passing arguments.  It's the business with "Pass By Reference" and "Pass By Value", and Descriptors will be the toughest.


Charley1952
Posted: Wednesday, January 28, 2009 2:42 PM
User Rank: Newbie
Joined: 1/28/2009
Posts: 6


Hi cimofj2, I tried to make link the LSCAPI.DLL to the project but that fails. If I declare it with the full path to the DLL, the program give an error message saying "Fie not found". So I need the declaration for the several routines and direct them to the correct DLL
Charley1952
Posted: Thursday, January 29, 2009 5:46 AM
User Rank: Newbie
Joined: 1/28/2009
Posts: 6


Hi, I analyzed the LSPRINTAPI.DLL with the program Dependency Walker. The reason why I cannot load this DLL has to do with the fact that some dependency files are missing that are called in the DLL.
cimofj2
Posted: Thursday, January 29, 2009 6:58 AM
User Rank: Power User
Joined: 8/3/2008
Posts: 1570


HI Charley1952!

I'm having problems sending replies.

If I remember correctly, C wants some kind of "external" declaration to the module containing the API you want to use.

I don't remember how to do it in VB (I've been retired for several years.), but you need to do something similar.

I hope this helps a little!

 


Charley1952
Posted: Saturday, February 21, 2009 4:19 PM
User Rank: Newbie
Joined: 1/28/2009
Posts: 6


No success till now... How on earth will LightScribe ever become mainstream if there is no possibility to ask questions to a tech. support.... I am writing a commercial package and wanted to add LightScribe to the functions, but if I do not have good technical support I will drop the functionality.
moosestafa
Posted: Monday, November 8, 2010 8:03 AM
User Rank: Newbie
Joined: 11/8/2010
Posts: 5


Hi all. I have been developing a lightscribe wrapper that should make some if not all of these issues transparent. I am writing it in vb.net but the interface should work in vb6. If not I am willling to examine the issues.

Anyone interested please post a reply saying so.


dman
Posted: Monday, November 8, 2010 1:24 PM
User Rank: Power User
Joined: 9/21/2010
Posts: 295


I am not very familiar with Visual Basic. But it sounds like you are building a program to tell us exactly what went wrong in LightScribe when we get an error. Which sounds really cool! Can a non-tech savvy person use your program? I'd be interested.

Darryl


moosestafa
Posted: Tuesday, November 9, 2010 8:16 AM
User Rank: Newbie
Joined: 11/8/2010
Posts: 5


Let me explain what the purpose of this wrapper is. It provides a simpler interface to the LightScribe API. It handles all the pointers and finding the dll so that all the user need to do is make simple calls. It should also handle error reporting and handling but I have not been able to get the API to report any so that should come later.

It is still a work in progress (I have not been able to get the get_print_status function to work) but I am willing to share what I have if it will help others.


dman
Posted: Tuesday, November 9, 2010 1:17 PM
User Rank: Power User
Joined: 9/21/2010
Posts: 295


Dude, that's way cool! I have read a lot of posts about how much trouble people are having with the LightScribe API. You should definately share this with the LightScribe comminity. But, I reccommend making it in a new Thread, so that thread is all about the Wrapper and not other stuff.
moosestafa
Posted: Thursday, November 11, 2010 9:43 AM
User Rank: Newbie
Joined: 11/8/2010
Posts: 5


Hi

I have spent the last couple of days doing documentation and have accepted cimofj2's kind offer to do some testing. I tested the wrapper with vb6 and it does work. So, I will add another post here when I am ready to share the wrapper with all.


 
 Average 4.5 out of 5