Search:
Type: Posts; User: cegparamesh
Search:
Search took 0.03 seconds.
-
December 2nd, 2005, 03:17 PM
Here is the code:
#include <iostream>
using namespace std;
class base
{
public:
virtual void printbase()
-
December 2nd, 2005, 12:10 PM
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...
-
December 1st, 2005, 09:39 PM
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, ...
-
November 27th, 2005, 11:51 AM
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.
-
November 27th, 2005, 10:29 AM
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...
-
November 27th, 2005, 10:02 AM
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...
-
November 27th, 2005, 09:26 AM
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...
-
November 27th, 2005, 04:33 AM
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
-
November 26th, 2005, 11:34 PM
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...
-
November 26th, 2005, 11:15 PM
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;
-
November 26th, 2005, 09:37 PM
Thank you very much Paul.
Sorry for my mistake. :D
-
November 26th, 2005, 09:34 PM
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) :...
-
November 26th, 2005, 09:01 PM
I tried that also. But of no use.
Any other ideas?
PS:
(Paul. It would be <cstring> instead of <string. :) Never mind)
-
November 26th, 2005, 08:02 PM
Hello friends,
When i try this simple program in Visual C++:
#include<iostream>
using namespace std;
int main()
{
string s;
-
November 26th, 2005, 07:33 PM
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++)
-
November 19th, 2005, 11:52 AM
-
November 17th, 2005, 07:59 PM
-
November 17th, 2005, 07:59 PM
this thread is becoming boring.
-
November 15th, 2005, 12:19 PM
Great! Do this right away.
-
November 14th, 2005, 11:21 PM
About the lol smiley. Its too dark to see its laughing. may be change that color to yellow or any light color?
-
November 14th, 2005, 11:19 PM
-
November 14th, 2005, 11:18 PM
-
November 14th, 2005, 11:17 PM
I am going to think of a strategy to win this one.
:lol:
-
November 14th, 2005, 06:29 PM
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 ...
-
November 14th, 2005, 06:25 PM
|
Click Here to Expand Forum to Full Width
|