|
Hello,
I would want to write a small chat program allowing to communicate across the Net.
But I only found classic Winsock samples with 1 server/clients, where clients need an ip address to connect with the server.
Isn't it possible to have only clients (which would probably be also servers for others clients) ?
(if I just have 2 executables on 2 different PCs, I cannot know the ip of the other client exe)
Thanks.
|
|
|
|
|
|
jeff6 wrote: Isn't it possible to have only clients (which would probably be also servers for others clients) ?
Yes, but then the client must be also a server, that is you should replicate (in the client) the server functionality you find in the 'classic Winsock examples'.
Veni, vidi, vici.
|
|
|
|
|
i want code for which software ,when i install on a pc then aal pdf document of that pc should be deleted ?
raj suthar
|
|
|
|
|
1. nobody is going to give you source code here.
2. especially not source code that would do what you're asking.
|
|
|
|
|
why ?we can make anything through code ?
|
|
|
|
|
|
raj suthar wrote: i want code
Then you have a few choices:
- Search Google for samples.
- Search CodeProject articles.
- Write it yourself.
- Pay someone else to write it for you.
- ...
Use the best guess
|
|
|
|
|
maybe github and sourceforge.... will help
Pravinda
the Magician
|
|
|
|
|
What code have you put together so far?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
You forgot the 'joke' icon.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
maybe you too
Pravinda
the Magician
|
|
|
|
|
He got as far as opening a new cpp file....
==============================
Nothing to say.
|
|
|
|
|
hi
i was implemented ICredentialProviderFilter in my custom credential provider it is switch user button not showing. ie: it is showing only my custom credential provider it is not showing my other credentials please help me anyone
|
|
|
|
|
Hi, I have a C file which contains a simple DbgPrint in DriverEntry but, when I build my project, I get 9 errors like C:\drvtest\src\testdriver.c : error CS2059: Syntax Error : ';'
C:\drvtest\src\testdriver.c : error CS2059: Syntax Error : 'type'
C:\drvtest\src\testdriver.c : error CS2059: Syntax Error : identifier DriverDispatch
I use WDK and CodeBlocks as a C compiler.
What is the problem? Please help. Thanks.
|
|
|
|
|
Without seeing the actual code it is not easy to guess why you are seeing these syntax errors.
Use the best guess
|
|
|
|
|
My code is below;
#include "ntddk.h"
NTSTATUS STDCALL DriverDispatch(IN PEDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
return STATUS_SUCCESS;
}
VOID STDCALL DriverUnload(IN PDRIVER_OBJECT DriverObject)
{
DbgPrint("Driver_Unload");
}
NTSTATUS STDCALL DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegisterPath)
{
DbgPrint("Driver_Entry");
DriverObject->DriverUnload=DriverUnload;
return STATUS_SUCCESS;
}
Thanks.
|
|
|
|
|
Which line gives the error?
Use the best guess
|
|
|
|
|
When I build the file, all the lines gives error. I think configuration files have errors. SOURCES and MAKEFILE. Thanks for your replies.
|
|
|
|
|
Sorry, I have no idea what that means, but I suspect you are missing some essential component in your build configuration.
Use the best guess
|
|
|
|
|
So show us the SOURCES file.
==============================
Nothing to say.
|
|
|
|
|
I'm not sure if this helps. But you may try (for all functions):
NTSTATUS STDCALL DriverDispatch(IN PEDEVICE_OBJECT DeviceObject, IN PIRP Irp);
NTSTATUS DriverDispatch(IN PEDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
return STATUS_SUCCESS;
}
|
|
|
|
|
No, you dont want to mess with that, leave the compiler do its thing.
==============================
Nothing to say.
|
|
|
|
|
Have you included windows.h (or equivalent)?
Have you tried commenting out statements until the compiler errors go away, and then introduce them back one by one until the compiler errors show up?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
DavidCrow wrote: Have you included windows.h ?
In a driver? He needs wdm.h unles he is building an NT4 style driver.
==============================
Nothing to say.
|
|
|
|