| View previous topic :: View next topic |
| Author |
Message |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Aug 27, 2007 6:13 pm Post subject: [Attention Zune Users] It Isn't Zune software its zunemarket |
|
|
i hate zune marketplace
it sucks. out loud
so why do i want my computer eating all the cpu power when i could just skip it and have a 10x faster zune software experience
so i made this program
simple, easy.
1 to enable
2 to disable
-this assumes zune is at C:\Program Files\Zune\
it renames the marketplace .dll to marketplace1.dll
no error message even...microsoft sure is DUMB1!1!
_________________
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Mon Aug 27, 2007 6:22 pm Post subject: |
|
|
Wth is a zune
haha jk, I don't have one tho..
_________________
LAWLrrenzolicious |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Aug 27, 2007 6:29 pm Post subject: |
|
|
They're not dumb, it's graceful error handling. Also, don't hardcode paths, get them dynamically. Here is an example of retrieving the path to program files.
| Code: |
#include <windows.h>
#include <shlobj.h>
#include <stdio.h>
int main( int argc, char* argv[])
{
char ProgramFiles[MAX_PATH]; LPITEMIDLIST li;
if (SUCCEEDED(SHGetSpecialFolderLocation(NULL, CSIDL_PROGRAM_FILES, &li))) {
if (SHGetPathFromIDListA(li, ProgramFiles)) {
printf("Path to program files is %s", ProgramFiles);
}
CoTaskMemFree(&li);
}
return EXIT_SUCCESS;
}
|
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Aug 27, 2007 6:32 pm Post subject: |
|
|
you cant CHOOSE where zune is dl'ed too
microsoft does it automatically >.>
_________________
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Aug 27, 2007 6:35 pm Post subject: |
|
|
| blankrider wrote: | you cant CHOOSE where zune is dl'ed too
microsoft does it automatically >.> |
How does this justify your hard-coding?
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Aug 27, 2007 6:37 pm Post subject: |
|
|
because it willl be there 98% of the time and if the person doesn't have it there, they have to brains to disable it?
and lazy
_________________
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Aug 27, 2007 6:41 pm Post subject: |
|
|
| Many people don't have Windows installed on C:\. Just because it works for you doesn't mean it'll work for other people.
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Mon Aug 27, 2007 6:50 pm Post subject: |
|
|
A compromise between laziness and (erm) working-ness, would be to use %ProgramFiles%\Zune
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Mon Aug 27, 2007 7:04 pm Post subject: |
|
|
Edit: Only for managed C++, my bad if this is CLR, or Win32
Edit2: damn, its CLR, o well, u get the idea on how to make a GUI version of this.
u could also make someone choose there destination...
using the switch function to use default or to use ur own destination
| Managed C++ Only :: Lurc wrote: | y dont u do something like this
make a textBox for the Destination.
and a check box that sais "Default (C:\Program Files\Zune)"
now instead of stating where zune is placed
use this
| Code: | char oldname[] = textBox1->Text + "\\Zunemarketpace.dll";
char newname[] = textBox1->Text + "\\zunemarketplace1.dll"; |
code snippet:
| Code: | if(checkBox1->Checked == true) {
textBox1->Disabled = true;
char oldname[] = "C:\\Program Files\\Zune\\zunemarketplace.dll";
char newname[] = "C:\\Program Files\\Zune\\zunemarketplace1.dll";
}
else if (checkBox1->Checked == false) {
textBox1->Diabled = false;
char oldname[] = textBox1->Text + "\\zunemarketplace.dll";
char newname[] = textBox1->Text + "\\zunemarketplace1.dll";
} |
|
_________________
|
|
| Back to top |
|
 |
|