hello mark Thanks for the reply. I just add the byte order method htons and it works. Thanks for the solution. I really2 appreciated it. Also thanks for the tips to take error messages seriously. I will take your advice. I know error messages is important for debugging, but i just consider a simple connection from client/server, thats why i dont want to concern the error messages. I will be careful next time. Thanks again.
I'm sure someone in the Managed C++ forum can tell you which .NET class are available to allow you to interact with Access. If you were doing it in straight C++ you'd be talking OLE/DB or ODBC3 or parhaps even wrapping up some ADO in a C++ callable VB Dll, X| can't believe I said that. You know what to do. :)
Nothing is exactly what it seems but everything with seems can be unpicked.
First of all, it seems you need to be familiar with basics of windows programming, that can answer almost everything yourself in this context.
Kogee San wrote:
Must i use MFC or there are ...
since u don't need UI, u can avoid MFC for now. Infact u can integrate your C Code with both MFC and WIN32.
Kogee San wrote:
If i choose option 3, ...
WIN32, Win Service application can be implemented in VC, VC is C + Microsoft specifics there should be more than these 3 option to do this, it depends on the level of expertise in windows programming i can rate myself (1/10)
If you put under the CURRENT USER key, then it will only run when the currently loggged in user logs in again. If it's put under the LOCAL MACHINE key, then it'll run whenever ANY user logs in.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007
Thanks Pallini. I think that should solve it. I altered the code and there are no more error. I didnt update the code on the receiver (server) side yet but i think it should not be a problem. If there are problems, i will get back to you guys again. Thanks alot guys.
Muhamad Hazwan Halim wrote:
Is it possible to create a timer so it will send packets to the server every 5 minutes using win32 console application.
Yes. You can use Sleep(300000) for this. When it returns from sleeping, send the packets.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Hey, thanks..it really works..but still i have problems regarding the output that i retrieved by using the GetAdapatersInfo..Its ok..i will post the problem in another threat...Thanks thanks thanks..i owe you one... p/s: programming is kinda exciting..:-D:-D
Thanks. I will try my best to solve this problem. Thanks again. Hopefully if i have any problem, you guys can help me right? Really appreciate that. Thanks a lot for the tips.