Click here to Skip to main content
16,006,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionADO Record Object ? Pin
Suren17-Nov-02 23:44
Suren17-Nov-02 23:44 
AnswerRe: ADO Record Object ? Pin
Michael P Butler18-Nov-02 0:19
Michael P Butler18-Nov-02 0:19 
GeneralRe: ADO Record Object ? Pin
Suren18-Nov-02 1:35
Suren18-Nov-02 1:35 
GeneralCreating new folders for Workspace Pin
Franz Klein17-Nov-02 22:42
Franz Klein17-Nov-02 22:42 
Questionhow do you get query results from odbc by manually set sql statement? Pin
17-Nov-02 22:33
suss17-Nov-02 22:33 
AnswerRe: how do you get query results from odbc by manually set sql statement? Pin
Michael P Butler18-Nov-02 0:23
Michael P Butler18-Nov-02 0:23 
AnswerRe: how do you get query results from odbc by manually set sql statement? Pin
Alexinuk18-Nov-02 2:48
Alexinuk18-Nov-02 2:48 
Generalmulticasting Pin
orange^blur17-Nov-02 21:00
orange^blur17-Nov-02 21:00 
I need to do multicasting on our local university LAN(ethernet).
Ive been tryin to make a MADCAP(Multicast Address Dynamic Client Allocation Protocol) client to do this (MADCAP is an API in teh platform SDK). We have configured a MADCAP server at the server end.
im tryin to get the address through McastRequestAddress() function but it returns a value of 87 which probably stands for an invlid parameter
here is the code:

void CMainFrame::OnMulticast()
{
DWORD m_chk, m_chk1, m_chk2, m_chk_last;

PDWORD pVersion = new DWORD;
*(pVersion) = 1;

m_chk2 = McastApiStartup(pVersion);


//for parameter 2
LPMCAST_CLIENT_UID pRequestID = new MCAST_CLIENT_UID;

pRequestID->ClientUID = new unsigned char[17];
for(int c=0; c<17; c++)
{
pRequestID->ClientUID[c] = c;
}

pRequestID->ClientUIDLength = 17;

m_chk1 = McastGenUID(pRequestID);


//for parameter 3
PDWORD pScopeCount = new DWORD;
PMCAST_SCOPE_ENTRY pScopeList = new MCAST_SCOPE_ENTRY [90] ;
PDWORD pScopeLen = new DWORD;
*pScopeLen = 90;

m_chk = McastEnumerateScopes(AF_INET, TRUE, pScopeList, pScopeLen, pScopeCount);
PMCAST_SCOPE_CTX pScopeCtx = &(pScopeList->ScopeCtx);


//for parameter 4
PMCAST_LEASE_REQUEST pAddrRequest = new MCAST_LEASE_REQUEST;

pAddrRequest->LeaseStartTime = 0;
pAddrRequest->LeaseDuration = 0;
pAddrRequest->AddrCount = 1;
pAddrRequest->pAddrBuf = new BYTE[4];

for(int i=0; i<4; i++)
{
pAddrRequest->pAddrBuf[i] = pScopeList->LastAddr.IpAddrV6[i];
}
pAddrRequest->ServerAddress = pScopeList->ScopeCtx.ServerID;

//for parameter 5
PMCAST_LEASE_RESPONSE pAddrResponse = new MCAST_LEASE_RESPONSE;
pAddrResponse->pAddrBuf = new BYTE[4];


//the real thing
m_chk_last = McastRequestAddress(AF_INET, pRequestID, pScopeCtx, pAddrRequest, pAddrResponse);

}


There are no examples given with this APIFrown | :(
can any one please guide me as to which parameter am i passing incorrectly.
Or tell me some other way through which i can multicast on LAN.

I'd be really grateful
GeneralSizing controls in CDialogBar Pin
Woody Green17-Nov-02 20:12
Woody Green17-Nov-02 20:12 
GeneralInterlockedXxx Pin
Saad Sultan17-Nov-02 20:00
sussSaad Sultan17-Nov-02 20:00 
GeneralRe: InterlockedXxx Pin
Christian Graus17-Nov-02 20:26
protectorChristian Graus17-Nov-02 20:26 
GeneralRe: InterlockedXxx Pin
Kannan Kalyanaraman17-Nov-02 20:27
Kannan Kalyanaraman17-Nov-02 20:27 
GeneralRe: InterlockedXxx Pin
Michael Dunn18-Nov-02 4:17
sitebuilderMichael Dunn18-Nov-02 4:17 
GeneralSetting font on client windows Pin
WayneJ17-Nov-02 19:04
WayneJ17-Nov-02 19:04 
GeneralVC++ KeyBoard Hooks Pin
Riju17-Nov-02 18:40
Riju17-Nov-02 18:40 
GeneralRe: VC++ KeyBoard Hooks Pin
viliam18-Nov-02 0:15
viliam18-Nov-02 0:15 
GeneralRe: VC++ KeyBoard Hooks Pin
Riju18-Nov-02 0:19
Riju18-Nov-02 0:19 
GeneralRe: VC++ KeyBoard Hooks Pin
viliam18-Nov-02 0:28
viliam18-Nov-02 0:28 
GeneralRe: VC++ KeyBoard Hooks Pin
Riju18-Nov-02 0:40
Riju18-Nov-02 0:40 
GeneralRe: VC++ KeyBoard Hooks Pin
viliam18-Nov-02 2:59
viliam18-Nov-02 2:59 
GeneralNeed HELP on Local Ntetwrok IP Adrress Pin
ATC17-Nov-02 18:00
ATC17-Nov-02 18:00 
Generalbest way to draw a pixel in direct X Pin
cleathley17-Nov-02 17:40
cleathley17-Nov-02 17:40 
GeneralRe: best way to draw a pixel in direct X Pin
Christian Graus17-Nov-02 20:16
protectorChristian Graus17-Nov-02 20:16 
GeneralRe: best way to draw a pixel in direct X Pin
cleathley17-Nov-02 21:23
cleathley17-Nov-02 21:23 
GeneralRe: best way to draw a pixel in direct X Pin
Christian Graus17-Nov-02 21:41
protectorChristian Graus17-Nov-02 21:41 

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.