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

Search:

Type: Posts; User: cegparamesh

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Re: Accessing derived class members using base class pointer.

    Here is the code:


    #include <iostream>
    using namespace std;

    class base
    {
    public:
    virtual void printbase()
  2. Re: Accessing derived class members using base class pointer.

    Thank You friends.

    How would i use the static cast?
    When i do like this, error message comes up.


    Base *b = static_cast<Derived*>(&reference_variable)->DerivedMember(arguments);


    Thank...
  3. Accessing derived class members using base class pointer.

    Friends,

    Can a base class reference be used to access derived class-specific members? Note that the members are not part of the base class, only part of the derived class.

    Thank You, ...
  4. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Paul, you are such a nice person!!!

    What a wonderful help you provided to a newbie.

    Keep it up.

    and Thanks.
    I am using Visual C++ 7, and got the problem solved.

    Paramesh.
  5. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Paul,

    I rebuilded and found no change.
    I am testing the right dll.
    The ordinal number it showed is 0x0001.
    and i left a space between the function name and ordinal.

    I dont know how stupid i...
  6. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Paul,

    I have added the DEF file to the project workspace.
    I changed the EXPORTS fact to all possible values. No use. The name is still _fact@4.

    It seems that the DEF file is not recognized...
  7. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Paul, Thank you.

    I downloaded the depends.exe and found that the name of the function is not fact.
    it is: _fact@4

    Now, the program runs fine.

    But still, i have one question:
    Why didnt the...
  8. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Paul, You are a great helper!
    I thought you would just ignore my request.

    Anyway. Here is my total thingy:

    DLL:
    fact.cpp:


    extern "C" int __declspec(dllexport) __stdcall
  9. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    I already have the def file created!

    But it still gives me the runtime exception.
    When i tried to run the same program in Dev C++, it gave me no error.(irrelevant to the forum!)

    Can you give...
  10. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Thank You for your reply paul.

    In that case, how would i call the dll?
    When i do like this:


    typedef int (WINAPI*function)(int);

    function fact;
  11. Re: error C2679: binary '>>' no operator found for std::string.

    Thank you very much Paul.
    Sorry for my mistake. :D
  12. Replies
    17
    Views
    29,553

    Re: Run-Time Check Failure #0

    Paul. Thank you for your replies.

    But your suggestion gave me two errors:


    fact.cpp(3) : warning C4518: 'int ' : storage-class or type specifier(s) unexpected here; ignored
    fact.cpp(3) :...
  13. Re: error C2679: binary '>>' no operator found for std::string.

    I tried that also. But of no use.

    Any other ideas?

    PS:
    (Paul. It would be <cstring> instead of <string. :) Never mind)
  14. error C2679: binary '>>' no operator found for std::string.

    Hello friends,

    When i try this simple program in Visual C++:


    #include<iostream>
    using namespace std;
    int main()
    {
    string s;
  15. Replies
    17
    Views
    29,553

    Run-Time Check Failure #0

    Hello friends,

    I created a simple dll. The code in the dll is :


    extern "C" __declspec(dllexport)
    int fact(int n)
    {
    int i, fac;
    for(i = 2, fac = 1; i <= n; i++)
  16. Replies
    5,488
    Views
    702,654

    Re: The "last one to post on this thread wins" Thread

    I am back. :D
  17. Poll: Re: What the first thing you do when you login to CG.

    go to general discussion
  18. Replies
    5,488
    Views
    702,654

    Re: The "last one to post on this thread wins" Thread

    this thread is becoming boring.
  19. Replies
    13
    Views
    772

    Re: planting saplings

    Great! Do this right away.
  20. Replies
    5,488
    Views
    702,654

    Re: The "last one to post on this thread wins" Thread

    About the lol smiley. Its too dark to see its laughing. may be change that color to yellow or any light color?
  21. Replies
    17
    Views
    1,220

    Re: Happy Birthday Andy Tacker

    happy bday. :D
  22. Replies
    32
    Views
    1,765

    Re: Happy Birthday SuperKoko

    happy bday. :D
  23. Replies
    5,488
    Views
    702,654

    Re: The "last one to post on this thread wins" Thread

    I am going to think of a strategy to win this one.
    :lol:
  24. Replies
    34
    Views
    1,723

    Re: Which OS are you?

    Check out this link:
    Microsoft has combined the strength of its three most powerful operating systems to create the next generation operating System:
    http://www.geocities.com/rcwoolley/

    :D ...
  25. Replies
    5,488
    Views
    702,654

    Re: The "last one to post on this thread wins" Thread

    I'm Back. :grin:
Results 1 to 25 of 54
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center