|
I use Visual studio 6.0,I want to open exe or dll file to see C++ code,just do"go through the "Open Project" menu and select the EXE/DLL file",what to do else?
Thanks!!
|
|
|
|
|
Anonymous wrote:
,I want to open exe or dll file to see C++ code,just do"go through the "Open Project" menu and select the EXE/DLL file",what to do else?
you are asking for impossible thing(In today scenario atleast)! you can't see the source code by opening the dll/exe in Visual Studio.
And how are you so Sure that, that Executable was written in c++?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote:
you are asking for impossible thing
unless he uses a decompiler, which is of course, absolutely forbidden if he doesn't own the code (which seems to be)...
moreover, the code won't be perfectly written back to how the owner wrote the code
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
he uses a decompiler
I have never seen a decompiler in my Life! do u ?, Moreover how can Decompiler convert the code written in machine language to HighLevel langauge!, how could it possible!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote:
I have never seen a decompiler in my Life! do u ?
never what is hacking ?
ThatsAlok wrote:
Moreover how can Decompiler convert the code written in machine language to HighLevel langauge!, how could it possible!
that's its job... in fact, decompiling an exe in debug mode is very easy as the compiler inserted source informations (to allow to debug) ; with machine code, it has to identify the machine CPU (to know what language set is used), and so regenerates - awfully - a C++ code which is an interpretation of what it found in the binary...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
in fact, decompiling an exe in debug mode is very easy as the compiler inserted source informations (to allow to debug) ; with machine code
But I believe Software Vendors doesn't deliver you Debug mode applications!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
that's certain !!
buty imagine the case you'd like to see how your own code is generate (not in asm), this would be an easy way to do that...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
you'd like to see how your own code is generate (not in asm), this would be an easy way to do that...
Yeah I know that ......
And what about the Article!, we are already One month late!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote:
And what about the Article!, we are already One month late!
yes, i'm sorry, but it seems that we can't synchronize
are my mails losts ?
as i requested you before you went off, you told me you'd provide an HTML template for me for me to write the article.
can't you still connect to msn ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
i requested you before you went off, you told me you'd provide an HTML template for me for me to write the article.
Check you mail!
toxcct wrote:
can't you still connect to msn ?
nope, still yahoo only!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I do this in windows forms app with multiline textbox
String *s;
s = "helo";
TraceBox->Lines->Add(s);
and it results:
An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll
Additional information: Collection was of a fixed size.
Why?
9ine
|
|
|
|
|
If I were to guess I'd say the Lines in the TraceBox are a fixed-size collection, so you aren't allowed to call Add on it. But I can't say for sure, because I don't know what is the type of TraceBox...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
TraceBox is just a name of the Text Box:
private: System::Windows::Forms::TextBox *TraceBox;
and its MaxLenght variable set to pretty large size.
It is like EditBox in VC++.
9ine
|
|
|
|
|
9ine wrote:
TraceBox is just a name of the Text Box
Oops! Sorry, I missed it in the title of your post.
I don't think you can add lines in that way. In the help for the Lines property there's a note that says: "By default, the collection of lines is a read-only copy of the lines in the TextBox. To get a writable collection of lines, use code similar to the following: textBox1.Lines = new string[] { "abcd" }; "
But adding lines to a copy of the collection isn't the same as adding lines to the textbox, either. Why don't you simply use something like this:
String *s;
s = "\nhelo";
TraceBox->AppendText(s);
Hope that helps,
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Yes it works, thanks
9ine
|
|
|
|
|
Hi
I have developed an application using the CBannerStatic class. For this I have used example given at : http://www.codeproject.com/staticctrl/bannerstatic2.asp
I What I want is when I create EXE and run it, it should show the scrolling text. And I am statically adding the text at InitDialogue() function.
Now the problem is I want to remove the form border and want to show only the Backcolour and text when I run it.
Is there any way to remove the form border, hide form etc....Any help plz
Regards
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Try removing the border style in the dialog's template using the dialog editor, and making your control fill all the space in the dialog.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Im using boZoi library to implement Elliptic curve cryptography to my VC project.The functions output r in the format of hexadecimal and OCTETSTR(octant string) now if i want to show the output in the edit box control of a dialog box...its not working.
OCTETSTR str;
HexEncoder hex(str);
CEdit* poEdit = static_cast<cedit*>(GetDlgItem(IDC_EDIT3));
poEdit->SetWindowText(hex);
hex cant b converted to CString or LPCTSTR...it gives type casting errors.
|
|
|
|
|
titi@yahoo.com wrote:
OCTETSTR(octant string)
How many Byte One character take in OCTETSTR?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
What on earth is an OCTETSTR ? It's obviously a different format entirely, and so needs some sort of conversion class.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
HexEncoder doesn't provide a direct conversion to char* or CString . It only offers the possibility to output its content to an std::ostream . You could use an stringstream for that and then extract the string from it.
On the other hand, OCTETSTR is just a typedef for std::vector<unsigned char> , so you could iterate through each element and convert it to hexadecimal notation using sprintf like this:
void OctetStrToHexString(const OCTETSTR& v, CString& sResult)
{
LPTSTR p = sResult.GetBuffer(v.size()*2);
for (OCTETSTR::size_type i = 0; i < v.size(); i++)
p += _stprintf(p, _T("%02X"), (int)v[i]);
*p = _T('\0');
sResult.ReleaseBuffer(v.size()*2);
}
Then your code could be written as follows:
OCTETSTR str;
CString sBuffer;
OctetStrToHexString(str, sBuffer);
poEdit->SetWindowText(sBuffer);
Note I haven't actually compiled nor tested the code shown above, so it may contain errors.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Ive used this code but the compiler gives v as undeclared identifier.whas v??
Thanx for ur help
|
|
|
|
|
Oops! v was meant to be the OCTETSTR parm, sorry. Change the function header to this:
void OctetStrToHexString(OCTETSTR v, CString& sResult)
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I'm trying to rewrite a console application with more efficiency and I am getting nailed by memory assertions. The biggest difference is that I'm deriving my own objects from CObject and my own list from CObList but that's not where I'm having a problem. I wrote my own iterator but something is calling it's destructor and goes down in flames. I have this now:
<br />
Iterator * iterator = new Iterator();<br />
<br />
for (iterator->Clear(); (!(iterator->MaximumValueReached())); (*iterator)++) {<br />
... does work ...<br />
}<br />
The iterator code works fine in the previous version of the code and I didn't touch it since then. Execution happens once through then goes back up to the for, it iterates fine, exits to the above for loop and immediately enters the destructor. The only time I delete this iterator (on purpose) is in the destructor of the class member this code is in and that's much later.
Also, in the iterator I have a pointer to a struct. The struct exists by using 'new' and it crashes when I 'delete' it.
To note: I was having problems by an assertion being thrown because _CrtCheckMemory returns false which I found out means that there is some counter that counts my mallocs and when it hits 1023, it throws the assertion. This problem mentioned at the beginning of this message started occuring before this assertion so I don't have access to that problem but the two might be related. I might start by changing my old malloc/free statements to new/delete.
Any help to this would be much appreciated. I don't know why I'm getting memory issues just by a couple class derivation rewrites, hopefully you can help me.
|
|
|
|
|
Why are you reinventing the wheel like this ?
Christian Graus - Microsoft MVP - C++
|
|
|
|