|
|
Can someone tell me some simble code which add my program into startup registry.(english isn`t my first language )
|
|
|
|
|
hyyppa wrote: an someone tell me some simble code which add my program into startup registry
neither mine. And you are not alone in this?
String ^exePath = Application::ExecutablePath;
if ((Registry::GetValue("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", "Program Name", ""))->Equals(""))
{
Registry::SetValue("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", "Program Name", exePath, RegistryValueKind::String);
}
else
MessageBox::Show("Already in Registry");
-- modified at 16:02 Monday 30th January, 2006
|
|
|
|
|
Thousands thanks for you
|
|
|
|
|
This is a part of project.. can i get help in this project !!
:((
Exercise 1:
A server that echoes client input
You are required to produce client and server programs based on the procedures DoOperation , GetRequest and SendReply (see CDK3 Section 4.4). These operations have been simplified so that client and server exchange messages consisting of strings. In Exercise 2, you will put the arguments of DoOperation (such as the procedure identifier) into a request message.
The client and server behave as follows:
Client: this takes the name of the server computer as an argument. It repeatedly requests a string to be entered by the user, and uses DoOperation to send the string to the server, awaiting a reply. Each reply should be printed out.
Server: repeatedly receives a string using GetRequest, prints it on the screen and replies with SendReply. The server exits when the string consists of the single character `q'.
Use the following (or equivalent C) definitions for Status and SocketAddress , which are in C++.
--------------------------------------------------------------------------------
enum Status
{ Ok, // operation successful
Bad, // unrecoverable error
Wronglength // bad message length supplied
};
typedef sockaddr_in SocketAddress;
--------------------------------------------------------------------------------
Implement DoOperation, GetRequest and SendReply. The recommended prototypes are given in the definitions in the appendices. In the C++ definitions they are included in the classes Client and Server . The Status value returned reflects the values returned by UDPsend and UDPreceive (see below).
DoOperation
sends a given request message to a given socket address and blocks until it returns with a reply message.
GetRequest
receives a request message and the client's socket address.
SendReply
sends a reply message to the given client's socket address.
UDPsend and UDPreceive
The procedures DoOperation, GetRequest and SendReply must use two procedures UDPsend and UDPreceive to be written by you, which respectively send and receive a message over/from a socket. You are to implement these functions using the system calls sendto and recvfrom.
Each procedure returns a value of type Status which reports on the success of its execution. For example, if the sendto or recvfrom system calls return negative values, your procedures should return a Status value of Bad.
UDPsend
sends a given message through a socket to a given socket address.
UDPreceive
receives a message and the socket address of the sender into two arguments.
Use the recommended definitions for SocketAddress and Message and the recommended prototypes for UDPsend and UDPreceive. In the C++ defintions, the latter are to be found in class Socket.
Choosing a server port
You will want to run server processes that can coexist with other people's processes in the same computer. You need to select an agreed port number for the server to receive messages from clients. Two servers on the same computer cannot use the same local port number. You will therefore want to choose a port number that is sure to be different from other people's port numbers. If everybody takes the first unreserved port number and adds their uid, there should be no such clashes - i.e. :
aPort = IPPORT_RESERVED + getuid() ;
How unreliable are datagrams?
As part of this exercise, you should design an experiment to find out whether you can cause datagrams to be dropped. Describe the experiment and discuss its results in a comment in your client program.
please don't forget to help me
|
|
|
|
|
|
realy .. i neeeeeeed help quickly
heeeeeeeeelp help
|
|
|
|
|
|
|
|
|
You really think that people here will do your homework for you ?
Did you even try to get started ?
We can help you if you post SPECIFIC QUESTIONS. So, start to work it out and when you are stuck ask a question.
|
|
|
|
|
|
Hi there, i have read reference about linux and found something nice. SQUID , it like a firewall but we can reject a packet request. But the problem is linux, it's so dificult to create application on it . So i want to get the SQUID into windows.
I have read article in here provide by Jesus O, about Packet Filter API, and Sniffer article, i want to combine it both, but the problem is how to block or reject the request, not block the IP address. For example if someone request :
http://ww.somewhere.com/somefile.mov
Then we put filter of file (not filtering IP address). For this we filter any file that have extension *.mov, then the request above will be rejected.
How can we make that, i hope anyone can help.
Thanks.
|
|
|
|
|
If u are looking for squid for windows (since u said it is so hard to write appz 4 linux), check this out:
http://www.acmeconsulting.it/pagine/opensource/squid/SquidNT.htm
http://www.acmeconsulting.it/pagine/opensource/squid/squidnt25.htm
P.S.
google did it again
|
|
|
|
|
Thanks bro, that excellent links. The links have source code to (it open source ofcourse). Thanks a lot.
Have a nice day.
|
|
|
|
|
Respect man !
Every time a man get his answer a little/thin ray of light shaters the night ... of knowledge
|
|
|
|
|
for my project work, I need help with sample code..
1) 5 students to input on one program (5 items per record, where 2 are key items)
2) should have a small menu (input, change, delete, report & exit)
3) codes to store input data in a single file at server
4) simultaneously access server to retrieve data on key items
project can be : student marks, books library, cinema name/artists, or any thing you feel comfortable
Best Regards,
Bobby
|
|
|
|
|
Bobby Dreamer1985 wrote: for my project work, I need help with sample code..
1) 5 students to input on one program (5 items per record, where 2 are key items)
2) should have a small menu (input, change, delete, report & exit)
3) codes to store input data in a single file at server
4) simultaneously access server to retrieve data on key items
project can be : student marks, books library, cinema name/artists, or any thing you feel comfortable
If you can afford USD 40 or so per hour, there would be many takers here. For cheaper rates try RAC (Rent a Coder).
Regards,
Nish
|
|
|
|
|
you mean IRS 1760 !! a aa aaa !! if I don't get help in code project then I will show my wide smile to my old professor & she will do it for me.
(but that would be my final touch).
Best Regards,
Bobby
|
|
|
|
|
Bobby Dreamer1985 wrote: not MC++
Then why did you ask in the MC++ forum ?
Bobby Dreamer1985 wrote: / VC
How do you mean, 'not VC' ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Sorry...
It's my mistake and I was already kicked by Chris, why do want to do it again.
Today I have posted in in VC++ forum,
pray for me !!!
Best Regards,
Bobby
|
|
|
|
|
WHAT IS MEANT BY MFC?
HOW TO CONNECT C++ WITH SQL?
sri
|
|
|
|
|
Google is your friend. And neither of these questions belong here
1. MFC is the microsoft foundation classes, a framework for C++ windows apps
2. That depends on what compiler you're using, but the web is full of examples.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I would recomend ADO. If u are using vc++ 6 (i.e.) there is a component dll file called msado15.dll, which is the stuff u need. U might want to check out http://www.codeguru.com/cpp/data/mfc_database/ado/article.php/c6729/, after squizing the best out of google
|
|
|
|