Hi,
I have a DLL that exposes interfaces (compiled with VC++ 6.0)
I've used exported functions(not interfaces) of this DLL in a .NET project and everything is alright.
The problem is that the built assembly (exe) do not expose the interfaces of my DLL, thing that it is done automatically in a native C++ project.
Can anyone helps??
Regards.
User Profile
Collapse
-
Expose a COM interface that exists in a dll through a .NET assembly
-
Can Code Dom resolve the pb?? -
GroupBox serialization
hi,
I want to serialize a group box like this
MemoryStream ms = new MemoryStream();
object objResult;
BinaryFormatter bf = new BinaryFormatter ();
bf.Serialize(ms , this.groupBox1) ;
but the groupbox is not serializable
Can any one have an idea or solution??
Regards. -
Error After Compiling: please help
I have a C++ solution in Visual Studio 2008
This solution contains two projects:
1- Native DLL that communicate with others delegates and provides interfaces to the second project
2-Managed C++ that use the functions of the first project (exe) that represent the interface of a server.
I compile the solution and there's no problem.
When I connect a client all thing are alright. But when I... -
Thx,
In fact, I don't want to define a new FileTime structure, I'd like to use the C predefined FILETIME structure.Leave a comment:
-
Convert time to FILETIME
hi,
wel I have these vars:
double day,month,year, hour,minute,sec ond,millisecond ;
I want to convert this data to a filetime structure, I don't want of course to convert them manually
please help -
-
problem with visual C++ 9 compile
Well the problem is so frustrating for a any C++ developer
I want to import call using this syntax
#include.....
class Imported;
class NEWclass
{
Imported* imp;
}
the compiler considers "class Imported " as a new definition for the class Imported.
Can anyone show me a way to import the class without calling the header file.... -
in the header file, we should add the key word inline to the functions that are implemented in the header.Leave a comment:
-
Sorry,
but the problem was so simple I've just use two different call conventions __stdcall
and __cdlecLeave a comment:
-
Any Idea about this error? Value of ESP
I am writing COM servers and each time I have this error I don't know the cause:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
I want to have a detailed explanation of this error and the problems that cause it
... -
Hi pootle,
thx for your clear ideas.
but I don't understand the last part of your reply, anyway I have CLR exceptions enabled in my debugger.Leave a comment:
-
In my case the debugger can't step into the code when it attends the statement where the callback(that I defined) try to change the text of the label.
Now I understand more the problem, in winforms we cannot change the controls from an extern process(extern to the one that created the control)
==>an exeption is raised but don't don't block the execution, but the debugger return to the top of the callback
I...Leave a comment:
-
Well I understand that the problem is a cross-thread exception
So, please tell me how can I fix this problem without changing the structure of my application.Leave a comment:
-
Problem with windows forms and delegates
I have an OPC server (an application server).
I write this server using C++/CLI.
This server contain callbacks (delegates)
When the client connects to the server (enter the core of a callback function onconnectclient ) I want to change the text of a text box!!!
onclientcallbac k is defined in a seperate class called Callbacks
In this class I have an attribute called... -
thx can u give me an idea about this State Pattern or give me a useful link.Leave a comment:
-
variantchangetype problems COM interoperability C++/CLI
hi,
I'm writing a wrapper from unmanaged C++ to C++/CLI
I've replaced the variant_type by
a structure:
Type_Value
{
SupportedTypes Type,
String^ Value
}
Supported_Types //enm type
{
types written in hand
}
well, this is working very good and this is suitable for me
but now I need the results of variantchangety pe cuz I'm developping... -
well I have a good idea but I don't think is the best:
//in managed code
func1(Type^ tn);
but in the dllimport I put this function
extern void func1(cli::inte riorptr<Type> tn);
this code works but I want a best solution, so please helpLeave a comment:
-
Is there a mean to pass Pinny Pointer to native code?
As the title of the question show I want to pass a pinny pointer (C++/CLI) pointer to a native function
When Compiling there's no error
but the pointer do not contain any value
I explain more the problem:
typedef value struct //defined in managed code
{
}Type_Name;
The same Type is defined in a native DLL but without the keyword value
... -
nabil035 started a topic Write a callback function in C++ CLI and invoke this function in a native DLLin CWrite a callback function in C++ CLI and invoke this function in a native DLL
I explain exactly what I want to do:
write a callback function in a C++/CLI application
this application imports function from a native DLL
call this function from the DLL and return the results to the application
Can Anyone help with the simplest example, please!
No activity results to display
Show More
Leave a comment: