Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help -- something faster than Getline() ?? Pin
The NULL Developer17-Oct-05 21:03
professionalThe NULL Developer17-Oct-05 21:03 
GeneralRe: Help -- something faster than Getline() ?? Pin
Anonymous18-Oct-05 6:41
Anonymous18-Oct-05 6:41 
AnswerRe: Help -- something faster than Getline() ?? Pin
kakan18-Oct-05 1:19
professionalkakan18-Oct-05 1:19 
GeneralRe: Help -- something faster than Getline() ?? Pin
Anonymous18-Oct-05 6:40
Anonymous18-Oct-05 6:40 
GeneralRe: Help -- something faster than Getline() ?? Pin
kakan18-Oct-05 19:23
professionalkakan18-Oct-05 19:23 
QuestionUse Sockets in a DLL Pin
tobeymag17-Oct-05 19:27
tobeymag17-Oct-05 19:27 
AnswerRe: Use Sockets in a DLL Pin
xxrl17-Oct-05 20:23
xxrl17-Oct-05 20:23 
GeneralRe: Use Sockets in a DLL Pin
tobeymag18-Oct-05 19:20
tobeymag18-Oct-05 19:20 
That problem has been solved. I was not deriving CAsyncSocket class as public(goofed up).

But still I have a problem. I want to use the socket in an Extension Dll, that is used by the SNMP Service. Yes, I am developing an SNMP Agent. I want to use sockets to send/recieve data, for which I need the services of a socket.

#include "Connector.h" // The file that comprises of the CAsyncSocket derived class

Connector Cn;

// Entry Point for the DLL
BOOL APIENTRY DllMain(...)
..

{
WSADATA wsaData;

long Events = FD_READ | FD_WRITE | FD_CONNECT | FD_CLOSE | FD_ACCEPT;

WSAStartup(MAKEWORD(1,1),&wsaData);

AfxSocketInit();

switch(ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:

/* The problem lies here. If I don't use this line tha Agent will send traps correctly. But when I create this socket nothing happens. The Agent does not send traps *1

Cn.Create(128,SOCK_DGRAM,Events,"127.0.0.1");
break;

I dont seem to know what is the problem.

Please Reply as soon as possible as I am working on a project.
Thanks

GeneralRe: Use Sockets in a DLL Pin
xxrl19-Oct-05 19:16
xxrl19-Oct-05 19:16 
QuestionCould you help me with Rich Edit? Pin
Reunion17-Oct-05 19:25
Reunion17-Oct-05 19:25 
QuestionRe: Could you help me with Rich Edit? Pin
David Crow18-Oct-05 3:30
David Crow18-Oct-05 3:30 
AnswerRe: Could you help me with Rich Edit? Pin
Reunion18-Oct-05 18:22
Reunion18-Oct-05 18:22 
GeneralRe: Could you help me with Rich Edit? Pin
David Crow19-Oct-05 2:46
David Crow19-Oct-05 2:46 
GeneralRe: Could you help me with Rich Edit? Pin
Reunion19-Oct-05 17:20
Reunion19-Oct-05 17:20 
QuestionRe: Could you help me with Rich Edit? Pin
David Crow20-Oct-05 4:21
David Crow20-Oct-05 4:21 
AnswerRe: Could you help me with Rich Edit? Pin
Reunion20-Oct-05 18:12
Reunion20-Oct-05 18:12 
QuestionRe: Could you help me with Rich Edit? Pin
David Crow21-Oct-05 3:15
David Crow21-Oct-05 3:15 
AnswerRe: Could you help me with Rich Edit? Pin
Reunion21-Oct-05 3:21
Reunion21-Oct-05 3:21 
GeneralRe: Could you help me with Rich Edit? Pin
David Crow21-Oct-05 4:27
David Crow21-Oct-05 4:27 
GeneralRe: Could you help me with Rich Edit? Pin
Reunion21-Oct-05 18:08
Reunion21-Oct-05 18:08 
GeneralRe: Could you help me with Rich Edit? Pin
David Crow24-Oct-05 3:11
David Crow24-Oct-05 3:11 
GeneralRe: Could you help me with Rich Edit? Pin
Reunion25-Oct-05 18:27
Reunion25-Oct-05 18:27 
QuestionForm view timer problem. Pin
ledallam17-Oct-05 18:43
ledallam17-Oct-05 18:43 
AnswerRe: Form view timer problem. Pin
kakan17-Oct-05 19:00
professionalkakan17-Oct-05 19:00 
GeneralRe: Form view timer problem. Pin
ledallam17-Oct-05 20:53
ledallam17-Oct-05 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.