Click here to Skip to main content
16,017,100 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: DoModal to call other Dialog Pin
João Paulo Figueira9-Nov-04 6:59
professionalJoão Paulo Figueira9-Nov-04 6:59 
GeneralRe: DoModal to call other Dialog Pin
illidan999-Nov-04 7:01
illidan999-Nov-04 7:01 
Generalwindows ce printer driver - dll Pin
frakk9-Nov-04 4:10
frakk9-Nov-04 4:10 
QuestionHow to add SDK on eVC++4.0 Pin
GDavy8-Nov-04 20:20
GDavy8-Nov-04 20:20 
AnswerRe: How to add SDK on eVC++4.0 Pin
illidan999-Nov-04 7:06
illidan999-Nov-04 7:06 
GeneralRe: How to add SDK on eVC++4.0 Pin
GDavy9-Nov-04 9:47
GDavy9-Nov-04 9:47 
GeneralRe: How to add SDK on eVC++4.0 Pin
eli1502197910-Nov-04 3:32
eli1502197910-Nov-04 3:32 
Generalstruct problem Pin
illidan998-Nov-04 4:41
illidan998-Nov-04 4:41 
Hi, I have the following piece of code:

BD_ADDR direccion;<br />
direccion.LAP=0x19C4BB;		//24bit LAP (Lower Address Part)<br />
direccion.UAP=0x37;			//8bit UAP (Upper Address Part)<br />
direccion.NAP=0x0080;		<br />
<br />
PORTEMUPortParams pp;<br />
memset (&pp, 0, sizeof(pp));<br />
pp.channel = 0;<br />
pp.device = (BD_ADDR) direccion;           //THEY'RE THE SAME TYPE!!WHY NOT RUN?<br />
pp.uiportflags = RFCOMM_PORT_FLAGS_REMOTE_DCB;


where BD_ADDR is a struct type according to MSDN web:

#pragma pack(push, 1)<br />
  typedef struct __bd_addr {<br />
  union {<br />
    struct {<br />
      unsigned int LAP : 24; <br />
      unsigned int UAP : 8; <br />
    };<br />
  unsigned int SAP; <br />
  };<br />
  unsigned short  NAP; <br />
  } BD_ADDR;<br />
#pragma pack(pop)


The problem is when I compile the project appears the next error that I dont
understand:
- Error in line """pp.device = (BD_ADDR) direccion;"""
error C2679: binary '=' : no operator defined which takes a right-hand <br />
operand of type 'struct _BD_ADDR' (or there is no acceptable conversion) 


Any suggestion??

Thanks.


Regards,
Javier
GeneralRe: struct problem Pin
João Paulo Figueira8-Nov-04 6:39
professionalJoão Paulo Figueira8-Nov-04 6:39 
GeneralRe: struct problem Pin
illidan998-Nov-04 8:34
illidan998-Nov-04 8:34 
GeneralRe: struct problem Pin
eli150219798-Dec-04 1:05
eli150219798-Dec-04 1:05 
GeneralRe: Making a &quot;virtual serial port &quot; through Bluetooth Pin
Cedric Moonen5-Nov-04 2:11
Cedric Moonen5-Nov-04 2:11 
QuestionUsing Visio 2000 with eVC ? Pin
Anonymous4-Nov-04 20:47
Anonymous4-Nov-04 20:47 
Generalerror LNK2019: unresolved external symbol Pin
Rockone4-Nov-04 18:34
Rockone4-Nov-04 18:34 
GeneralRe: error LNK2019: unresolved external symbol Pin
eli1502197910-Nov-04 3:35
eli1502197910-Nov-04 3:35 
GeneralRe: error LNK2019: unresolved external symbol Pin
Rockone21-Nov-04 14:01
Rockone21-Nov-04 14:01 
QuestionHow do I run a application in pocket pc 2003 emulator? Pin
JeffSayHi4-Nov-04 15:48
JeffSayHi4-Nov-04 15:48 
AnswerRe: How do I run a application in pocket pc 2003 emulator? Pin
illidan994-Nov-04 23:43
illidan994-Nov-04 23:43 
QuestionHow to access web services from .Net Pocket pc Pin
Ali Usman4-Nov-04 14:58
Ali Usman4-Nov-04 14:58 
GeneralCFile C++ exceptions in EVT3.0 Pin
Mike Landis4-Nov-04 8:56
Mike Landis4-Nov-04 8:56 
GeneralRe: CFile C++ exceptions in EVT3.0 Pin
João Paulo Figueira6-Nov-04 4:21
professionalJoão Paulo Figueira6-Nov-04 4:21 
Generalevc++ printing Pin
frakk2-Nov-04 23:15
frakk2-Nov-04 23:15 
GeneralRe: evc++ printing Pin
João Paulo Figueira4-Nov-04 8:00
professionalJoão Paulo Figueira4-Nov-04 8:00 
GeneralRe: evc++ printing Pin
frakk7-Nov-04 3:35
frakk7-Nov-04 3:35 
GeneralProperty Database Pin
Logan from Singapore2-Nov-04 14:22
Logan from Singapore2-Nov-04 14:22 

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.