|
Let me tell you that this not the easiest task in the world.
If you were allowed to do this a code that has been released will leak out (through decoding or retreival of code from EXE's) and thus the company that has released the exe's will be facing a huge set back. And after the first purchase everybody could get the code and expose the intricacies of the code.
You can use software utilities called Reflectors etc that can help you in some cases but still you will end up writing the most of the code yourself even after doing that
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thanx..
But its seems to possible from a debug version of .exe build in VC++ compiler.....It seems that the compiler has the capability to do this..ya i dont have much more knowledge about compiler algo's...
Thanx a lot...
birajendu
CyberG India
Delhi
India
|
|
|
|
|
birajendu wrote: But its seems to possible from a debug version of .exe build in VC++ compiler.....It seems that the compiler has the capability to do this..ya i dont have much more knowledge about compiler algo's..
Compiler produce .pdb file for same, that why you can see sourcecode while debugging!
"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
|
|
|
|
|
Hi,
I want to send Stream Bytes from VC++.Net Windows Application to VC++.Net MFC Active-X controls along with the length and i have to read that Bytes in Active-X control with length.
Please help me out.
Thanks.
|
|
|
|
|
HI ALL,
I have a series of BMP files.I need to convert those files to a movie..
Is there any software for converting bmp to AVI??
Help me please
cheers
sangeet
|
|
|
|
|
|
i need a help or hint by anyone here..please help me..this is the codes i ve done by c++..n now i want to do the same thing as a application in MFC using c++ how to change it....please tell me as soon as possible...or leave me ur msn messenger details so that i contact you directly..thank you..
I m a very beginner for MFC so plese help me on this!
<code>#include <ctime>
#include <iostream>
#include <string>
#include <algorithm>
#include <fstream>
using namespace std;
time_t tmStart, tmEnd;
void DoStuff()
{
tmStart = time(0);
ifstream fin;
fin.open("data.txt",ios::in);
ofstream File("MyFile.txt",ios::out);
//cout << "Enter digit: ";
char str[10];
//cout << "sr"<<endl;
fin.getline(str,sizeof(str),'\n');
string line(str);
//line.c_str (),100);
//fin.open("data.txt");
cout << str<<endl;
for (int i=0; i<50000; ++i)
{
random_shuffle(line.begin(), line.end());
File << "Randomised: " << line << endl;
// File << " : " << line << endl;
// File << " : " << line << endl;
// File << " : " << line << endl;
File << " "<< endl;
// File << "Single Row: " << s << " " << s << " " << s <<" " << s << endl;
File << " "<< endl;
tmEnd = time(0);
}
File.close ();
fin.close ();
cout << tmEnd-tmStart << " seconds " << endl;
}
int main(int argc, char* argv[])
{
DoStuff();
return 0;
}
</code>
|
|
|
|
|
Your question is a bit confusing because there really is nothing to do to make this work with mfc. Create a console application with mfc and drop in everything but the main. In the main that the console application creates for you call your DoStuff();
I assume this is not what you are looking for though... Please tell us what you need, Although this sounds like homework and we can not do that for you...
John
|
|
|
|
|
this is not homework...i am in industrial training..they put me in the MFC site..and there is no one to help thats why..
|
|
|
|
|
actually i have to do a GUI interfaces using this coding...for example when we enter digits in a edit box in MFC...the results must appear in another edit box....please see my coding the similar thing i have done in C++ must be done in MFC.
|
|
|
|
|
You need to create a GUI ? The core code will all work without MFC. In MFC, you use the GetWindowText and SetWindowText methods to move text to and from controls. You use the designer to lay out your controls. Have you tried any of this, before asking for help ? If it's your first GUI app, then I'd suggest your boss is being unfair, but if you know C++ well enough, it shouldn't be too big a hurdle. Have a look through the stuff I mentioned, try to get at least a UI design, and then post again with more specific questions as you go.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is this due tomorrow?
I can tell you one thing... those <code></code> tags will not do at all.;P
-- modified at 0:16 Monday 15th May, 2006
|
|
|
|
|
|
makaveli_07 wrote: ...now i want to do the same thing as a application in MFC...
What feature of MFC do you need?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Can you show me a function to calculate logarithm of double in MFC?
|
|
|
|
|
log()
In the future, try searching the MSDN library.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
In what base? log() for natural logarithms and log10() for base-10 logarithms.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I was wondering if there was a way to detect the physical ports of the computer through a program, I'm trying to find information about it but it seems there isn't much, can anyone help me?
just another one from the crowd
|
|
|
|
|
|
|
Hi,
i've been trying to learn how to send data to other computers, i've looked at this article:
http://www.codeproject.com/internet/Client_Server.asp
i can't understand why it "adds" new text to the old text. example: the server sends a message to a client saying "Testing" then the server sends another message to the client saying "Hi"... and the data recieved will read "Histing". it just replaces the letters...
i am probably overlooking something very obvious, but could someone take a look and tell me why it is doing this?
thanks in advance
|
|
|
|
|
That's because when you reuse the buffer and receive two bytes in the second message, the bytes are stored at the beginning of the buffer. Pay attention to the number of bytes that the read-socket call returns, don't assume everything is null-terminated.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I think it's better to send (length(str)+1) so that you can simply send the null char also and no need to add a seperate null to the str at the receiving section.
- NS -
|
|
|
|
|
I am debugging a directshow filter following the steps below:
1. Set a breakpoint at some function of interest
2. Compile a debug build of your filter
3. Make sure that this debug filter is registered and not your release build (regsvr32). You can setup a custom build step to ensure this is done.
4. Press F5
5. You should see a dialog that pops up asking for the executable to be used for the debugging session. Select GraphEdit. (If you do not see the dialog you need to modify your project configuration properties under Debugging)
6. Insert your filter and do what you want. When it hits a breakpoint you'll see it.
But as I went to step 5, error came out. I saw the popup dialog, but as I chose GraphEdit, error message popped up:
"Debugging information for 'graphedt.exe' cannot be found or does not match. No symbols loaded.
Do you want to continue debugging?"
Then whatever did I choose 'yes' or 'no', debugging stopped. I am using vs2005, DirectX9.0. Thanks for your help.
-- modified at 21:52 Sunday 14th May, 2006
|
|
|
|
|
Make sure you're debugging a debug and not a release build.
Steve
|
|
|
|