|
Hi,
I want to run the Application at system startup( when ever its start/boots up) without placing its EXE in startup folder.
Any idea / link ?
Thanks
Regards.
|
|
|
|
|
you can start it by creating new string key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run ( for all users )
or
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run ( execute only if current user login again) in registry, which should contain the path to your application. you can give any name to this key
-Sarath
|
|
|
|
|
Put the Full path of the Application (.exe)into the registry under
for local machine accessible for all users
HKLM\Software\microsoft\windows\CurrentVersion\Run
for the particular user
HKCU\Software\microsoft\windows\CurrentVersion\Run
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
There are 2 places in the registry that you can use for this:
If you only want to run your application once on the next startup then add a new key to
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\"
If you want your exe to run every time windows is started then make a new key in
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\"
Don't think you are, know you are...
custom hardware & software - olloc.be
|
|
|
|
|
|
Damn you guys were fast
Don't think you are, know you are...
custom hardware & software - olloc.be
|
|
|
|
|
test
|
|
|
|
|
What is this?
Are you in Testing?
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
|
Hello Community,
how to draw an CTreeCtrl with different colors, when a node has a child items i would like to show him with a green color an when hot to show with f.e. blue color?
thanx for any help
break;
|
|
|
|
|
you m ay have to write an owner drawn tree ctrl.
it is only possible to set the text color for whole items in a stadard tree ctrl.
search code project, there are alot of treectrl stuff.
-Sarath
-- modified at 9:47 Wednesday 17th May, 2006
|
|
|
|
|
Hi Sarath,
thanx fon answer
break;
|
|
|
|
|
|
Hi,
its finish!
thanx for your help
brak;
|
|
|
|
|
Hi everybody.
I'm writing an aplication that use sockets, in fact there are 2 apps, a server side and a client side.
Well, I'm new in sockets programming, anyway, I started to write the app. and it does what I want but
I don't like very much and there are some issues.
This what I'm trying to do:
The server side, a Win32 App, without UI, start a thread that have an infinite while with a switch
checking the state of a variable called "State":
switch(State)
{
case 1:
// wait for a connection
case 2:
// close socket
case 3:
// special state
}
The thread after a client connection change the state to 3, where should start to send to client the names of the files in the
PC where it runs, (using CFileFind). Meanwhile the client create a text file to save that info.
Well, I have write both applications, and it works, but with some issues, and this is why I'm here.
My questions:
- Is this logic correct for programming sockets?´(I mean is it well thinking??)
- How you would do a programm like that?
I need some advice.
Thankx folks.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
|
Using CSocket is a good option to get and handle notifications.
but we can't share the CSocket across threads, i.e we could not accept connection in one thread and this object could not pass to another thread for receiving data. since CSocket is designed to serve per thread basis. you may have to detach the handle and attach it for further use and also the connection close should be synchronized. This is FYI
-Sarath
|
|
|
|
|
Hi.
No, I'm not passing the socket object to another thread. The thread in the server create the socket and it's used inside this thread. There, the server, accept connections and there, it read and send data from/to clients according some variable state, and this is the logic that I asked for, because after accept the connection the thread start to send to client the names of the files of the machine where it runs, it works, but there are some bugs at client side, it looks like the server send the data faster than the client can read. Sometimes, in the client, I can see the names of the files comming but a CString object assert. That kind of issues happend.
For this I'm asking about my logic, there is something wrong with it.
Pressing a button in the client program it try to connect to server, meanwhile the server inside the thread, (inside the while), accept the connection and start a routine using CFileFind object and get the names of the files and it sends these strings to client. The client open a text file where save the info.
I know, it's hard to give an advice about "a logic" that you can't see.
Maybe I'm thinking the serve application like a program that read/write data in a comm port, that's why I have an infinite while with states, etc., because I have copied my logic used for a program that use Serial communication. I must to improve that.
Thank you very much for your time.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
HI,
I have Client and server application.
The machine on which Server is installed changes its IP frequently ( say after 2 OR 3 days)
I have my Client which needs to connect via internet to server app.
So how can I get the IP of Server on Client side to connect to it after a the change in server side IP.
Or How can my Server track the installed client on clients machine that may connects to internet thorugh dial up or other resource
Any idea / link
Thanks
Regards.
|
|
|
|
|
If your DNS is working properly, why not connect to the server via its host name?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Lets say when the server changes its IP it also changes its DNS , then what would be the solution,
actualy Server ( on which server side application is installed . and app is listening on socket lets say 3333 but server changes its IP ) is changing its IP for security reasons
Regards.
|
|
|
|
|
zahid_ash wrote: Lets say when the server changes its IP it also changes its DNS...
Of course the DNS entry (just the IP address) would change. That's what is supposed to happen. Otherwise, name resolution could not occur. Use gethostbyname() .
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
|
see the following API
hostent *gethostbyname(const char *hostname);
The structure hostent have the IP address of the Internet host specified by hostname.
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Would it work for Internet , Lets say server is in USA. and client is in Russia
Is not it for Local network.?
Regards.
|
|
|
|