|
Thanks CPallini,
The document describes well how to read/write to EIP, but this is not my question.
My question is why there is no explicit push/pop EIP instruction in the code for my sample program?
regards,
George
|
|
|
|
|
George_George wrote: The document describes well how to read/write to EIP, but this is not my question.
George_George wrote: My question is why there is no explicit push/pop EIP instruction in the code for my sample program?
from the document:
The EIP register cannot be accessed by the programmer directly
hence you never see direct push eip / pop eip instructions in code, simply because they don't exist. Register eip is accessed by the call/ret mechanism.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks CPallini,
Cool!
regards,
George
|
|
|
|
|
George_George wrote: Cool!
Well, not so cool... Standard, I think: using call/ret mechanism is a well established method to manipulate the PC (program counter) register on wide range of different architectures.
Anyway, you're always welcome, George.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks CPallini,
Question answered.
regards,
George
|
|
|
|
|
Hi,
I am getting this compilation while passing lpszFileName which is a char[260] to GetPrivateProfileInt which accepts LPWSTR. Can I know how to typecast this inorder to avoid compilation error.
Thanks,
Venkat
|
|
|
|
|
venkat.kupunaram wrote: Can I know how to typecast this inorder to avoid compilation error.
You can't: a cast doesn't work magic, look for the real problem. The source type and the destination type are fundamentally incompatible. Looks like you’re compiling in Unicode but trying to work with ANSI strings: change your char to TCHAR and make sure you add #include <tchar.h> somewhere.
Steve
|
|
|
|
|
In addition to Stephen's reply, if you really need such a operation (i.e. passing a ANSI char string to a function accepting a wide char argument) the way to go is a string conversion, not a cast. For the purpose check out the WideCharToMultiByte documentation [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
In addition to the two previous answers (yeah, that makes a lot of additions ), I suggest this excellent article[^] if you want to understand how to work properly with strings in C++. It is a must read for all C++ programmer .
|
|
|
|
|
I have this error:
<br />
1>UpdatePanel.exp : warning LNK4070: /OUT:UpdatePanel.dll directive in .EXP differs from output filename 'D:\SVN\Licensin System\Work Package\UpdateManager\Debug\UpdatePanel.cpl'; ignoring directive<br />
1>OptionsSheet.obj : error LNK2019: unresolved external symbol "public: __thiscall ConfigFile::ConfigFile(void)" (??0ConfigFile@@QAE@XZ) referenced in function "public: __thiscall CAdvanceDlg::CAdvanceDlg(void)" (??0CAdvanceDlg@@QAE@XZ)<br />
1>D:\SVN\Licensin System\Work Package\UpdateManager\Debug\UpdatePanel.cpl : fatal error LNK1120: 1 unresolved externals<br />
What does this mean? what do i need to do?
thanks,
jayjay
|
|
|
|
|
monsieur_jj wrote: "public: __thiscall ConfigFile::ConfigFile(void)"
Seems the default constructor of the ConfigFile is just declared in the header file. check whether the ConfigFile::ConfigFile() function is written in the cpp file.
|
|
|
|
|
Hi Naveen,
here it is, it is written at the cpp file
ConfigFile::ConfigFile()
: myDelimiter( string(1,'=') ), myComment( string(1,'#') )
{
}
Thanks
|
|
|
|
|
Is this ConfigFile class in another dll or somthing? If not in a dll, check whether the the cpp file is added to the project or not?
|
|
|
|
|
|
dear all
after i debug my code, the erros displayed here: cannot convert parameter 1 from 'double [5]' to 'double'
how to solve this problem, anyone can give me suggestion. thanks
gentleguy
|
|
|
|
|
you are trying to assign an array to a double type variable. Iterate through the elements in the array and then you can assign the value at an index to a double type variable
BTW it would have been better if you could have posted the code snippet
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
modified on Monday, July 21, 2008 12:50 AM
|
|
|
|
|
gentleguy wrote: anyone can give me suggestion
Yes: Post the relevant code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
If I didn't start to know you... I would say you are evil :P
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
modified on Monday, July 21, 2008 5:50 AM
|
|
|
|
|
Nelek wrote: If I didn't start to know you... I would say you are evil
Actually you don't know me well, I'm actually evil!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Ok... confusion solved
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello,
does someone have information about creating iso files ? I think for the first time a normal iso file with an iso9660 system (so no joliet support or else) is enaugh, but i cannot find any useful information.
I get an information from ECMA but, it describes the format very bad and too easy. So i didn't find a right way to get into it.
Thanks for help.
bye,
gabbana
|
|
|
|
|
Perhaps start by looking here[^]. Note that I found this with a few simple Google searches.
Steve
|
|
|
|
|
Yes well thats an option but not suitable, because i want to do this on a lowel level.
My application will start writing iso images directly using SPTI and mmc commands. The problem with the imapi would be to produce special iso images. As the specifications say, i have some bytes at the beginning for free use before the image starts, and this is what i cannot do with the imapi i think.
So i need to do all the stuff by functsions like ReadFile,WriteFile...
Thanks.
|
|
|
|
|
Are there no other information available ? I spend about 2hours again searching different keywords with google without luck.
So if someony have an idea, please help me!
Thanks again,
bye,
gabbana
|
|
|
|
|
I need help with visual c++.
cacls(Access Control List )
i try to use function :
"system("cacls ..../e /d Everyone")
to lock any file in my computer
but when i do it for the first time to any file i can't unlock the file again
"system("cacls ..../e /p Everyone:f")
|
|
|
|