|
How to do it?
I want to create an application with VC,and the application can create .exe file
Such as,software can produce electronic album
I have no idea,please introduce some skills about this.
Sorry,My english is not very good.
|
|
|
|
|
In order to create a .exe file, you first need to become very familiar with the PE file format. As you are an obvious beginner, I would advise against it. Stick with something more on your skill level.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If you want to write a compiler that can create .exe files then you need to know about the PE (Portable Executable) format. This defines the header format and internal layout for executable files on Windows. There are articles on Code Project about the PE header format and Microsoft have some Knowledge Base articles on in, there are tools on www.sysinternals.com and on Code Project for examining PE headers and you'll probably want a book or two on compilers as well. Good luck.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
If you search on the www.codeguru.com you can find an article on that article it tells detaily about exe files.
|
|
|
|
|
Hi All,
I need to decrypt a file encrypted by a php script..it can be any algorithm which is good enough and cannot be cracked easily..if it cannot be cracked at all will be the best solution..but for now i am just looking for any of the encryption algorithm that can encrypt the data good enough not to be cracked..easily...and that can be decrypted easily using VC++...can someone help me out in doing the same..I need it very urgently...any of the algorithm..Rijndael..or Blowfish or anyone..but it can also be decrypted easily..
Thanks a lot..
Regards
|
|
|
|
|
hi! i have explorer window and i should check "does my window have parent folder", only check, don't browse(!) i use COM interface IShellBrowser? but it doesn't help me, because i need only checking.
Does anybody have such experience ?
thanks for answers.
|
|
|
|
|
mitok wrote: ...i should check "does my window have parent folder"...
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
yes , i can. i'm developing a plugin for Windows Explorer (windows Vista). I have windows explorer and i need to check when in my window - desktop! in other words there isn't parent folder of folder which is opened in my explorer window. (but don't browse). application shouldn't depend on concrete language.
thanks for answers.
|
|
|
|
|
Hi All,
I am using CStringArray object for adding number of strings in it. I used following code
m_HTML_Page_arry->SetAt(i,strPagePath);
where m_HTML_page_arry is declared as CStringArray *m_HTML_page_arry in .h file of this class. I got assertion on the above code. So if anybody have solution to this then plz forward it to me.
Atul
|
|
|
|
|
|
Hi
I use Add as following way, though there is Assertion, what is the problem in this code.
m_HTML_Page_arry->Add(strPagePath);
Thanks in Advance
Atul
|
|
|
|
|
have you allocated memory for this?
m_HTML_Page_arry
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
Hi Chandu,
I did not allocate memory to m_HTML_Page_arry object. I used it directly. So can I allocate memory to it.
Thanks in advance
Atul
|
|
|
|
|
allocate it and see.
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
Do you have something akin to:
m_HTML_Page_arry = new CStringArray; Why are you not just using an actual object rather than a pointer to one? Most of the time, this indicates a design flaw.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi David,
Thank u very much.. problem gets solved
Atul
|
|
|
|
|
And in the end remember you must delete this object.
|
|
|
|
|
Hello:
Looking for local (around Western Philadelphia, PA suburbs -- preferably Exton/Malvern area) person with experience coding C++ Windows Mobile apps.
SQL Server 2000/2005 experience helps.
Please send me a note if you are local and interested.
Please (please) no recruiters and check the map to see if you are local first. India is not local
Thanks
~Bill
|
|
|
|
|
How could I convert a BSTR value to an enum value in a COM class???
|
|
|
|
|
switch/case?
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Does not work on strings in C++, the switch statement will compare the pointers. This might work if you're using static strings (and the string pooling flags are set) but won't on user-supplied strings.
If you need to do string comparisons in C/C++, you have to use a multi-armed if statement with something like strcmp .
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
A BSTR is still a pointer to an array of wide characters, so you can still pass it to any string manipulation function. If it contains string representation of an integer you can pass it to swscanf or _wtoi .
If it contains the name of the enumeration value, you're out of luck. Those aren't compiled into the program. You'll have to manually write code to handle this using string comparisons.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
Hello Friends,
Is it possible to delete the file which I am running from within the File??
Means the code for deleting the File should reside in the File Itself Which I want to delete.
I know in a Simple manner it will provide Access Violation Error.
please tell me if you have any Idea,
|
|
|
|
|
It is available in codeguru.com, just find it out.
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|