CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Penfold

Search: Search took 0.03 seconds.

  1. float/double value comparison, significant figures

    Hello,

    Is there an easy way in C# to compare the value of two floats(or doubles), to check that they are equal to each other, within a tolerance of, say, 5, significant figures.

    Is there...
  2. Replies
    1
    Views
    653

    Re: Problem with Convert.Int16

    Ok - I've fixed the problem.

    For the record (incase anyone else gets this error) - it was down to my own stupidity.

    The Key name I was referencing in my code was spelt incorrectly in the config...
  3. Replies
    1
    Views
    653

    [RESOLVED] Problem with Convert.Int16

    Hello,

    My project contains a config file containing a number of Key/Value pairs.

    An extract from the config file (the key names have been changed prior to posting to this site) is as follows :...
  4. Replies
    5
    Views
    1,306

    Re: Bizare string cut off problem

    The code that opens the file is as follows :

    FILE *f = _tfsopen (path, _T("a+"), _SH_DENYNO);

    So binary or text is not specified - assume it will be text? it certainly looks like a text file...
  5. Replies
    5
    Views
    1,306

    Bizare string cut off problem

    Hi,

    In the software we are developing, we are having problems with strings that are being cut off when the strings are written to a file.

    If the strings contain control code characters between...
  6. Replies
    1
    Views
    1,108

    List of functions that have changed

    Hi,

    Does anyone know of a source code comparison tool which will produce a list of functions that have changed between two different source code file versions?

    I have many source code...
  7. Replies
    1
    Views
    1,029

    CDateTimeCtrl - increasing step increment

    Hi,

    I've ploughed through the forum and have not found an answer to the question, so please bear with me if this has been asked before...

    I've got a CDateTimeCtrl, and I'm using it just to...
  8. Thread: unknown error

    by Penfold
    Replies
    25
    Views
    2,179

    Re: unknown error

    You need to put a breakpoint in your code at some point BEFORE the "crash" occurs - then you can step through the code, and see the last thing that is being called before the exception. If you get...
  9. Thread: unknown error

    by Penfold
    Replies
    25
    Views
    2,179

    Re: unknown error

    The call stack just tells you what function was called up to the point where your software crashes. So just a list of functions alone won't tell you what the problem is. You need to debug your...
  10. Replies
    11
    Views
    16,451

    Re: Disabling Alt+F4

    No user-interaction with the software is allowed via the keyboard. Only via the mouse. That's why we needed to disable it - but in the end, we've just disabled the keyboard completely from the...
  11. Replies
    11
    Views
    16,451

    Disabling Alt+F4

    Hi,

    Does anyone know how to disable Alt+F4 so that when the user presses this key combination, my windows application does not close down? Can this be completely done within code, or does this...
  12. Replies
    1
    Views
    1,389

    Get number of bytes waiting on serial port

    Hi,

    I am using the CreateFile() function in order to create a handle for a RS422 serial port, through which I am sending and receiving data. I need to know how many bytes of data are sitting on...
  13. Populating an area of memory at compile/link time

    Hi,

    I have some code which reads in data from a fixed location in memory.

    Is there a compiler or linker option or something like this that allows the data at this memory location to be...
  14. Replies
    2
    Views
    939

    Size of static libraries

    Hi,

    Does anyone know if there is a restriction on the size of static libraries created using Visual C++ 6.0? I have a static library which contains 829 files (don't ask why - it's a long story). ...
  15. Replies
    0
    Views
    4,213

    /force:multiple

    Hi,

    Can anyone tell me what the full implications are of using the /FORCE:MULTIPLE linker option in Visual C++ 6.0?

    If I have two functions pulled into a build that have the same name in...
  16. Replies
    5
    Views
    2,245

    Re: ambiguous symbol and namespaces

    yes, I know that is one way round it - but I guess I just wanted to know why Visual C++ complains about it, but the other compiler I use does'nt.
  17. Replies
    5
    Views
    2,245

    ambiguous symbol and namespaces

    Hi,

    I have some code which declares a typedef within a namespace, eg :

    namespace a_namespace
    {
    typedef unsigned long DoubleUnsigned;
    }

    another source file uses this namespace, eg:
  18. Replies
    8
    Views
    1,069

    Pointers to pointers.

    Hi,

    I have a function which has the following parameter :

    int * buffer_addr

    The contents of the buffer_addr parameter is an address in memory. I need to be able to read from this address in...
  19. Replies
    11
    Views
    2,784

    Hi, I am using Microsoft Visual C++ 6.0. An...

    Hi,

    I am using Microsoft Visual C++ 6.0.

    An example error message that I am getting is as follows :

    CrossComms.lib(cross_comms_items.obj) : error LNK2001: unresolved external symbol...
  20. Replies
    11
    Views
    2,784

    Hi, Thanks for the info on this - it's a bit...

    Hi,

    Thanks for the info on this - it's a bit clearer in my mind now.

    If I have a variable that is declared using extern and then it is declared in another source file using extern "C" will this...
  21. Replies
    11
    Views
    2,784

    Use of extern "C"

    Hi,

    First of all, sincere apologies if this is the wrong forum - not sure if it should go in the general C++ forum.

    We are testing some C and C++ code for a customer. We are building the C...
Results 1 to 21 of 22





Click Here to Expand Forum to Full Width

Featured