|
Krishnatv wrote: How to swape two strings without using temporary variable. can u help me in code this plz.
BTW it's much better use a temporary variable for string swapping. Just a thought.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Hi ,
My cousine who is doing final year of mCA asked me about the project writing for MCA course.. Since MFC is OOP and difficult to document I guess.
She wanted in the following format.
Requirement Analysis<br />
<br />
-feasibility<br />
<br />
Technical<br />
<br />
Behavior<br />
<br />
Economical<br />
<br />
-Design<br />
<br />
- First level data flow diagram<br />
<br />
- Second Level data flow diagram<br />
<br />
- Flow chars.<br />
<br />
- ER diagram<br />
<br />
- Database design<br />
<br />
-Normalization<br />
<br />
- Interface design<br />
<br />
- Forms<br />
<br />
- Reports.<br />
<br />
- On line help<br />
<br />
- Testing<br />
<br />
-Test cases<br />
<br />
- Error log<br />
<br />
- System requirements<br />
<br />
- Limitation <br />
<br />
<br />
<br />
- Code.
Out of these flow chart and ER diagram seems to a bit messy in MFC since its not procedural. Also should there be given all the class method descriptions
or what.. or code explanation. this is an educational project.
What do you think. I am not prefessional of MFC but have some idea.
Do you have any links for such documentation of any project or tips.
pathak
-- modified at 9:58 Monday 29th May, 2006
|
|
|
|
|
As the project is on MFC there should be class diagrams for each class.
You need give some time to draw the ER diagrams for the project.
A class diagram includes class name followed by instance members and then the member functions.
You can find the class diagrams in progamming in C++ by Balaguruswamy.
For OO design patterns go through this page.
http://www.eventhelix.com/RealtimeMantra/Object_Oriented/object_design_tips.htm[^]
Regards
|
|
|
|
|
For Object Oriented Diagrams, UML would be the best. I use Visio.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
Means, I have to write block diagram for each class showing class members, methods. then I should draw some ER diagram or UML showing relations between classes. Also I need to describe methods, I need to explain some special code rsponsible for functioning of the program.
pathak
|
|
|
|
|
1) Test cases is done at the same time as requirements. That is because the test case is the requirement written backwards. ie.
Requirement, Clikck Button X, Y must appear.
Test case. Click Button X, does Y appear?
2) Why use DFD for an OO project. Use class diagerams, they work better.
3) No one hardly ever does this, and often follow the following:
a) Meet customer in pub, go through requirements.
b) Design it in head while in pub.
c) Go home and put the code together.
d) Go through it with the client in the pub.
e) Get paid.
Or at least some variant. For example, if the client is important, all this is held in nice restaurants etc, but the important thing is that alcohol is consumed.
Nunc est bibendu
|
|
|
|
|
fat_boy wrote: No one hardly ever does this, and often follow the following:
Thanks,
My cousine already needs it. She is studying MCA final year.
She has developed a MFC application but as you know to document it
was harder as it was a bit complex application.
Ok anyway I will tell her to draw some bocks to the no of classes.
Put class methods in them then at the bottom of class block put method descriptions. put some class heirarchy, few UMLs. Put some explanation of critical code used. over all introduction, put some summary. thats it.
No one is going to understand project on this explanation anyway.
anyhow those should fill 100 pages.
pathak
|
|
|
|
|
pathakr wrote: My cousine already needs it. She is studying MCA final year.
MCA as in Microsoft Certified Archetect? If so then...
1) Why would anyone get this? Surley they know this is just a money grab to Micro$oft.
2) If she really is working on this should she already know how to do all this documentation. I mean that's a big part of what archetects do. It would be like a building engeneer not being able to write a blueprint.
E=mc2 -> BOOM
|
|
|
|
|
Albert Einstein. wrote: MCA
MASTER of computer application (in india)
pathak
|
|
|
|
|
Hi Pathak,
I really appreciate the format which you have given and other guyz suggestions, but it will make your cousin's life easier if he/she also consider following tips:
1. As more and more Projects are failing due to poor problem formulation, thus industry is seriously taking steps to cope with that issue through:
a. CSH (Classification of Stakeholders)
b. QCoH(Qualitative classes of stakeholders
c. defining issues through rich pictures
d. using Cogitive Maps (CM) instead of conventional DFD's, ERD,s etc.
2. Do not forget to include
a. Operational Fesibility (consider user's of the system)
b. Political Feasibility (consider user's and organization as a whole, mainly organization's internal environment)
c. Schedualing Feasibility (very very very important, its Time Management)
3. And i agree with other guys that since it is a OO application, then you "should" use class diagrams to define the attributes and methods.
and in the end, all i can say is "Wish your cousin all the best".
cheeerz
"Being a Simplebeing means Human Being"
|
|
|
|
|
Hi guys
How can use this interface ?
I tried by calling 'ExternalInterface.Call("function","Args")' in the action script of my swf file(On Button press ) . Then this swf file is loaded to a flash activex control.
The documentation says that it will rais an event named "FlashCall". But it
is not working ..
I am able to set variable usig m_pFlash->SetVariable() function
Any idea about the usage of external interface ???
Thanks & Regards
Krishnan
If u can Dream... U can do it
|
|
|
|
|
how r u doing?
SaRath
|
|
|
|
|
SaRath C wrote: how r u doing?
Fine, Just freaking around here
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
1. List dirs on a remote machine.
2. Select a dir, list the files of the dir. It's better to support thumbnail.
|
|
|
|
|
Do you need to read one directory in ftp?
whitesky
|
|
|
|
|
and its sub dirs
no ftp server
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
followait wrote: 1. List dirs on a remote machine.
2. Select a dir, list the files of the dir. It's better to support thumbnail.
Is there is any client/ Application of yours at Remote Machine
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I'm implementing both the client and the server.
Do you mean I should do a protocol myself?
I don't know if there is a easy way, because access control is also needed.
|
|
|
|
|
followait wrote: Do you mean I should do a protocol myself?
Yeap thats the easiest way i can found
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
What is the difference between Socket and Port.
If I use
CSocket sock.
sock.Create(200); // for server side willit create port
and for Cleint side
CSocket sock
sock.Create(); // will it create socket
thanks
Regards.
|
|
|
|
|
From MSDN:
"Definition of a Socket
A socket is a communication endpoint — an object through which a Windows Sockets application sends or receives packets of data across a network. A socket has a type and is associated with a running process, and it may have a name. Currently, sockets generally exchange data only with other sockets in the same “communication domain,” which uses the Internet Protocol Suite.
"
"Port
A port identifies a unique process for which a service can be provided. In the present context, a port is associated with an application that supports Windows Sockets. The idea is to identify each Windows Sockets application uniquely so you can have more than one Windows Sockets application running on a machine at the same time.
"
End of MSDN quotes.
Normally you don't choose the port to use unless you are a server, and that is only the listener port that is defined. You do however, have a choice to let the server listen on a particualr network if your box is multi-homed (multiple NICs or network cards). This is called "Binding". If your providing a common well known service, it is customary to listen on the port conventionally used for that service. Lets say port 25 for SMTP. When your "accept" returns, the socket connection will actually use a different port for it's communication with the client (usually the next available port) from that point forward leaving the common port to listen for further connection attempts via additional calls to one of the forms of "accept" available.
The client usually does not pick the port it will use on it's end. It usually states which family, port, and address it wants to connect to. This means it is saying it wants to connect to port 25 on the server at address whatever. The local port used is arbitrary and is usually just the next available port and in no way required to be any specific port.
|
|
|
|
|
From the above answer:
"......The client usually does not pick the port it will use on it's end. It usually states which family, port, and address it wants to connect to. This means it is saying it wants to connect to port 25 on the server at address whatever. The local port used is arbitrary and is usually just the next available port and in no way required to be any specific port."
----------------------------
As I undersand the Client get the local next available port , but if the Firewall is intalled on Client end, then Firewall can block the ports to be open by any application. then would it fail to open the any next avaible port on cleint side
Regards.
|
|
|
|
|
I am not sure how firewalls work to be honest. Bits and pieces here and there but nothing substantial enough to claim an understanding.
I have not looked into the layers of the OSI model below that needed to implement sockets so I'd be a little reluctant to venture there.
I do know that when my socket apps attempt to connect to a server, even through a loopback address (long story) the local firewalls usually catch it and prompt the user. It's almost consistent with your statements so I would guess your on the right track.
Sorry I can't be much help.
|
|
|
|
|
Firewalls are mainly used to block incoming packets rather than outgoing packets. If it is a firewall blocking outgoing packets unless that application is a "trusted" application, then it would have to be manually added by the user anyway. The usefulness of a firewall filtering outgoing connections is debatable, because this means that the malicious software is already installed on the client computer so the battle is more or less already lost.
The actual port number for outgoing sockets is usually not important and it's usually some rather high number (as the lower port numbers are all reserved for specific applications, eg 21 for ftp, 80 for http)
http://www.iana.org/assignments/port-numbers[^]
|
|
|
|