|
I just download a server and client source code. But I do not know how to build it as my project. Can somebody give some guide.....I really a fool of computer programming...
|
|
|
|
|
Hi,
For compiling, you need a compiler. A compiler is free when you buy an IDE
You can buy one here at codeproject with some discount, or download the free trial of Visual Studio 2005 beta.
Then open the project file and press the Build button. If you don't even know how to build, maybe it's an idea to ask the developers of the application to build it for you?
Geert
Want to spread the newest version of your software automatically for free? Use Updater!
Visit my website: www.gvhsoftware.org
|
|
|
|
|
The source code that I downloaded are all in .cpp and .h and I don't know how to test it. I mean when I open the Visual C++ software and open the source code and click on the Rebuild button, it will prompt me to build a default workspaces. So,I click OK and it will compile. But I don't know how to link all the source code together so that I can compile and execute, and come out a DOS which is the final result of the source code. Hope that you understand what I was asking. I really don't know how to express my question.
I just want to use all the source code to become my project source code. The source code that I downloaded have two folder, one is client and another is server.
|
|
|
|
|
I hope there is more than just source files.
Isn't there a DSW or DSP file? You have to open that one (just use File -> Open project or Open workspace).
then you should be able to build (if you don't require platform sdk updates or something like that)
Geert
Want to spread the newest version of your software automatically for free? Use Updater!
Visit my website: www.gvhsoftware.org
|
|
|
|
|
Usually there is a build instruction in the readme file...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
But the source code that I downloaded dont't have readme file. It just have .cpp and .h file
|
|
|
|
|
Details please but it sounds like you have downloaded just a class not the sample project.
Elaine
The tigress is here
|
|
|
|
|
me think you need to include the server files in your server project and the client files in your client project.
I assume that you know how to create and manage a simple project with Visual Studio ( vc6 or vs.net )
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hello,
I have inserted a maximize button in my dialog box title bar.Now using the OnSize handler i want to set the size of dialog box myself.So what i am doing is that when i press Maximize button i call MoveWindow() function in OnSize() handler and then the size of dialog should be set.this i am doing since i dont want the usually output of maximize button(whole screen is occupied by the dialog).I want the dialog to be increased in size upto only a certain height.
But whatever the size i am setting from MoveWindow for the dialog,initially itself size of dialog is set to that size.(without me pressing the Maximize button).
I searched on net and found a document stating that when dialog is created some default window handlers are called.Out of these OnSize is one.So the code for MoveWindow() is executed at creation only?Is this true?
Please help...
i am not sure whether i am proceeding in right direction....
if not what should i do?
thanks
|
|
|
|
|
OnSize is called at initialization.
You can prevent your OnSize handler code from executing the first time by using a bool variable that is set to false in the class constructor. And at the end of OnInitDialog(), you set it to true. And check if it is true in OnSize(), and if it is true, only then call MoveWindow() or whatever you want to do in OnSize().
this is this.
|
|
|
|
|
Hi,
check out the OnGetMinMaxInfo() handler.
In the class-wizard it's a window message not a dialog message.
Regards
|
|
|
|
|
sayup wrote:
using the OnSize handler i want to set the size of dialog box myself.
I think you'd be better off handling WM_SYSCOMMAND and resizing the window to the desired size for the SC_MAXIMIZE case.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Is this from experience? The MINMAXINFO Structure definitely has a field for entering the MAXIMUM size of the window, so why wouldn't filling that in be enough?
|
|
|
|
|
Blake Miller wrote:
Is this from experience?
Yes, but handling WM_GETMINMAXINFO should also work.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Ravi Bhavnani wrote:
Yes, but handling WM_GETMINMAXINFO should also work
According to the documentation for the WM_GETMINMAXINFO Notification[^]:
"The maximum tracking size is the largest window size that can be produced by using the borders to size the window. The minimum tracking size is the smallest window size that can be produced by using the borders to size the window."
It seems to be used for manual resize tracking. I'm not sure it's also used while maximizing/minimizing the window, but I suspect it isn't. If anyone tries it, please let us know
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hi,
I want to develop GUI-based plugin for Win32 IDE. I want to add a menu item to VC++ IDE. I m a beginner in COM & ATL programming, but I suppose I can use COM & ATL to create GUI plugin for VC++ editor. Please suggest/help/direct/guide me for same?
-Manish
|
|
|
|
|
class Integer {
int i;
public:
Integer(int ii) : i(ii) {}
const Integer operator+(const Integer& rv) const
{
cout << "operator+" << endl;
return Integer(i + rv.i);
}
};
Regarding the codes above what's the difference between
...
return Integer(i + rv.i);
...
and
...
Interger a(i + rv.i);
return a;
...
In addition in what context should one of these syntax be used?
|
|
|
|
|
the only difference remains in the fact that in first last sample, you create a temporary variable, which only exists to return its content.
it is so avoided if you want to optimize your code.
the only way it could be useful is when debugging, by setting a breakpoint at this point, you can control how the temporary variable is created.
that's all.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I modified the forward example a lit bit. In which constructor, copy-constructor and destructor announce themselves!
...
Interger a(i + rv.i);
return a;
...
Its output was
constructor -> copy-constructor(cuz return by value) -> destructor(local object goes out of scope) -> destructor(temp object generated by compiler which was to hold returned object got destructed)
...
return Integer(i + rv.i);
...
Its output was
constructor -> destructor
I pretty clear with the former's process and obviously it has a much more overhead compare to the latter, but I wonder since there's no CC calling in the former, how can I get the returned value?What exactly the process the former is taking???
|
|
|
|
|
In the first case, the compiler creates a temporary object on the stack (in the function, object a). You return this object by value, so the compiler creates another temporary object on the stack (the return value) and then calls the copy constructor to copy object a into the temporary object. Than, object a gets destroyed and after finishing the statement, the temporary return value gets destroyed also.
In the second case, you introduce no temoray variable in the function itself. You call the contructor to return the value. In this case, the destructor of the returned temporary variable is called.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
In the second case, you introduce no temoray variable in the function itself.
in fact, it is done implicitely, but a tempoary object is still created...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
by making return Integer(i + rv.i); the compiler creates a temporary object which is initalized by its constructor (called here with the parameter i + rv.i).
then, by executing return the program exits the local scope of the function and so calls the destructors of the local variables...
nothing more, nothing less.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Actually, there is no real diference. Do whatever is clearer to you....
Any decent compiler is intelligent enough to optimise away the temporary variables. The compiler does a much better job at low-level optimisation than any programmer, I usually leave this job to it and keep the code the clearest for me.
My 2 cents..
Guy
|
|
|
|
|
no real difference. But depending on the return type of the function, the second bit of code could create another temporary.
For instance:
int function()<br />
{<br />
return Integer(i + rv.i);<br />
}
and
int function()<br />
{<br />
Integer a(i + rv.i);<br />
return a;<br />
}
will both create a temporary object (even 'a' could be considered temporary) and return the encapsulated int value.
While
Integer function()<br />
{<br />
return Integer(i + rv.i);<br />
}
and
Integer function()<br />
{<br />
Integer a(i + rv.i);<br />
return a;<br />
}
Will both create TWO temporary objects, one inside the function, and one as the return value.
|
|
|
|
|