|
-
August 2nd, 2008, 08:27 AM
#3
Re: Query: In my DLL, Could I have C++ file & C# file
Thanks darwen. but i am getting some build problem when i try to call the methods defined in the *.cs file.
i have opened *.cs file through 'File | New... | C# | C# Class file'
//myClass.cs file
using System;
/// <summary>
/// Summary description for Class1
/// </summary>
///
namespace mynameSpace
{
public class myClass
{
public myClass()
{
//
// TODO: Add constructor logic here
//
}
public int clConnect()
{
return 1;
}
public int clQuit()
{
return 1;
}
}
}
// cpp file has this
...
using namespace mynameSpace ;
int clConnect()
{
return myClass::clConnect();
}
int clQuit()
{
return myClass::clQuit();
}
//errors i am getting at build time of the DLL
1>.\export_functions.cpp(19) : error C2871: 'mynameSpace' : a namespace with this name does not exist
1>.\export_functions.cpp(27) : error C2653: 'myClass' : is not a class or namespace name
1>.\export_functions.cpp(35) : error C2653: 'myClass' : is not a class or namespace name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|