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

Search:

Type: Posts; User: aShape

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    710

    Re: problem with const string

    The only workaround I have is to run a for loop and insert each char into a normal string and then change that. Good idea?
  2. Replies
    6
    Views
    710

    problem with const string

    Hi Guys

    I have the following constant:


    const string &str;

    whenever I try to sort it I get a bag of errors:
  3. Replies
    0
    Views
    873

    Reading bad sectors

    Hi Guys

    I am in the process of researching various methods into which I can read bad sectors. ATM it appears the only way I will be able to do this is if I write my own driver and use that to...
  4. Replies
    3
    Views
    1,773

    Convert hex to decimal

    Hi Guys
    How would I convert the following hex values into decimal:

    AC 10 00 09

    This is an IP address.
  5. Replies
    0
    Views
    602

    Reading re-mapped sectors

    Hi Guys

    Is it possible to read remapped sectors off a drive in c++ ?
  6. Thread: Binary/Hex

    by aShape
    Replies
    2
    Views
    1,265

    Binary/Hex

    Hi Guys

    I am trying to make meaning of binary and hex. These are the numbering systems used by computers but how does the computer make use of them ? For example, we use decimal numbers to make...
  7. Replies
    1
    Views
    2,499

    RFID Programming Java

    Hi Guys

    Has anyone done any RFID programming with Java ? Know of any good resources for me to read up on ?
  8. Replies
    1
    Views
    937

    hardcoded dirs in makefile

    Hi Guys,

    I have a makefile as follows:


    all:
    g++ -I /usr/local/boost_1_39_0 fileMain.cc -o filereader /usr/local/boost_1_39_0/boost/stage/lib/libboost_thread-gcc43-mt-1_39.a -lpthread...
  9. Replies
    8
    Views
    3,777

    Re: check char array for empty values

    Thanks linderly, changing to strings fixed the issue.
  10. Replies
    8
    Views
    3,777

    Re: check char array for empty values

    Ok, well the problem is somtimes my loop returns 2 digit number instead of 3. I don't want to cout the 2 digit numbers.
  11. Replies
    8
    Views
    3,777

    Re: check char array for empty values

    No value.
  12. Replies
    8
    Views
    3,777

    check char array for empty values

    Hi Guys

    How do I check whether a value in my char array is empty ?



    char myarr[2];

    myarr[0] = '1';
    myarr[1] = '2';
  13. Thread: web compression

    by aShape
    Replies
    4
    Views
    556

    Re: web compression

    Im in the research phase at the moment. Are there any other compression methods other than deflate and gzip ? The objective is the send the file as fast as possible.
  14. Thread: web compression

    by aShape
    Replies
    4
    Views
    556

    web compression

    Hi Guys

    I am looking into methods if speeding up large file transfers. Does anyone know where I can readup on web compression types and implementations ?
  15. Replies
    1
    Views
    4,179

    include boost dependencies in makefile

    Hi Guys

    How do I include boost dependencies in my makefile ?

    /usr/local/boost_1_39_0/boost/stage/lib/libboost_program_options-gcc43-mt-1_39.a...
  16. Re: boost::program_options retrieving commandline args

    BTW, do you know how I can implement shorthand params ? So instead of --file the user can specify -f
  17. Re: boost::program_options retrieving commandline args

    After alittle research I found that adding ->multitoken() does allow you to accept several input values:


    po::value< vector<string> >()->multitoken()
  18. Re: boost::program_options retrieving commandline args

    So what now ?
  19. boost::program_options retrieving commandline args

    Hi Guys
    Below is my current code used to retrieve commandline arguments:



    namespace po = boost:program_options;

    po::options_description desc("Available Options");
    desc.add_options()...
  20. Replies
    7
    Views
    1,034

    Re: Functions in Structures

    I tried setting run as a normal function and when I ran the application all the data was coming out in the incorrect order (race condition). I presume this problem would be fixed if I was dealing...
  21. Replies
    7
    Views
    1,034

    Re: Functions in Structures

    Since I am working with a multithreaded application, each thread having one instance rather than relying on a mutex would be a better approach wouldn't it ?
  22. Replies
    7
    Views
    1,034

    Re: Functions in Structures

    Hi Lindley

    Thanks for that. There is one problem, everytime I execute the code I get the following error msg:





    threads.create_thread( bind(&my::run, filearr[i], search) );
  23. Replies
    7
    Views
    1,034

    Functions in Structures

    Hi Guys

    I am working on a thread_group (using boost). Each thread should be able to create an instance of a given class and then execute several methods inside the instance. I am alittle stuck...
  24. Thread: searching file

    by aShape
    Replies
    0
    Views
    495

    searching file

    Hi Guys,

    How can I search a file for a specfic string ? This is what I have already done so far:



    string line;
    ifstream file ("test");

    if (!file.is_open()) {
  25. Thread: loop vector

    by aShape
    Replies
    1
    Views
    480

    Re: loop vector

    Nevermind, found the answer.
Results 1 to 25 of 71
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured