Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> C++ Embedded Resource
tansqrx
post Jun 25 2007, 10:02 PM
Post #1


Super Member
Group Icon

Group: [HOSTED]
Posts: 522
Joined: 25-April 05
Member No.: 4,374



I am new to C++ but I do have a lot of .NET experience. I need to port an existing VB.NET application to native code because one of my production machines does not have the .NET framework installed. Unfortunately .NET can not be installed on this particular machine due to other restrictions.

The current program creates a directory, extracts some embedded resources to that directory and then runs one of the extracted files on a periodic basis. The problem that I am having now is how do I create an embedded resource and then access it in C++? I am currently using Microsoft Visual C++ 2005 with CLR turned off. Any help would be appreciated as I have already searched Google for hours and came up with nothing.
Go to the top of the page
 
+Quote Post
faulty.lee
post Jun 26 2007, 03:15 AM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 479
Joined: 5-November 06
Member No.: 17,016



I'm not that good with C++ either. But one tool you can try, Xenocode Postbuilt. It can embed .Net Framework into the exe, so the target machine doesn't need to have .net installed. Maybe you can try that, then you won't need to port it to C++, which might double the work, and double the bugs as well. I've been using Xenocode to obfuscate my .net assembly, but never got a chance to use the embedded framework though, cause it require .net v2.0, but i'm mainly still using v1.1. I see that you're using VS2005, so most likely you're using .net v2.0, so you can give it a shot.

http://www.xenocode.com/Products/Postbuild/Features.aspx
Go to the top of the page
 
+Quote Post
tansqrx
post Jun 26 2007, 06:19 PM
Post #3


Super Member
Group Icon

Group: [HOSTED]
Posts: 522
Joined: 25-April 05
Member No.: 4,374



Thanks but the requirement is not to have .NET on the target machine at all.
Go to the top of the page
 
+Quote Post
The Pixel Coder
post Jan 12 2008, 10:19 PM
Post #4


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 12
Joined: 12-January 08
Member No.: 27,570



You have the same issue as i had when i started using VS 2003.
There are two ways:
1. Convert your whole code to .net-independent code (hard, but it's worth it).
2. Embed the framework IN your app: i dont really recommend this, because the .net wont act as a framework anymore, but instead it will all be loaded at once into the memory, resulting in an inefficient app. And btw, the framework is - as far as i know - like 100mb, good luck with that!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Best Php Resource Sites List(2)
  2. Embedded Database(7)
  3. Html W/ Embedded Flash(8)
  4. Direct X Resource?(3)
  5. Is Palm OS An Embedded OS?(7)
  6. What Is This Embedded And Realtime OS(7)
  7. Operating System For Ethernut: Nut/os(3)
  8. Herbology: Uses And Dangers Of St. John's Wort(8)
  9. CSS Priority Problem(7)
  10. Embedded Railway On Track Picture(10)
  11. Uos Embedded Os(2)
  12. Javascript: How Do I Create Embedded Pop-up Windows?(7)
  13. Embedded Web Voice Chat (free Or Oss)(0)
  14. Warning: Mysql_result(): Supplied Argument Is Not A Valid Mysql Result Resource In ...(4)


 



- Lo-Fi Version Time is now: 7th September 2008 - 07:53 PM