hmm.. never used vectors before..
would I need to do the std::vector or would vector work? (just wondering for future stuff)
Type: Posts; User: Sephiroth222
hmm.. never used vectors before..
would I need to do the std::vector or would vector work? (just wondering for future stuff)
COOL :)
thanks!
salem.. used yours because I saw it before daved's.. how does that work exactly?
is it possable to do something like this?
struct program
{
bla bla
};
if(Fix == 0)
{
Fix =1;
do
{
actually no its not.. when it loops back the second time fix will be = to 1 so it won't go into that if loop and it will later be set back to 0 so the...
as messy as it is.. here ya go!
oh yeah.. theres still that issue where it won't go the whole way sometimes if it hits a key that has keys under it.. im gonna fix that later..
#include...
yay got it workin.. post the code in a bit
odd....
after playing around with it a bit... i took the variable i created
TCHAR achData[MAX_VALUE_NAME];
and changed it from TCHAR to BYTE (was just guessing.. didn't know there was a...
well.. from what I can tell so far.. I don't even need to use the RegQueryValueEx() function.. because RegEnumValue(); seems like it should do what I need it to do if I use the rest of it (instead of...
i got the RegGetValue(); from here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/reggetvalue.asp
i dunno.. I tryed RegQueryValueEx(); but i can't get it to...
can you help me figure out why im getting this error.. here is my code
#include <string>
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
#include <fstream>
#include <iostream>
can't figure out how to use regqueryvalue.... heck I barley understand what this is doin so far LOL, all Is what i mention in the code below.
here is what I have, all except for a few changes was...
naw this line here
TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" >> Skey),
thats like a pointer kinda... it hooks onto this HKEY_LOCAL_MACHINE
points to that key in the...
I guess from my understanding of what ive been reading in order to read the values in a regestry key you have to open the exact key first.
The uninstall key has various subkeys, the Skey variable is...
if (RegOpenKeyEx( HKEY_LOCAL_MACHINE,
TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" >> Skey),
0,
KEY_READ,
&hTestKey) == ERROR_SUCCESS)
Skey is a variable, is there any...
ok cool :), I'm gonna keep checkin back here though.. if anyone wants to know where I got it to see if I can use it here's the link
...
Is it legal to use one of the example codes given on the site in a program you are gonna place on a large number of computers?
also the program will not be used for profit.
yeah I included windows.h .. I can't remember what the error I was getting.. it may not have errored, it was possably that I didn't know how to get the computername from it.
the site gives this...
Thanks for you help :) its working now. I used salem's method, only I changed char to a string and hostname to computername.
I tryed using the getcomputername way.. I tryed the example on the...
Im using windows XP and Microsoft visual c++ 6.0... all the computers it will be retrieving the workstation names from are xp
I'm pretty new to this, trying to write a program that compairs 2 lists, unfortunatly the list is created by another program that saves the list as "computername".txt
this program will be run on...