|
You can find the designation of the SWF format from this link: http://www.half-serious.com/swf/format/[^]
Additionally, here is a link to a working download of Flash Format SDK, released by MacroMedia. It is an SDK used to read and write SWF files: http://www.softlookup.com/preview/dis6903.html[^]
Hope these will get you started.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hi...
There are some problems which I am not able to solve. They are
consider an MDI application....with three child windows open in it....with three buttons on each child window in the toolbar....actually this is a static MDI application...with three child windows initially....
1. The three child windows in the file should be toggable. Suppose if I click on the 1 in the toolbar then the child window should be shown and if I click it once again then it should be hidden not destroyed.
2. The three child windows should be made dockable like in VC++ the windows are dockable.
3. There are three views in this file. One for Bitmap, second for Color table and the last one for Text. For bitmap and data I don't seem to face any problem but for the color table, I will have to display the colors that are present in the bitmap image in tabular form. The tabular columns consists of three columns one for Index, second for colors in the bitmap and the third for the RGB values of each individual color. But I don't know how to do that.
Please help me regarding the above.
Regards,
Ruchit Sharma. R
|
|
|
|
|
Ok, I may be guessing on some of this.
1. Create your flotaing windows with a base class of CControlBar, and make them members of CMainFrame with the frame as their parents. You need to call EnableDocking etc on them like you do for toolbars
2. To show and hide, map the toolbar button in the mainframe and have code such as:
ShowControlBar(&m_myBar, (m_myBarGetStyle() & WS_VISIBLE) == 0, FALSE);
to toggle it on / off
Not sure about the colour stuff.
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
Thanks for the reply....
But if i make my base class as CControlBar will i be able to handle text and bitmap...Please do u have any other idea for this problem other than using the CControlBar....plz suggest some ideas....
Thanking you,
Ruchit Sharma. R
|
|
|
|
|
Hi
I have to m/c with windows. Both are connected through internet. I want to transfer automatically some file from 1 m/c to the other.
I have VC++ 6 with me. Can anybody help me in this regard.
I have done networking programming in unix with c. but I do not have programming exp with windows.
So it will b of real help for me if any of u can guide me in writing a ftp server and client in C for windows.
Thanks
|
|
|
|
|
|
ClassLibImImageBj error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmt.lib(typinfo.obj)<br />
ClassLibImImageBj error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmt.lib(typinfo.obj)<br />
ClassLibImImageBj error LNK2005: _strncmp already defined in libcmt.lib(strncmp.obj)
My executable which runs the static library is
C++ - code generation - Multithreaded Debug
My static library project setting is
C++ - code generation - Multithreaded Debug DLL
Any hints?
I have try to ignore some libraries but it turns up that I am missing some linkage to some symbols etc.
thank you
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
are you sure the RTTI is turned off?
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
It is turned off.
Any other clues?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
You need to use either static or DLL linking of the runtime library, not both at the same time.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hi!
What is the computational difference between nested conditional statements and non-nested dito?
When I have lots of sequential conditions, for the sake of readability I tend to write
void SomeFunction()
{
if(!conditionA) return;
...
if(!conditionB) return;
...
if(!conditionC) return;
...
} instead of
void SomeFunction()
{
if(conditionA)
{
...
if(conditionB)
{
...
if(conditionC)
{
...
}
else
{
return;
}
}
else
{
return;
}
}
else
{
return;
}
} Are there any performance issues, stack mumbo jumbo or something else that could be interesting to know about that make these two ways of writing different?
|
|
|
|
|
--
Dad, how strange it is that the pig can speak. *thoughtful pause* It must have lost its "oink". (my 3-year old daughter Moa, while watching Babe)
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. (Douglas Adams)
|
|
|
|
|
I belive that both are equally efficient.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
The second one has a more clearer control over all the possibilities of the execution path whereas first one is easier to comprehend and faster as well cause it will straight away exit the function when certain condition(s) are met.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Totally agree. A function shall have a single (!) point of exit. This pays enormously when debugging.
If you structure your code well enough and stay away from 500-line functions, then there is no problem with that.
Bernd
|
|
|
|
|
Hi!
berndg wrote:
Totally agree
With which version do you agree? None of them has a single point of exit. Both of them perform exactly the same conditional tests in exactly the same order.
--
Dad, how strange it is that the pig can speak. *thoughtful pause* It must have lost its "oink". (my 3-year old daughter Moa, while watching Babe)
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. (Douglas Adams)
|
|
|
|
|
Oops! I overlooked that one, haven'd scrolled down far enough. In that case both are evil, because the paradigm holds: each function shall have one exit point.
I find the most natural way of writing this is like so:
if (a) {
...
} else if (b) {
...
} else {
...
}
Bernd
|
|
|
|
|
The easiest way would be to compare the generated assembly code, if they are different after the optimizer (disabled in debug) has done its work.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hello y'all
In my application, I have tons of messages in the debug window that say
First-chance exception in BurCalc.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
Can anybody give me a hind how I have to check out this issue. I'm regularely using CString and CMaps... is this a source of troubles? But I'm using it also in other applications without any problems...
Any help?
Regards,
Daniel
|
|
|
|
|
Pointer problem?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
If you are using VC6,
goto the debug menu, select the Exceptions option.
Find Access Violation in the list. Click Stop Always.
Now when the violation occurs, the debugger will stop in the offending code. This should help you track down the problem.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Michael P Butler wrote:
If you are using VC6,
goto the debug menu, select the Exceptions option.
Find Access Violation in the list. Click Stop Always.
Hi, i would also like to enable this feature, however, i cant find the "debug" menu or the "Exceptions" item you mention.
Could you be more specific on how to enable this feature?
Thanks!
|
|
|
|
|
Ernesto D. wrote:
Could you be more specific on how to enable this feature?
Sorry, the debug menu doesn't usual appear unless you are debugging your app.
If you run your app by press F11, the app will stop at the first line. You should then see your debug menu. Set the option and hit F5 and you can start to find the problem.
Hope this helps,
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
|
Im looking for a good tutorial on importing text files, rearraging the data, then writing it to a new file. Anyone know a good one???
thanks
|
|
|
|