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

Search:

Type: Posts; User: terminalXXX

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    2

    Factory method and my mock object

    I have a class Customer I create a CustomerFactory for it but I would also like to include a Customer_Mock. So I think my factory will create a customer_mock instead of a real customer. Here is what...
  2. Replies
    0
    Views
    1

    Is he a racist ?

    A white guy sent me some emails with words or phrases sounded like those from Lonestars songs (country rock),today I visited his facebook and found his 99/100 friends are all white. I also visited...
  3. I need to stop executing constructor

    using namespace System;
    ref class A
    {
    public:
    A(){Console::WriteLine(L"A constructor");}
    virtual void func(){foo();}
    void foo()
    {
    Console::WriteLine(L"A from foo");
    }
  4. Replies
    6
    Views
    7

    Re: return string length

    Thank you for your confirmation
  5. Replies
    6
    Views
    7

    Re: return string length

    Yes, thank yu, that is why I ask whether or not should I minus one from the second function to match the two version ? For example, my current code is using the first function and I need to upgrade...
  6. Replies
    6
    Views
    7

    Re: return string length

    Ok why does the example in http://msdn.microsoft.com/en-us/library/s7wzt4be%28v=vs.80%29.aspx
    yield 14 while
    http://msdn.microsoft.com/en-us/library/5d7tc9zw%28v=vs.80%29.aspx 13 ?
  7. Replies
    6
    Views
    7

    return string length

    Today we have run into a little problem, too tiny for me to have paid my attention to


    int processString(xxx)
    {
    //do something
    return non-null terminated string length
    }

    to make the...
  8. Re: Can i hear from others about real world experience?

    I am proud to tell you that I a loyal user of this site, I have been here for almost 10 years. But I am very sad when I received replies from older users of this site about my question of...
  9. Re: Unit-testing functions with user-defined types

    No, I am listening, but I do need more information to have a good and correct argument for debates of what I should follow. All code in my library is not really hard, only the user-defined types used...
  10. Re: Unit-testing functions with user-defined types

    Thank you Paul. It was just an example of the situation I am in right now.

    The requirement we have right now is to upgrade the current library (previous team wrote it). Previous authors didn't...
  11. Re: Unit-testing functions with user-defined types

    Thank you, for example, now I hand you in the Boost library and I would like you to write all unit-tests for the library's functions/methods in all classes using MSVS2012, what are you going to do...
  12. Re: Unit-testing functions with user-defined types

    Thank you, the only weird thing is I could not find any tutorials or example code to do what you suggested me. Are there any underlying claims for *never* mocking user-defined, COM related functions...
  13. Over-Sensitive or is it just a *symbolic* security policy

    After joining a company with strict policy for source code that all coders are only allowed to access and read code via virtual machines. I find it horrible a policy they are implementing. Let me be...
  14. Unit-testing functions with user-defined types

    How can we build unit-tests for functions of libraries, those with user-defined types used as their arguments ?

    For example

    CRecord func(Myclass * class, BSTR * name, CComptr<xxx> &...
  15. Replies
    1
    Views
    208

    Please help me learn STL

    That was a short quote from someone. But I have a hard time understanding his words and how to write a piece of code as to exemplify what he says.
    for example

    template<typename T>
    class...
  16. Write an article on codeguru article site

    How do CG decide and accept an article if I "suddenly" would like to post an article for CG community ?
    Should the article be about large applications or just coding tips ?


    Thank you.
  17. Replies
    1
    Views
    261

    Re: My previous company

    At present I am thinking I will apply back a week before my probationary period ends with the current company.
    Whatever you think about me, it's Okay!
  18. Replies
    1
    Views
    261

    My previous company

    My previous company is looking for candidates to work on a eHealth Care System for a US Client



    Don't know if I should re-apply for an interview.
  19. Replies
    4
    Views
    305

    Re: Which one should I choose

    I don't know which to choose again now.
    In cosatech I have to work on[in] time, hourly based(8AM-5PM). in SAP, if I am accepted, i can follow a flexible work hour rule.
    In cosatech they offer me a...
  20. Replies
    4
    Views
    305

    Re: Which one should I choose

    Today I came for the interview

    We talked a lot, here is a short C++ program that I was asked


    int *iv=new int[200];
    for(char i=0;i<200;i++)
    {
    iv[i]=i;
    }
  21. Replies
    4
    Views
    305

    Re: Which one should I choose

    :D thank you for your reply, I signed the job offer with the former (cosatech) but I will also come for the interview with the German team of the latter on this Sunday afternoon (only would want to...
  22. Replies
    1
    Views
    235

    Should this be a good idea ?

    I have been working in and out of some companies for a couple of years. I am thinking I will work for myself instead. I may need to run a tiny small business with some thousands of dollars (enough?)...
  23. Replies
    4
    Views
    305

    Which one should I choose

    I have had 2 interviews cosatech.com and sap.com
    both for the same position. the latter asked me to come for the second round interview with the German team.
    I don't know which one I choose to...
  24. Replies
    2,340
    Views
    251,988

    Re: The Boring Thread

    My right eye's upper lid just has been twitched all the time since this early evening, I guess something really wrong is happening or is going to happen very soon.

    Really worried! :(
  25. Replies
    1
    Views
    309

    Installing an internal HD

    My computer is now running out of space and I am thinking about buying and installing a new internal HD. What should I consider and check before buying then installing it ? I don't know anything...
Results 1 to 25 of 47
Page 1 of 2 1 2



HTML5 Development Center

Click Here to Expand Forum to Full Width