Click here to Skip to main content
15,923,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inline Assembler Macros? Pin
Ryan Binns15-Jul-03 0:48
Ryan Binns15-Jul-03 0:48 
AnswerRe: Inline Assembler Macros? Pin
TheSurrealist15-Jul-03 0:00
TheSurrealist15-Jul-03 0:00 
Generalabout using OpenDriver() Pin
gdzfy14-Jul-03 16:27
gdzfy14-Jul-03 16:27 
GeneralCPropertySheet Apply button disabled Pin
haritadala14-Jul-03 13:55
haritadala14-Jul-03 13:55 
GeneralRe: CPropertySheet Apply button disabled Pin
Andrew Walker14-Jul-03 15:03
Andrew Walker14-Jul-03 15:03 
GeneralRe: CPropertySheet Apply button disabled Pin
haritadala15-Jul-03 2:30
haritadala15-Jul-03 2:30 
GeneralRe: CPropertySheet Apply button disabled Pin
Andrew Walker15-Jul-03 2:32
Andrew Walker15-Jul-03 2:32 
GeneralCAsyncSocket usage Pin
caustiK14-Jul-03 11:50
caustiK14-Jul-03 11:50 
i need to send a UDP broadcast message to a network of sensors, and i'm trying to use the CAsyncSocket class. the sensors are accepting text string commands on port 7000. here's the code:

<br />
int errorCode;<br />
<br />
if (!m_udpSocket.Create(0, SOCK_DGRAM))<br />
{<br />
     AfxMessageBox("Create Error");<br />
     errorCode = GetLastError();<br />
}<br />
<br />
// xxxxx is the command<br />
if (m_udpSocket.SendTo("xxxxx", sizeof("xxxxx"), 7000) == SOCKET_ERROR)<br />
{<br />
     AfxMessageBox("Send Error");<br />
     errorCode = GetLastError();<br />
}<br />
<br />
m_udpSocket.Close();<br />


the Create() function is working, but SendTo() gives me an error. the errorCode is 0, but this doesn't seem to match any of the winsock codes on MSDN. am i missing something or leaving something out? i don't know much about networking, but i have to use UDP and the sensors don't support CArchives so i can't use CSocket. any help is greatly appreciated!
(p.s. -- if there is a syntax error or something, it's probably just my typing - i don't have my hands on the actual code atm.)
GeneralRe: CAsyncSocket usage Pin
User 665814-Jul-03 12:41
User 665814-Jul-03 12:41 
GeneralRe: CAsyncSocket usage Pin
caustiK15-Jul-03 3:02
caustiK15-Jul-03 3:02 
GeneralRe: Another Question Pin
caustiK15-Jul-03 10:56
caustiK15-Jul-03 10:56 
GeneralA dll question Pin
dzenan14-Jul-03 11:35
dzenan14-Jul-03 11:35 
GeneralRe: A dll question Pin
Cambalindo14-Jul-03 17:52
Cambalindo14-Jul-03 17:52 
GeneralRe: A dll question Pin
dzenan14-Jul-03 23:35
dzenan14-Jul-03 23:35 
GeneralWaitForSingleObject Pin
act_x14-Jul-03 9:59
act_x14-Jul-03 9:59 
GeneralRe: WaitForSingleObject Pin
Joaquín M López Muñoz14-Jul-03 10:14
Joaquín M López Muñoz14-Jul-03 10:14 
GeneralRe: WaitForSingleObject Pin
act_x14-Jul-03 10:29
act_x14-Jul-03 10:29 
GeneralRe: WaitForSingleObject Pin
Joaquín M López Muñoz14-Jul-03 11:22
Joaquín M López Muñoz14-Jul-03 11:22 
GeneralRe: WaitForSingleObject Pin
JT Anderson15-Jul-03 7:54
JT Anderson15-Jul-03 7:54 
QuestionHow to pop up a window Pin
Shay Harel14-Jul-03 9:49
Shay Harel14-Jul-03 9:49 
AnswerRe: How to pop up a window Pin
PJ Arends14-Jul-03 10:04
professionalPJ Arends14-Jul-03 10:04 
GeneralRe: How to pop up a window Pin
Shay Harel14-Jul-03 10:07
Shay Harel14-Jul-03 10:07 
QuestionHow to add dll to a VC++.NET project? Pin
mr200314-Jul-03 9:33
mr200314-Jul-03 9:33 
GeneralList box won't scroll ...... Pin
Shay Harel14-Jul-03 8:22
Shay Harel14-Jul-03 8:22 
GeneralRe: List box won't scroll ...... Pin
Shay Harel14-Jul-03 8:29
Shay Harel14-Jul-03 8:29 

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.