User Profile

Collapse

Profile Sidebar

Collapse
nabil035
nabil035
Last Activity: Apr 21 '10, 11:22 AM
Joined: Mar 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Expose a COM interface that exists in a dll through a .NET assembly

    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.
    See more | Go to post

  • nabil035
    replied to GroupBox serialization
    in .NET
    Can Code Dom resolve the pb??
    See more | Go to post

    Leave a comment:


  • nabil035
    started a topic GroupBox serialization
    in .NET

    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.
    See more | Go to post

  • nabil035
    started a topic Error After Compiling: please help
    in C

    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...
    See more | Go to post

  • nabil035
    replied to Convert time to FILETIME
    in C
    Thx,

    In fact, I don't want to define a new FileTime structure, I'd like to use the C predefined FILETIME structure.
    See more | Go to post

    Leave a comment:


  • nabil035
    started a topic Convert time to FILETIME
    in C

    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
    See more | Go to post

  • nabil035
    replied to problem with visual C++ 9 compile
    in C
    thx


    Yes,it was a problem of includes,
    See more | Go to post

    Leave a comment:


  • nabil035
    started a topic problem with visual C++ 9 compile
    in C

    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....
    See more | Go to post

  • nabil035
    replied to LNK2005 error: class redifinition
    in C
    in the header file, we should add the key word inline to the functions that are implemented in the header.
    See more | Go to post

    Leave a comment:


  • nabil035
    replied to Any Idea about this error? Value of ESP
    in C
    Sorry,

    but the problem was so simple I've just use two different call conventions __stdcall

    and __cdlec
    See more | Go to post

    Leave a comment:


  • nabil035
    started a topic Any Idea about this error? Value of ESP
    in C

    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
    ...
    See more | Go to post

  • nabil035
    replied to Problem with windows forms and delegates
    in C
    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.
    See more | Go to post

    Leave a comment:


  • nabil035
    replied to Problem with windows forms and delegates
    in C
    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...
    See more | Go to post

    Leave a comment:


  • nabil035
    replied to Problem with windows forms and delegates
    in C
    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.
    See more | Go to post

    Leave a comment:


  • nabil035
    started a topic Problem with windows forms and delegates
    in C

    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...
    See more | Go to post

  • thx can u give me an idea about this State Pattern or give me a useful link.
    See more | Go to post

    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...
    See more | Go to post

  • 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 help
    See more | Go to post

    Leave a comment:


  • nabil035
    started a topic Is there a mean to pass Pinny Pointer to native code?
    in C

    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
    ...
    See more | Go to post

  • Write 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!
    See more | Go to post
No activity results to display
Show More
Working...