|
thanks for your thoughts anyway
|
|
|
|
|
RChin wrote:
Why in god's name would anyone want to build an app, then delete the source code anyway, especially if future fixes may be necessary?
It's kind of like that old George Mallory "Why did you climb the mountain? Because it's there" adage.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I'm not a Mallory personality then. I still have source listings and floppies from my first excursions into programming (Z80 assember and DBAS12 BASIC from an RML-380Z microcomputer), as well as everything in between. I learned very quickly about 'backup' and source control, which has saved my behind on a couple of occasions.
Steve S
|
|
|
|
|
i know i learned my lesson.
|
|
|
|
|
Just curious, is it the dialog with a connect button?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
|
|
no way to get the source code back in C/C++, because the compiler performs some optimisations on the code.
i remember that Borland C++ 3 could do so with a debug-Built project, but i don't think it works with a binary code compiled by Visual C++. And even less in Release Mode...
TOXCCT >>> GEII power
|
|
|
|
|
|
Dear all,
I use several true color icons for my main menu. However, I didn't know how to add my customized disabled icons to menu item so that the program can use my disabled icons instead of automatically change its color in its own way. By other words, how can I handle the icons in front of each menu item in popular circumstances as normal and disabled. Thanks so much.
BRs.
____
Tuan
|
|
|
|
|
Hello.
I have an understanding problem with saving complete classes to an binary file.
//First example:
<br />
Class myAnimal<br />
{<br />
int age;<br />
int legs;<br />
...<br />
}<br />
...<br />
myAnimal Bear(2, 4);<br />
fout.write((char*) Bear, sizeof Bear);<br />
fout.close();<br />
<br />
...<br />
fin.read((char*)&Bear, sizeof Bear);<br />
every thing is fine
// Second example:
<br />
Class myAnimal<br />
{<br />
int age;<br />
int legs;<br />
...<br />
}<br />
Class myBird<br />
{<br />
int age;<br />
int legs;<br />
...<br />
}<br />
...<br />
myAnimal Bear(2, 4);<br />
fout.write((char*) Bear, sizeof Bear);<br />
myBird Tweety(6, 2);<br />
fout.write((char*) Tweety, sizeof Tweety);<br />
fout.close();<br />
<br />
how do I know which class is now read from the file?!?!?!
// Third example:
<br />
Class myAnimal<br />
{<br />
int age;<br />
int legs;<br />
...<br />
}<br />
class Cage<br />
{<br />
myAnimal Bears[10];<br />
}<br />
<br />
Cage Bearcage();<br />
fout.write((char*) Bearcage, sizeof Bearcage);<br />
fout.close();<br />
and will be every single Bear be stored, or do I have to do it for each single Bear? How do I load these Bears? Every single one?
Sorry for my bad english, but I hope you understand my problem. Thank for help.
Taggi
How do you know, that Tagamoga has been assimilated by the borg?
"Recistunce ist fiutille."
Sorry for violating the english language.
|
|
|
|
|
Tagamoga wrote:
myAnimal Bear(2, 4);
fout.write((char*) Bear, sizeof Bear);
myBird Tweety(6, 2);
fout.write((char*) Tweety, sizeof Tweety);
fout.close();
// to read:
how do I know which class is now read from the file?!?!?!
myAnimal Bear(2, 4);
int type = 1;
fout.write((char *) &type, sizeof(int));
fout.write((char*) Bear, sizeof Bear);
myBird Tweety(6, 2);
type = 2;
fout.write((char *) &type, sizeof(int));
fout.write((char*) Tweety, sizeof Tweety);
fout.close();
would be one way, but it is a bit clunky. I'd recommend serialization, but without knowing more about what you are doing, that's a tentative recommendation.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Dont you need MFC for Serialization?
This little program has to be platform independant.
What do you need to know to help me? This is not a special project, I am only learning. I haved programmed for more than 5 years MFC. But soon I will work for project, that is platform independant, so I try to learn such topics and their problems before.
Serialization with MFC is easy, but how do I realize ist without MFC?
Thanks for help.
Taggi
How do you know, that Tagamoga has been assimilated by the borg?
"Recistunce ist fiutille."
Sorry for violating the english language.
|
|
|
|
|
Tagamoga wrote:
Dont you need MFC for Serialization?
Yes (it might be possible, albeit more difficult, outside the scope of MFC, but I've never tried). Your initial post did not mention platform independence, which is why I suggested serialization.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Oh, i am sorry, that I did not mentioned.
But I have thought, that nobody will use fin and so on with MFC...
Thanks for help.
Taggi
How do you know, that Tagamoga has been assimilated by the borg?
"Recistunce ist fiutille."
Sorry for violating the english language.
|
|
|
|
|
I need help coding. I am new to C++ and learning.
i have a dialog box with a "connect" button that i need to code to bring/call a .exe application.
this connect button is connected to an edit box and whatever is in the edit box (ip address), that's the address the .exe application is supposed to connect to.
i hope it is not confusing, cause it is for me.
help, please
g.r.
|
|
|
|
|
CABS wrote:
i have a dialog box with a "connect" button that i need to code to bring/call a .exe application.
In the button's handler function, use CreateProcess() or ShellExecute() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
prefer a CIPAddressCtrl to be sure the IP Address you type in is valid.
then, open a socket, connect it to that ip with whatever port you want...
here is the connect button override...
TOXCCT >>> GEII power
|
|
|
|
|
hi,
I'm trying to use id3lib for manipulating ID3 tag, I need to store data in Comment field but as far as I've understood id3lib only takes text into that field.....anyone knows if there're some other libraries that permits to work on id3 tag or is experienced it it's use? thanks
Paolo
|
|
|
|
|
I am running a VC++ MFC based application using Visual Studio .NET, as it starts up it loads most of it's DLLs & then freezes so it never really starts the application it stays in this frozen state. The only way out of it is by killing it. I rebooted my machine, plus rebuilt my application but it didn't work.
What can be causing this to happen?
|
|
|
|
|
Sounds a little bit like a virus scanner or a firewall..
Jens
|
|
|
|
|
Thanks but that's not the case here, could it be some static initialization that's a bit corrupted? just a guess
|
|
|
|
|
Well, maybe, but not very likely?!?
Is this the case with EVERY application or just with one specific app?
Jens
|
|
|
|
|
just this one specific app
|
|
|
|
|
Try to isolate the problem.
If you're loading special DLLs add them one by one
to a new "dummy" project until it happens to this
app also.
Jens
|
|
|
|