Search:

Type: Posts; User: r_james14

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    937

    Daft Question i think

    Hi There,

    Basically i have two .c files and a .h file

    One of the .c files contains a function:


    TransferMessage(int Port, struct Device *example)
    {
    example[Node].Address = ...
  2. Replies
    2
    Views
    904

    Not Sure if this is Possible

    Hi,

    This probably sounds daft but im trying to keep my code tidy.

    I have a structure defined, like the one below



    struct property
    {
  3. Replies
    3
    Views
    916

    hi guys, thanks for the responses, got the...

    hi guys,

    thanks for the responses, got the problem solved but also taught me how and why,
    thanks again
  4. Replies
    3
    Views
    916

    Structure Declaration

    Hi There,

    I have a .h file that is accessed by two different .c file

    in my .h file I need a structure such as



    struct {
    int mph;
  5. Replies
    5
    Views
    1,171

    Basically i am trying to programme a...

    Basically i am trying to programme a micro-controller with three identical ports, each port already has a structure associated with each CAN_A, CAN_B, CAN_C.

    To read and write to I simple have to...
  6. Replies
    5
    Views
    1,171

    Structure Declarations

    Hi There,

    A simple question but i have no idea how to do it

    if i do the following


    #include......

    static struct FLEXCAN2_tag* const pCAN = &CAN_B ;
  7. Replies
    1
    Views
    808

    What does this mean?

    This is probelry a really daft question but can anyone point me in the direction of the followling piece of code

    Outcome= (First<= Second) ? First : Second;

    all are shorts

    thanks
  8. Replies
    2
    Views
    746

    Quick Question

    Hi There,

    I have a 16 bit number which is a reading from a register, i want to break it down so

    bit 8 =ee8
    bit7 = ee7
    bit6 = ee6

    etc
  9. Replies
    1
    Views
    871

    11792 what i need to do is put text over the...

    11792

    what i need to do is put text over the top of the faces

    james
  10. Replies
    1
    Views
    871

    qprint.h or printing generally

    Hi There,

    My knowledge on printing is none existent so please bear with me,

    i need to write a simple c++ programme that prints three words over a picture.

    So simply there is a predefined...
  11. Replies
    5
    Views
    874

    no not with a range

    no not with a range
  12. Replies
    5
    Views
    874

    Quick Question

    Hi There,
    Quick question i need a way of getting a random number in the range of 15 to 88.
    Im using visual studio.
    Does anyone know of a way of doing this

    thanks
  13. Replies
    3
    Views
    1,377

    Daft Question

    Hi There,

    Is there anything obvious as to why this wouldn't work, basically i have three files. Two .c files and one .h

    in the .h i have a structure called "structure"

    below it:

    struct...
  14. Thread: Simple Maths

    by r_james14
    Replies
    6
    Views
    1,295

    Simple Maths

    Hi There,

    Is there a simple way of rounding up numbers lol.

    I got a valuebetween 0 and 100 and when i multiply it by 327.67 i need to round it up to the nearest whole number, is there a way i...
  15. Thread: WinDriver

    by r_james14
    Replies
    8
    Views
    1,728

    #define WD_License(h,pLicense)\ ...

    #define WD_License(h,pLicense)\
    WD_FUNCTION(IOCTL_WD_LICENSE, h, pLicense, sizeof (WD_LICENSE), FALSE)

    is the definition of it and when i debug it, all the variables and structures...
  16. Thread: WinDriver

    by r_james14
    Replies
    8
    Views
    1,728

    is it possible that i am using a 64bit machine be...

    is it possible that i am using a 64bit machine be the problem?
  17. Thread: WinDriver

    by r_james14
    Replies
    8
    Views
    1,728

    okay i been playing around and the WD License...

    okay i been playing around and the WD License function isnt returning anything, it seems not to be going anything anyone any suggests where to start fault finding.

    It does build but does nothing....
  18. Thread: WinDriver

    by r_james14
    Replies
    8
    Views
    1,728

    // Open driver hWD = INVALID_HANDLE_VALUE...

    // Open driver
    hWD = INVALID_HANDLE_VALUE ;
    hWD = WD_Open ( ) ;


    // Exit if driver not opened
    if ( hWD == INVALID_HANDLE_VALUE ) return ( 1 ) ;...
  19. Thread: WinDriver

    by r_james14
    Replies
    8
    Views
    1,728

    WinDriver

    Hi There,

    Properly a really daft question but i am developing some code and am trouble with one specific function. It contains functions like WD_Open WD_License etc.

    Is there any issue using...
  20. Replies
    2
    Views
    914

    String Conversion

    Hi There,

    I have a string for example

    char string = "D100"

    I need to find a way to convert this to ascii and put each character into a int defined variable in a structure. I'll give an...
  21. Thread: Atoi

    by r_james14
    Replies
    2
    Views
    1,462

    Atoi

    Hi,

    I've got a string which i need to convert into a integer, potentially the integer is a maximum of 8 bytes long.

    So first of all will atoi be able to convert it, secondly what definition...
  22. Thread: Bit Shifting

    by r_james14
    Replies
    3
    Views
    1,023

    Bit Shifting

    Hi There,
    I apologise if this is really daft but im totally lost.

    I have a unsigned int for example (0x4f1164)

    i am doing the following bit shifting

    sCanMsg.abData[ByteNum] = Data;...
  23. Replies
    4
    Views
    1,320

    function declaration

    hi there,
    I'm trying to develop a piece of code which has the following function deceleration

    void CanSetData ( void* pSrc, unsigned short ByteNum, unsigned short NumBytes )


    the problem i...
  24. Replies
    3
    Views
    1,006

    Printing certain bits

    Hi There,

    I have a hexadecimal number anything between 0 and ffff, what is the simplist way of printing certain bits. Reason im asking is the hexideciamal is broken down into its individual bits...
  25. Replies
    12
    Views
    2,347

    Hi There, Thanks everyone for your replies, it...

    Hi There,
    Thanks everyone for your replies, it was insanely simple in the end and i just unsigned char the input, solved all (well for my purposes anyways).
    Thanks Again
Results 1 to 25 of 61
Page 1 of 3 1 2 3