Search:
Type: Posts; User: defiler_z
Search:
Search took 0.07 seconds.
-
April 25th, 2005, 01:16 PM
Well,
thanks for the answers ... i figured out what i needed ...
-
April 23rd, 2005, 03:52 AM
You just move over x and y coordinates .. z coordinate stays the same.
C3DPoint just add a z coordinate ... if I create 2D point it is 2D .. if I create 3D point it first create 2D and then add...
-
April 22nd, 2005, 05:11 PM
Hi ...
I have 3 classes : CBase(char *name)->C2DPoint(float x, float y)->C3DPoint(x, y, z coordinates). I have predefined all operators(+, -, *, /, +=, -=, *=, /=, <<, >>, =, copy constructor - all...
-
March 11th, 2004, 04:21 PM
I haven't looked at your code but i am writing something like that and i'll tell you what i am doing: i use my own class for connection(that i've write, wrapping the standard functions send(),...
-
March 11th, 2004, 04:06 PM
It is normal when you've put recv() function in your main thread to block everything untill the file is downloading(If you want to know why read in MSDN or Network Programming for Microsoft...
-
March 10th, 2004, 03:18 PM
So I'm writing a Telnet Server(under Windows 2003 using VS .NET) and here is my problem: i want when the client connect to the server to execute commands(all commands that appear when you type 'help'...
-
March 9th, 2004, 08:48 AM
In Visual Studio .NET go to Solution Explorer and give Properties of your project. Then go to Linker,Input, Additional Dependencies and type wsock32.lib.
I don't know about VS 6 but i suppose it is...
-
March 7th, 2004, 10:30 PM
Yes, it has. And it is with SetConsoleTextAttribute as RussG1 wrote.
I've done only a small message bar(in red) and status bar(blue or ... i don't remember) on the bottom of the console.
If you...
-
March 7th, 2004, 08:50 PM
Well, use that:
int main(int argc, char *argv)
argc shows you the number of entered parameters, and argv contains them.
In your case the first parameter of argv contain your "parameter", ...
-
March 4th, 2004, 09:00 PM
It is simple:
char *p = "hello world";
You can do that
for(i = 0; i < strlen(p); i++)
cout << p[i];
or
while(*p)
{
-
March 4th, 2004, 08:27 PM
Well, yes you can and what Kheun has done is working. Look it!
-
March 4th, 2004, 08:11 PM
First: you have to reserve memory for p:
I hope you do that in mystring(char */*put variable- it's more clear*/);
And do that mystring(): p("") {}
Second: i think that code does not make...
-
March 4th, 2004, 07:53 PM
Well what the program has to do? Because if it is something small it does it and terminate. If you have to enter some data it should stop and wait you to enter something. Otherwise this :...
-
March 4th, 2004, 06:53 PM
There are some other functions like _spawnl, _spawnp... and _execv, _execve... Look in the MSDN.
Why system() doesn't work? Try to execute it in a separate thread(for example look _beginthread or...
-
March 4th, 2004, 06:43 PM
And don't you think that something like iLoop is more clear than just i???
And as Mick said
-
March 4th, 2004, 02:42 PM
Thank you guys!
I've made it.
-
March 4th, 2004, 12:20 PM
Try this:
#include <time.h>
char CurrentTime[9];
char CurrentDate[9];
_strdate(CurrentDate);
_strtime(CurrentTime);
-
March 2nd, 2004, 02:42 PM
Thank you!
I've already made it. However if want to install, run or stop the service i have to do it from the console(cmd.exe).
I want to do these things from other program that I've...
-
March 2nd, 2004, 12:51 PM
I don't know how you are going to do this server, but i'll suggest you that: you can make your own close command;
receive data with recv() function:
char buf[MAX_SIZE];
recv(/*socket*/, buf,...
-
March 2nd, 2004, 12:03 PM
warning: my english is not very good, so if I've made mistakes sorry!
Well, it depends on what you want to do with your program. I will suggest you that: leave your main function in an infinite...
-
February 29th, 2004, 03:10 PM
I want to start an apllication(that I've already written in C++) as a service under Windows 2000 and send start/stop signals to that service with other program. I've red about this in MSDN but it's...
|
Click Here to Expand Forum to Full Width
|