473,568 Members | 2,850 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

res protocal for point to swf resource file

Can some one please help me with this code?
I've spend 2 days on it. And I see the question all over the place but
I do not see the answer. No on is answering the question I am about to
ask.

I am trying to (inside my c++ exe file) include a resource (my swf)
file and open it the Create Window command I found at the following
url.

http://www.codeproject.com/useritems/FlashGui.asp

This page showed me how to display my SWF file from my c++ program with
just 3 lines of code that. It's a miracle because everywhere I
checked they made it see so hard; using 100's of lines of code. And the
example didn't even work. This page is really great. I haven't tried
the other part of the code. But supposedly with another 10 lines of
code he shows you how to get messages from flash.

Find this code was such a relief, but they the author says very
casually:

"Also worth noting is fact that you can insert swf file as resource and
have everything in one executable. Path to your flash (second param to
createwindow) would be then in this format
res://YOUR_EXE_PATH/YOUR_RES_NAME"

Several people have questioned him on this but he has not answered
them.

Can some one from this group go to this URL and answer this question.

I think I've been able to add my SWF file as a resource.

I am using the following code with the res protocol to get to the swf
but its not working:

CreateWindow("A tlAxWin", "res://C:\Documents and
Settings\kouros h.keshavarzi\My Documents\Visua l Studio
2005\Projects\r unXApp\debug\ru nXApp.exe/#135",
WS_VISIBLE|WS_P OPUP,0,0,GetSys temMetrics(SM_C XSCREEN),GetSys temMetrics(SM_C YSCREEN),0,0,0, 0);

I've tried several variation of this but none work.

May be I created my resource wrong. I'm not sure how to get all these
ids.
I've only been trying to learn and do c++ for a couple of month now.

Thanks for any help anyone can give me.

Kourosh

Aug 18 '06 #1
1 2833
"John" <ko*****@nextle velsw.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Can some one please help me with this code?
I've spend 2 days on it. And I see the question all over the place but
I do not see the answer. No on is answering the question I am about to
ask.

I am trying to (inside my c++ exe file) include a resource (my swf)
file and open it the Create Window command I found at the following
url.

http://www.codeproject.com/useritems/FlashGui.asp

This page showed me how to display my SWF file from my c++ program with
just 3 lines of code that. It's a miracle because everywhere I
checked they made it see so hard; using 100's of lines of code. And the
example didn't even work. This page is really great. I haven't tried
the other part of the code. But supposedly with another 10 lines of
code he shows you how to get messages from flash.

Find this code was such a relief, but they the author says very
casually:

"Also worth noting is fact that you can insert swf file as resource and
have everything in one executable. Path to your flash (second param to
createwindow) would be then in this format
res://YOUR_EXE_PATH/YOUR_RES_NAME"

Several people have questioned him on this but he has not answered
them.

Can some one from this group go to this URL and answer this question.

I think I've been able to add my SWF file as a resource.

I am using the following code with the res protocol to get to the swf
but its not working:

CreateWindow("A tlAxWin", "res://C:\Documents and
Settings\kouros h.keshavarzi\My Documents\Visua l Studio
2005\Projects\r unXApp\debug\ru nXApp.exe/#135",
WS_VISIBLE|WS_P OPUP,0,0,GetSys temMetrics(SM_C XSCREEN),GetSys temMetrics(SM_C YSCREEN),0,0,0, 0);
\ is the escape character. I.E. "\n" is a newline. If you actually want
to put a backslash inside of a quoted string you have to put two. "\\"
becomes "\"

Try changing all the \'s in your path name to \\ and see if it works.

Other than that, this is windows specific.
>
I've tried several variation of this but none work.

May be I created my resource wrong. I'm not sure how to get all these
ids.
I've only been trying to learn and do c++ for a couple of month now.

Thanks for any help anyone can give me.

Kourosh

Aug 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5801
by: Gabriel Lozano-Morán | last post by:
First of all sorry for the cross-posting but I am not sure wether this belongs under internationalization or just general. Environment: Visual Studio .NET 2003 Problem: Newly added and renamed resource files are not automatically linked to the object they belong by the IDE
5
1815
by: Julia | last post by:
Hi, I need to localize my asp.net application and I would like to populate drop down box from a resource file I see that ms localization tool kit can save lists in a resource file but I don't want to use it How would you save a collection in a resource file?
1
3989
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ==> .txt files from .resources or .resx files. ==> .resources files from text or .resx files.
2
1678
by: Joe Thompson | last post by:
Hi, I am trying to use PlaySound in a VC++.net Windows app (VS 2003). I can use it to play a file but now I want to play it from a resource. I have two questions: How do I add a wav file to my project as a resource (steps please) How do I call PlaySound once that I have the wav file as part of the resource.
6
2626
by: martin | last post by:
Hi, I have noticed that every aspx page that I created (and ascx file) has an assosiated resource file aspx.resx. However what I would like to do is have a single global resource file for the site. The resources in this global resource file will possibly change quite often, there I guess this rules out using web.config as every time...
3
3324
by: al | last post by:
Hi, I use a resource file (.resx) to store user's settings such as language and other strings. The problem i'm facing is that when the user changes one of the strings in the resource file, those changes are shown by VB.NET untill after the user reloads the app. Is there any work-around for this behavior so changes can appear without...
11
1956
by: Alan T | last post by:
I added a resource file into my project, to store the caption of buttons and labels.. How do I make use of this resource file to dynamically assign to the buttons and labels ?
8
13656
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?
12
5249
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
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. ...
0
8117
jinu1996
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...
0
7962
tracyyun
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...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
bsmnconsultancy
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...

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.