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

Search:

Type: Posts; User: Mavens

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. PHP possibilities of upload files by sending it in email.

    Hi,

    I am new to PHP but not to programming languages. Recently i have been developing one website in PHP. In website i want facility for user to upload documents and i have done it. Now I want a...
  2. Replies
    9
    Views
    1,033

    Re: opening files were name contains '

    Are you creating your filePath string with escape sequences for directories?
    eg. "c:\\C++\\test.txt"
  3. Replies
    6
    Views
    2,318

    Re: Calling mount() programmatically

    About Android i cannot comment. But this is a simple thing you can always check your header files about the signature.

    As i have verified it on SunOS at /usr/include/sys/mount.h and found the...
  4. Replies
    6
    Views
    2,318

    Re: Calling mount() programmatically

    The signature of mount is different for BSD System Calls.
    man page
  5. Replies
    7
    Views
    5,116

    Re: convert int to char array

    What do you think, what you are doing here? Is it doing what you are supposing?
  6. Thread: map problem

    by Mavens
    Replies
    12
    Views
    955

    Re: map problem

    I have taken valueItems as vector now. And now it is taking lots of time to load around 41109 records in memory. It is showing high memory usage as well as. Can you see what i am doing wrong.

    ...
  7. Thread: map problem

    by Mavens
    Replies
    12
    Views
    955

    Re: map problem

    well when i was doing this

    It was giving segmantation fault. Might be i havnt allocated memory for secondVal thats why!

    But my actual question was, will this overloaded operator work in this...
  8. Thread: map problem

    by Mavens
    Replies
    12
    Views
    955

    Re: map problem

    true. I was asking if i constructed class as below.


    class valueItems{
    public:
    float firstVal;
    char* secondVal;
    float thirdVal;

    valueItems(float ii,float kk){
  9. Thread: map problem

    by Mavens
    Replies
    12
    Views
    955

    Re: map problem

    Thanks guys,

    But what about valueItems?
    typedef map<keyItems,valueItems> typeLookup;

    Will it work if i have more than 1 value?


    bool operator >(const valueItems &left) const {
    ...
  10. Thread: map problem

    by Mavens
    Replies
    12
    Views
    955

    map problem

    I have to use map with user defined key and values. for that i have created code and using in my program.



    Key class:
    class keyItems{
    int firstKey;
    int secondKey;
    public:
    ...
  11. Re: Extension octets in a frame. How do they work?

    By code do you mean definition file?
    Let me know when you are done.
  12. Replies
    10
    Views
    1,534

    Re: Hiding Implementation Details

    See what you did in impl.cpp

    //string name;
    uncomment this line.
  13. Replies
    2
    Views
    864

    Re: Linux GCC compiler error

    compile it using g++,
    and use using namespace std.
  14. Re: Extension octets in a frame. How do they work?

    Okay, its easy.
    See i have written it for TextString (which is your new field) in example below.


    Extension::={
    [0] IMPLICIT SEQUENCE {
    [1] ...
    [2] ...
    [3] IMPLICIT Digest OPTIONAL...
  15. Re: Extension octets in a frame. How do they work?

    Ok.
    Do you mean that you want to create a definition file.
    Please see these links, it may help you.
    http://www.faqs.org/rfcs/rfc3369.html
    http://en.wikipedia.org/wiki/ASN.1

    Let me know if it...
  16. Re: Extension octets in a frame. How do they work?

    Are you working with ASN.1. Which library you are using?
    Please be more specific on your problem.
  17. Thread: constants

    by Mavens
    Replies
    2
    Views
    765

    Re: constants

    I think both the declaration give the same limitations that is it can not modify any data members or call any member functions that aren't constant as well as cannot change the object.
  18. Replies
    26
    Views
    3,544

    Re: Linux text files

    Man if i read a file using fgets() and as you said "no lines in binary file" then the whole file will be in the buffer!!! Come on...
    fgets reads at most one less than the number of characters...
  19. Replies
    5
    Views
    984

    Re: string to struct

    Well i can give you hint to wirte the function.
    In a Parsefunction
    Read first line into a buffer, if reading file returns EOF then return 1 else
    parse the buffer and assign it to respective...
  20. Thread: Array problem

    by Mavens
    Replies
    5
    Views
    966

    Re: Array problem

    many problems.

    Correct spelling of "include".
    remove "include<iostream.h>"

    what do you want to do with these


    entrys.orville;
    entrys.tiffany;
  21. Replies
    5
    Views
    984

    Re: string to struct

    i think there is no other way except of parsing and populating structure member items. You have to write a function to populate struct then only function can read directly to struct, not you!!! ;)
  22. Replies
    4
    Views
    835

    Re: Forward jump error

    remove semicolon after closing braces of if condition



    if(!commitBuffer()){
    err = INVALID;
    goto ret;
    };

    Do it
  23. Replies
    5
    Views
    7,024

    Re: Linux Execvp wont take argv

    First thing, You can make a check whether your command executed or not.
    execvp(*argv, argv) returns -1 if it fail. You can catch error in perrror as well.
    Second. Print what exactly you are passing...
  24. Replies
    2
    Views
    976

    Re: hmm, 64bit c++ complier?

    I used Visual studio 2005. You need to just select vc++ for 64 bit while installing visual studio. default it installs only vc++ 32 bit. Visual Studio has some service pack also you may need to...
  25. Replies
    6
    Views
    854

    Re: Separation of declaration and definition

    Yeah you are absolutely right.
    Which compiler do you have? where you want to compile it, windows or linux??
Results 1 to 25 of 68
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured