Hey,
Im using visual studio 2008, if I add a reference to the project references, but don't call it, using the "using" statement, and then test it out on a computer that doesn't have it, will that cause a problem?
The situation I am in is that I am referencing the iTunes com library, what will happen if my program runs on a computer without the com library installed, even if the com library isnt called?
Thanks,
ethangk
10 1859
Give it a try - Trial and error are the best ways to learn.
What's the worst that could happen: Your program doesn't run?
Thanks for the quick reply :)
The only problem is that I only have my desktop, which I am using to develop, and has the iTunes com library installed, and im unsure if I uninstall iTunes, if the com library will go too, and I am a little iffy about uninstalling iTunes for a few reasons. Il see if I can uninstall just the iTunes com library.
I published it and then had a looksie through the files it generated. One of them was a "Interop.iTunesLib.dll.deploy" along with "MyProgramName.exe.deploy". I got rid of the deploy on both then moved them to a seperate folder from the one they were generated in. I then moved the ituneslib.dll to another folder and ran the program successfully. Keeping in mind that the file with the itunes code in isnt actually run in this build, this gives me the feeling it will work?
@ethangk
Read up on virtualization and Virtual Machines. This is going to be pretty darned useful to you. It is the process of creating a virtual computer running within your computer. So if you are running WIndows Vista, you can then run a Windows XP computer within its own window on your Vista box. This way you can own one PC, yet test on multiple operating systems with different configurations. Each Virtual Machine runs from a hard drive FILE on your computer. So you can keep a Win2k, WinXP, WinVista, WinXPNoItunes, and so on very easily. You can have them return to their original state after each launch. You can back up their state by just duplicating their hard drive file.
@ethangk
Since iTune Shipped as a part os OS installation.. Do the system on which you are trying to test it have the same operating system as that of your's ? If that is the case It should work.. otherwise tlhintoq's Suggetsion to use virtual machine is quite good.. Just try ir once..
Thanks!
I had considered this, although I am pretty low on HDD space, which made it kinda difficult. I ended up just sending it to a friend though, who doesnt have iTunes or the iTunes com library installed, and even though its being referenced, but not called, the program runs fine :)
Thanks
ethangk
@madankarmukta
The only OS that I know of that ships iTunes pre-installed is OS X, and the system I am developing on is XP Professional
@ethangk
Could you please ellaborate more on what you wann to say..?
Thanks!
Thanks but I have fixed the problem. I was unsure if a non existent reference that is not called would throw an error, but it doesn't.
Thanks
ethangk
@ethangk
You're quite correct.
Null Reference Exceptions only occur when you attempt to use a variable that has not been assigned. Simply having a variable that has not been assigned to a value is not going to cause any problems so long as it's not accessed in your application.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: xmp333 |
last post by:
Hi All,
I am trying to hide my JavaScript source. The method I chose was to
keep all the important source in a password protected folder, and then
use a SRC="folder/script.js" to include it...
|
by: MLH |
last post by:
I am working with Access 2.0. I have imported
a report from an old application for use in a new
database being build in Access 2.0. The report
developed in the old mdb file
Macro "Outpaper...
|
by: S. van Beek |
last post by:
Dear reader,
For removing a reference in the VBA reference form I receive from Doug
Steele the following code:
...........
References.Remove refCurr
|
by: ElGordo |
last post by:
I was recently given .Net project files to work on. When I open the
Solution file in VS.Net, I always get the message:
"The solution appears to be under source control, but its binding...
|
by: julian_m |
last post by:
I'm having problems with include. I wrote a small example which shows
what's going on...
I should say that the problems started after I moved to a shared
server. All was working fine in my local...
|
by: Danil Dotsenko |
last post by:
Wrote a little "user-friedly" wrapper for ConfigParser for a KDE's
SuperKaramba widget.
(http://www.kde-look.org/content/show.php?content=32185)
I was using 2.4.x python docs as reference and...
|
by: jkn |
last post by:
Hi all
Python 2.4.2 (#1, Apr 26 2006, 23:35:31)
on
linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "<stdin>", line 1, in...
|
by: usafshah |
last post by:
C:\Documents and Settings\Link>nslookup
*** Can't find server name for address 192.168.0.100: Non-existent domain
Default Server: UnKnown
Address: 192.168.0.100
> mypc
*** UnKnown can't find...
|
by: mp- |
last post by:
Hi
I would like to do the following:
rename('/home/testfile.txt', '/home/to/a/potentially/non-existent/
directory/testfile.txt');
PHP apparently won't auto-create the directory structure if...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |