473,378 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Execute an exe from memory

Hi,
I have some exe files. those are not .net assembly. just portable executable.
Now I want to load those exes to memory. then i'll run it by C++.
Also I want to load some dll files not .net assembly dll files to memrory and call methods/entry points from my C++ host application.
My target is to distribute those portable exes encrypted. and I'll run it from memory after decrypting.
many people told me about using C#.NET but mines are not assembly. AFAIK C# cant run portable executable. those are classic portable executable. Not the version 2.0.

Please give me a suggestion.
Oct 26 '07 #1
5 4988
sicarie
4,677 Expert Mod 4TB
I would suggest posting in the correct place in the future - I'll move this over to the Forum (from the Articles section) for you.
Oct 27 '07 #2
I would suggest posting in the correct place in the future - I'll move this over to the Forum (from the Articles section) for you.
oops! sorry.
the article and forum menu are same. so i did the mistake.
Oct 27 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
I think you have to use managed C++ and call CreateProcess() to run your .exe files and LoadLibrary to load up your dlls.
Oct 27 '07 #4
I think you have to use managed C++ and call CreateProcess() to run your .exe files and LoadLibrary to load up your dlls.
Actually I want to execute a byte[]
CreateProcess() does not support that.
Oct 27 '07 #5
weaknessforcats
9,208 Expert Mod 8TB
Actually I want to execute a byte[]
What is that? An array? You do not execute arrays. Please explain your intent further.
Oct 28 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dbb9h | last post by:
I've noticed a problem with calls to server.execute on a webserver running IIS 5.0. The call is used to conditionally include some asp code according to the language, but there seem to exist...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
1
by: rawCoder | last post by:
Hi All Is there a way to Execute a query (possibly including two tables and joins) on a totally disconnected dataset. By 'Totally Disconnted' , I mean there is no DB and there is no DBConnection...
2
by: nick | last post by:
Hi, I wondering if it is possible in asp.net to somehow execute a string of code as if it were a page on the server. That is to say, if I executed the following code which resided in an aspx...
2
by: Andy | last post by:
I have a problem which most people may find weird but please stick with me :) Is it possible to execute a c# application held in a memory buffer (a string) without first saving it to disk? I need...
8
by: johnlichtenstein | last post by:
I am using cx_Oracle and MySQLdb to pull a lot of data from some tables and I find that the cursor.execute method uses a lot of memory that never gets garbage collected. Using fetchmany instead of...
6
by: iulian.ilea | last post by:
Hello, I have this code: ________________________________________________________ if VarType(eval("inTotal" & arr(4,i1)))=0 then response.write "ok, dim" execute("dim inTotal" & arr(4,i1) &...
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
0
by: David | last post by:
- Are there any peculiarities with using curs.executemany(...) vs. multiple How many times are you calling execute vs a single executemany? The python call overhead will add up for thousands of...
7
by: ChaosKCW | last post by:
Hi I am trying to use pymssql, and have an issue where by the execute (not the fetch) is appearing to load all records into memory. if I execute con = pymssql.connect(...) cur =...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.