473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Using XPBurn in a C# console app.


Hey guys. I'm trying to generate a simple console app for file backups,
and am having a single issue: the .RecordDisc() method is simply doing
nothing. I've instantiated the class, added files, everything checks out...
that line of code with RecordDisc() simply runs, and goes on. Nothing occurs
at all... it's also not firing any events apparently. I've used XPBurn in
WinForm apps several times on the same machine with no issues. Any help is
greatly appreciated. Code follows:


--
Hal Meyer
Developer, the patchwerks
http://www.thepatchwerks.com
Nov 17 '05 #1
1 3156
heheh. Code!

[STAThread]
static void Main(string[] args)
{

// initialization occurs here
// ..

XPBurn.XPBurnCD xpCD = new XPBurn.XPBurnCD();
xpCD.BurnerDrive = xpCD.RecorderDrives[0].ToString();

// all kinds of code using AddFile(fileName, cdFileName)
// ..

xpCD.RecordDisc(false, true);

// NOTHING HAPPENS!

}

--
Hal Meyer
Senior Technician/Developer, the patchwerks
(423) 596-2312
http://www.thepatchwerks.com

"Hal Meyer" <in**@thepatchwerks.com> wrote in message
news:u3**************@TK2MSFTNGP14.phx.gbl...

Hey guys. I'm trying to generate a simple console app for file backups,
and am having a single issue: the .RecordDisc() method is simply doing
nothing. I've instantiated the class, added files, everything checks
out... that line of code with RecordDisc() simply runs, and goes on.
Nothing occurs at all... it's also not firing any events apparently. I've
used XPBurn in WinForm apps several times on the same machine with no
issues. Any help is greatly appreciated. Code follows:


--
Hal Meyer
Developer, the patchwerks
http://www.thepatchwerks.com

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
2
by: Gene W | last post by:
Hi I'm using the XPBurn component , available from MSDN, to manipulate IMAPI from C#. Certainly saved the effort of translating the interfaces into .NET. However I ran into a problem when adding...
0
by: Yoandy Mesa | last post by:
hi, i found a message on this group from "Gene" talking about a modified copy of the xpburn component to solve some problem when you add more than one file from the same source directory, does any...
0
by: S Shulman | last post by:
Hi all Did anyone manage to use the XPBurn Component? I am having problems writing 2 files from the same directory. The problems may be related to the use of the AddFile method (I added the name...
48
by: Luca Pinasco | last post by:
Hello I think I resolved a lot of things about this component that before didn't function correctly... I don't know, if you are interested on this...anyway, I can send the project to people ask...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
65
by: Arjen | last post by:
Hi, Form a performance perspective, is it wise to use the ref statement as much as possible? Thanks! Arjen
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.