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

Search:

Type: Posts; User: servalsoft

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    965

    Re: Memory violation in DLL test

    @VictorN
    You are absolutely right, I must teach myself to respect as much as possible those safe practices.

    @Yanicks
    Thanks for your help, your input did it for me, and the test app is working...
  2. Replies
    5
    Views
    965

    Re: Memory violation in DLL test

    Hello,
    Thank you for taking the time for looking at my post, I copied the code wrong, but I have edited it now. I also understand I must always check the return type of my API function, but I just...
  3. Replies
    5
    Views
    965

    Memory violation in DLL test

    Hello everyone,
    I am attempting to make a function call from a dll file, the function in question is suppose to load a separate window. However when I make the call I the windows is loaded(I can...
  4. Replies
    7
    Views
    1,607

    Re: Structure pointing to itself

    Hi, I finally to make it work and just thought I post the final source code for any one that may have had the same problem.
    The problem was near the while loop in getParent.
    I modfify that...
  5. Replies
    7
    Views
    1,607

    Re: Structure pointing to itself

    modifying addAge () as below worked great


    state addAge (state &myState) {
    58 //state *parent = myState.parentState;
    59 state child;
    60
    61 child.age = myState.age...
  6. Replies
    7
    Views
    1,607

    Re: Structure pointing to itself

    hmmm,,, I am a lil bit more confuse now.... I will look into it now, and try to make sense of all of this. I thoight it might be a little bit easier than this... how wrong was I.....
    I am not trying...
  7. Replies
    7
    Views
    1,607

    Re: Structure pointing to itself

    Thanks for your help, I never thought of that.
    I modified the function as follow


    state addAge (state myState) {
    //state *parent = myState.parentState;
    state child;...
  8. Replies
    7
    Views
    1,607

    Structure pointing to itself

    Hi all,
    I am trying to build a structure that will have has member itself, and I wanna be able to retrieve that structure it is pointing 2. I have been getting some segmentation fault every time I...
  9. Re: C++ assignment for the gurus only . Solve this if u can .

    Come on, all you Gurus out there, the challenge is on, I was going to try to help, but he wants Gurus only for such a complicated problem, and I aint a guru..... yet.
  10. Re: need help with a project on C++. I am new and i am very confused.

    My advice will be to forget about the code all together for a minute, we always run into trouble when we believe programming is just reading a problem and writting long lines of code, it is an Art. ...
  11. Replies
    13
    Views
    1,017

    Re: Adding switches to function

    Have a look at this, it uses strcmp the syntax is

    int strcmp ( const char * str1, const char * str2 );
    so u can have something like


    #include stdio.h
    #include string.h
    ...
    ...
  12. Replies
    4
    Views
    4,475

    Re: Trouble with some simple IF Statements

    Hi there,
    In C++ " = = " test for equality on some data types, and " = " is just the assignment operator, so by writting if (a = 0) you are only re-assigning the value of a, which will result to a...
  13. Re: brand new to C++, hoping to get a little help...

    Hello there,

    1- The comparison will only take place if the user enters a type that cant be compare with the type of reghours, in this case "double" a char wont work for this.

    2- my advice...
  14. Replies
    2
    Views
    2,623

    Re: Creating array using sentinel control

    well i meant it just crashes using the do while loop as posted above. Can you please give me a lil more infos on how to achieve it. i didnt quiete understand your explanations above. thank you
  15. Replies
    2
    Views
    2,623

    Creating array using sentinel control

    Hi, I've been trying to get one of the functions to work with no luck. The function "Read ()" should be creating an array from user input, the array has a size of 10, but when creating the array, it...
Results 1 to 15 of 15





Click Here to Expand Forum to Full Width

Featured