Dear all,
I want to embed a motorola s file in my exe file using Visual
C++.net,
and then I can use the data in the Motorola file. How should I
do?
I am urgently need your help.
Thanks a lot. 2 2981
"Robert" <wa*********@gm ail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Dear all,
I want to embed a motorola s file in my exe file using Visual
C++.net,
and then I can use the data in the Motorola file. How should I
do?
I am urgently need your help.
Thanks a lot.
Why do you need to "embed" a file in an executable? Why not just write your
executable so that it opens and reads the file?
Anyway, if you really need it to be part of the executable for some reason,
you might be able to create a resource out of it which you can import into
your project and which will then compile into the executable. But resources
are specific to your operating system (Windows, in this case), and importing
them into a VC++ project is specific to VC++. You should ask in a VC++ or
other microsoft newsgroup.
(By the way, I have no idea if your "s" file, whatever that is, is
proprietary data, but if it is, you'd better check on whether it's ok to
distribute it before distributing your executable.)
-Howard
Howard wrote:
Why do you need to "embed" a file in an executable? Why not just write
your executable so that it opens and reads the file?
Anyway, if you really need it to be part of the executable for some
reason, you might be able to create a resource out of it which you can
import into your project and which will then compile into the executable.
But resources are specific to your operating system (Windows, in this
A portable way is to write a program that reads the executable in binary
mode and generates some like:
const char filecontent []=
{
byte1, byte2 ...
};
Add a header file with the extern declaration for filecontente if needed,
add other variable with the file lenght if you need it, compile and link
with the main program, and voila.
--
Salu2 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wolfgang Schwanke |
last post by:
Dear usenet,
I'm having the following small problem.
I've been ask to add some Quicktime panoramas to a website. The author of
the panoramas has made two versions of each: One in MOV format, which needs
a Quicktime plugin, and one Java applet. He's also kindly supplied me with
sample HTML code for each.
The code looks like this (simplified):
|
by: Tony Sutton |
last post by:
I have this following code in my html file:
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#
version=7,0,0,0" width="320" height="320">
<param name="src" value="file.dcr" />
<embed src="file.dcr"
pluginspage="http://www.macromedia.com/go/getflashplayer" width="320"
height="320">
</embed>
|
by: Anna |
last post by:
Hi all.
I don't know if I should ask this question here or on html group.
I'll try.
I have an embed element whose src is a big SVG file.
The width and height of embed are set to 100%.
When the SVG file is bigger than the screen size, the rest of it is
just cropped, and cannot be seen.
I tried to add a style="overflow:scroll" attribute to the embed, but
it doesn't work.
|
by: M |
last post by:
Hi Folks,
Does anyone know how to embed a file into a resource in C#? You
seem to be able to embed Icon, Bitmap, Cursor's & Strings. But how do you
embed a file???
In VC++ version 6 you would, Find the Resource, Load It, get its size, and
then write it out to where ever you want it.
|
by: benmourra |
last post by:
Hi all,
I'm trying to create a web page using VS2005, ASP.NET 2.0, that will
allow me to choose from a list of media files on my computer and then
play my selection within an embedded Windows Media Player on the page.
I've been able to eventually find out how to embed the player into the
page by manually inserting code into the source view of my aspx file.
It plays the file specified in the source view, but I'd like to be able
to...
| |
by: abrtlt |
last post by:
I would like to have a web page in which, when the user clicks on any
of several specific elements, a specific audio file is played, without
reloading the page.
The specific audio file name is obtained from a PHP script (accessing
a MySQL database) that could be called using XMLHttpRequest and
JavaScript would write in a "div" tag an "embed and play" HTML tag
containing the audio file name.
I am not sure this would work, as the embed tag...
|
by: CodeLeon |
last post by:
Hi, All. I am creating a setup program. The way it works is that the
user creates their setup info, my program generates the C# code for a
setup executable, embeds the xml file containing the info for the
setup, and compiles the whole thing into one EXE. How do i embed
resources, and access them, into that assembly?
|
by: qualitychecker |
last post by:
Hello thanks for your help..
I try to reference a PHP module from within a HTML file, see below
----------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<titleMy title </title>
</head>
<body>
on place un embed
<embed id="embed1" alt="ne marche pas..." src="ws.php?
|
by: VigneshS |
last post by:
Hi,
I am a newbie to Globalization and Localisation Concepts. I tried almost all the methods of the Globalization concepts. But i cannot be able to embed a text file within a Resource.
My need is to open a solution programmatically, select a Project within, and get a source resource file. Then, select a number of cultures and create culture specific resources with the content of the source resource assembly.
I aquired upto...
|
by: dream party |
last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |