Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resource conflict on ON_UPDATE_COMMAND_UI Pin
«_Superman_»5-Oct-10 23:15
professional«_Superman_»5-Oct-10 23:15 
GeneralRe: Resource conflict on ON_UPDATE_COMMAND_UI Pin
yccheok5-Oct-10 23:36
yccheok5-Oct-10 23:36 
GeneralRe: Resource conflict on ON_UPDATE_COMMAND_UI Pin
Sauro Viti7-Oct-10 23:07
professionalSauro Viti7-Oct-10 23:07 
QuestionNeed to know how to make a custom control scroll nicely with a CView... Pin
Ben Aldhouse5-Oct-10 21:42
Ben Aldhouse5-Oct-10 21:42 
Questionsocket program is able to connect to the port which is still in TIME_WAIT [modified] Pin
Jayapal Chandran5-Oct-10 20:45
Jayapal Chandran5-Oct-10 20:45 
AnswerRe: socket program is able to connect to the port which is still in TIME_WAIT Pin
Moak5-Oct-10 23:25
Moak5-Oct-10 23:25 
GeneralRe: socket program is able to connect to the port which is still in TIME_WAIT Pin
Jayapal Chandran6-Oct-10 4:53
Jayapal Chandran6-Oct-10 4:53 
GeneralRe: socket program is able to connect to the port which is still in TIME_WAIT Pin
Moak6-Oct-10 6:39
Moak6-Oct-10 6:39 
GeneralRe: socket program is able to connect to the port which is still in TIME_WAIT Pin
Jayapal Chandran7-Oct-10 0:44
Jayapal Chandran7-Oct-10 0:44 
QuestionHooking TerminateProcess or ExitProcess Pin
NehaMishra286845-Oct-10 20:20
NehaMishra286845-Oct-10 20:20 
AnswerRe: Hooking TerminateProcess or ExitProcess Pin
«_Superman_»5-Oct-10 20:45
professional«_Superman_»5-Oct-10 20:45 
QuestionBasicExcel.Load --- crash!!! Pin
ssm19841195-Oct-10 20:11
ssm19841195-Oct-10 20:11 
AnswerRe: BasicExcel.Load --- crash!!! Pin
Richard MacCutchan5-Oct-10 21:26
mveRichard MacCutchan5-Oct-10 21:26 
AnswerRe: BasicExcel.Load --- crash!!! Pin
Sameerkumar Namdeo5-Oct-10 23:25
Sameerkumar Namdeo5-Oct-10 23:25 
Questiondate comparison Pin
ggoutam75-Oct-10 19:03
ggoutam75-Oct-10 19:03 
AnswerRe: date comparison Pin
Sameerkumar Namdeo5-Oct-10 19:17
Sameerkumar Namdeo5-Oct-10 19:17 
AnswerRe: date comparison Pin
«_Superman_»5-Oct-10 19:28
professional«_Superman_»5-Oct-10 19:28 
GeneralRe: date comparison [modified] Pin
ggoutam75-Oct-10 20:54
ggoutam75-Oct-10 20:54 
GeneralRe: date comparison Pin
David Crow6-Oct-10 3:24
David Crow6-Oct-10 3:24 
GeneralRe: date comparison Pin
ggoutam711-Oct-10 23:11
ggoutam711-Oct-10 23:11 
QuestionCDateTimeCtrl Pin
ganesh_IT5-Oct-10 19:01
ganesh_IT5-Oct-10 19:01 
AnswerRe: CDateTimeCtrl Pin
_AnsHUMAN_ 5-Oct-10 19:35
_AnsHUMAN_ 5-Oct-10 19:35 
AnswerRe: CDateTimeCtrl Pin
Sameerkumar Namdeo5-Oct-10 19:44
Sameerkumar Namdeo5-Oct-10 19:44 
AnswerRe: CDateTimeCtrl Pin
cccfff7778-Oct-10 1:09
cccfff7778-Oct-10 1:09 
Questionproblems with using print data Pin
dusk855-Oct-10 16:03
dusk855-Oct-10 16:03 
hi,i'm currently doing a project using a software,Waspmote. I have some problems with my codings,it gave me 2 errors when i tried correcting it,

In function 'void loop()':
error: expected initializer before 'uint8_t'

In function 'void loop()':
error: a function-definition is not allowed here before '{' token


could anyone kindly help me take a look at the codings and suggest ways for me to improve on it.The code is as shown below:

int n=0;

void setup(){
// setup for Serial port over USB
USB.begin();
USB.println("USB port started...");
USB.close();

// Powering BT
BT.ON();

// Init
if(!BT.init()) USB.println("Init OK");
}
void loop()
{

// Searching for devices
if(!BT.scanNetwork()) USB.println("Scan OK");
else USB.println("Scan failed");

// Printing the devices that have been found
for(int l=0;l<BT.devices_found;l++)
{
n=0;
USB.print("---- DEVICE ");
USB.print(l,DEC);
USB.print(" ---- ");
USB.print("MAC: ");
for(int m=0;m<12;m++)
{
USB.print(BT.discovered_devices[l].mac_address[m],BYTE);
}
USB.print(" -- NAME: ");
while(BT.discovered_devices[l].name[n]!='\0')
{
USB.print(BT.discovered_devices[l].name[n],BYTE);
n++;
}
n=0;
USB.print(" -- CoD: ");
while(BT.discovered_devices[l].CoD[n]!='\0')
{
USB.print(BT.discovered_devices[l].CoD[n],BYTE);
n++;
}
USB.println("");

delay(2000);
}

// Creating a connection to a device
if(!BT.createConnection("0017E5F1CF74","02"))
{
USB.println("");
USB.print("--- CONNECTION -- MTU: ");
USB.print(BT.connection_mtu[0],BYTE);
USB.print(BT.connection_mtu[1],BYTE);
USB.println(BT.connection_mtu[2],BYTE);
}
else USB.println("Connection failed");


delay(1000);

void printData(char* data )
{
uint8_t uart=0;

printString(data,uart);
printByte('\r',uart);
printByte('\n',uart);

}
delay(2000);

return ;
}

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.