Join Now

Difference between the pointers in Carbide c++ and C++

Carbider | 17 October, 2007 16:11

One more difference between Carbide C++ and standard C++ that I found while porting is pointers maintaining.
If you have a pointer 'p'
void *p = other_pointer;
in C you can sum it up with integer value to walk through memory:
p += sizeof(uint8_t);
That is frequently used in BlueZ libraries.
But Carbide doesn't allow such manipulation motivating with:
"illegal operands 'void *' + 'unsigned int'"
That is because Carbide is more strict with types than C is.
So to move through memory I need that pointer 'p' would be a pointer to specific data type, not ‘void’.
I decided, 'p' should be a pointer to 'uint8_t' because it is used as type’s length to determine data’s displacement step.
So the final declaration looks like this:
uint8_t *p;;

p += sizeof(uint8_t);

Bluetooth Driver for S60 SDK

Carbider | 22 October, 2007 12:45

To use Bluetooth in S60 emulator you have to install BT driver.
After some customizing emulator will use your hardware - Bluetooth Dongle.
If you try to customize it by yourself (without installing driver) in purpose to use Bluetooth Dongle, than, for sure, emulator will die.
If you have S60 SDK FP2, the BT driver will be located at
“<S60_SDK_installation_directory>S60ToolsS60Bt” directory.
But I have S60 FP 1, so I've downloaded it from
The installation procedure is described in this distribution package as *pdf.
After that you need to start emulator, and at PAN tab set HCI to USB, then restart it.
Everything is described in detail in previous guide.
As I restarted it, I've immediately got an advertisement message :) from the juke-box which is assembled in our office.
Now I can play with Bluetooth examples which are provided with SDK.

Assembling GUI set reflecting future BluSPAN functionality

Carbider | 24 October, 2007 16:31

Hello. Recent days I was busy on assembling the GUI set which should reflect the functionality of future BluSPAN application.
I used Carbide’s C++ UI Designer tool. It’s pretty handy to drag-and-drop elements at design’s workspace while the appropriate code is generated.  But I’m still confused with that code, which is too complicated to novice’s sight.
Documentation
I tried to approach this task reading a lot of material.
» I observed the possibilities of UI with help of 
“Introduction_to_S60_UI_Components” 
and I’ve got good notion about it.
       » Very basic information about UI Designer
UI Designer White Papers
» The manual for developers is: Avkon UI Resources
» Downloaded and executed some examples:
Current results
So I started creating my GUIs. Here is a picture of those, I’ve created:

Picture 1 – Screen of Main app’s window
 
Picture 2 – Options menu



Picture 3 – Settings screens of all parameters BluSPAN will care
At next posts I’ll tell you what difficulties I’ve faced, the troubles I could overcome and those ones which are still barrier for project progress.
«Previous   1 2 3 4 5 6 7  Next»
 
 
Powered by LifeType