|
I want to write something like the Sub7 Configure program, where it overwrites some of the values already in the seperate exe.
I've tried changing some of the constant data in the program and saving it but it doesn't work. I think it's because I need to change some of the info in the EXE header.
My problem is that I downloaded a EXE Header info checker and checked a program I made, them I changed some stuff in that program and checked it again and it was all the same!
Any ideas on how I can change what's already in the exe?
P.S. I don't want to use String Table Resources either.
wWw.KruncherInc.cOm - My cool programs
|
|
|
|
|
how do you split an integer variable into 4 byte variables, I'm looking for a function to achieve this.
int i;<br />
byte b1,b2,b3,b4;<br />
<br />
b1 = Byte1(i);<br />
b2 = Byte2(i);<br />
b3 = Byte3(i);<br />
b4 = Byte4(i);
Can anyone help?
Thanks
|
|
|
|
|
Many way to do this.
One brute force way is:
b1 = i & 0x000000ff;
b2 = (i & 0x0000ff00) >> 8;
b3 = (i & 0x00ff0000) >> 16;
b3 = (i & 0xff000000) >> 24;
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
not a very safe-cast method but who cares it works:
<br />
int i = 12345;<br />
unsigned char byte1 = ((unsigned char*)&i)[0];<br />
unsigned char byte2 = ((unsigned char*)&i)[1];<br />
unsigned char byte3 = ((unsigned char*)&i)[2];<br />
unsigned char byte4 = ((unsigned char*)&i)[3];<br />
r -€
|
|
|
|
|
I will add this one:
int i=12345;
BYTE* ab = (BYTE*)&i;
// use ab[0-3]
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
assume i is 2 bytes for simplicity.
int i = 0x1234;
byte c1,c2,
then according to your logic, the output would be like this.
c1 = 0x34; and
c2 = 0x12;
which is wrong.This is because the way it is stored in the memory. and if you consider for 32bit integer value, the error would just double.
and according to PJ
c1 = 0x12; &
c2 = 0x34;
here the output is correct,
hope you got the picture now.
|
|
|
|
|
Where should I place my exe so that it starts running when Windows starts
|
|
|
|
|
With Windows XP:
C:\Documents and Settings\You User Name\Start Menu\Programs\Startup
Signature under construction.
|
|
|
|
|
that depends on the language windows is running...
for the french version, copy you exe into C:\Documents and Settings\"your user name"\Démarrer\Programmes\Démarrage
there should have a way to get this folder directly...
TOXCCT >>> GEII power
|
|
|
|
|
SHGetSpecialFolderLocation(..)
with csidl
CSIDL_DESKTOP
MSN Messenger.
prakashnadar@msn.com
"If history isn't good, just burn it." - Sidhuism.
|
|
|
|
|
All these starts only when user logs in.
another way is to place exe path in
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
or
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
greatest thing is to do wot others think you cant suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
the simplest method is
under the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
create a String type key and put full path of your exe
like c:\YourFolder\YourExe.exe
I want to change Myself..Can u help me?
|
|
|
|
|
By placing my exe in the given path, its not activated when Windows starts up
|
|
|
|
|
By placing my exe in the following path(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run), the exe does not starts running automaticaly when Windows starts up
|
|
|
|
|
please once more verify the path you given in registry.
that will work..
I want to change Myself..Can u help me?
|
|
|
|
|
Helloo
i think every body told you the registry value but how implement is still i think any body told
so here it is->
CRegKey a;
a.Create(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
a.SetValue("you project path","your project name");
a.Close();
Got it i think
Alok Gupta
visit me at http://alok.stormpages.com
|
|
|
|
|
|
his problem is not in creating the registry value,
it can be created by manually or by program, the PROBLEM is that didnt work in his computer..!!!!!!!!
I want to change Myself..Can u help me?
|
|
|
|
|
Does anyone know of a way to discover all of the preprocessor defines that are set before and during the VC++ compilation of a module? I just want to know the results after plowing through a morass of headers. GNU CPP has such an output. Does VC++? Thanks.
Chas L.
|
|
|
|
|
|
Thanks, but as you know that gives me the result, not the cause of the emitted code.
I figured out I can use the GNU cpp.exe to get most of the info I want. Just need to get at all the built-in MSC defines. There is a list of them in the compiler docs, but it seems to be a small number of them...
Thanks again.
Chas L
|
|
|
|
|
Hi,
Is there a set of commands that deals programatically with FTP ?
My "WishList" will be something like:
Handle h=OpenConnection (Hostname, Username, passwrod);
h->Send...
s->receive...
Anything like that ?
Shay
|
|
|
|
|
Are you looking for CFtpConnection
MSN Messenger.
prakashnadar@msn.com
"If history isn't good, just burn it." - Sidhuism.
|
|
|
|
|
OK, we are getting there.....
Can you give me a small example of how CFtpConnection will connect to a host named ABCD with user XX and password YY ?
Thans a lot
Shay
|
|
|
|
|
Click[^]
MSN Messenger.
prakashnadar@msn.com
"If history isn't good, just burn it." - Sidhuism.
|
|
|
|