none
DLLRegisterServer ENTRY POINT WAS NOT FOUND in VISUAL C++ DLL FILE.

    Question

  • Hi, I have the following class  in Visual c++:

    // My_Code.h

    #pragma

     

    once

    #using

     

    "DownloadFile.dll"

    using

     

    namespace System;

    namespace

     

    My_Code {

     

    public ref class Class1

    {

     

    public: void Download_File(string weburl, string file)

    { DownloadFile::File_Url myfile; myfile.FileDownload(weburl1,file); }

     

    public: void Upload_File(string weburl1, string file)

    { DownloadFile::File_Url myfile; myfile.FileUpload(weburl1,file); }

     

    };

    }

    when I use Regsrv32 Myfile.dll  so  I can register this file for using <object> in html webpage.
    It says DLLRegisterServer  ENTRY POINT WAS NOT FOUND. How can I add DLLRegister and DLLUnRegister functions so that I can export this class as ActiveX Control. Can you give me an example and code to add, and what to include or define.
    Thanks in advance, Gennady G.

    Thursday, November 19, 2009 7:35 AM

Answers

  • There is nothing in your file to mark that class as a Com Class. And ebcause of that, no COM wrapper or COM entry points are generated
    Do a search google or www.codeproject.com
    There should be plenty of examples on how to do this.

    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 8:59 AM
    • Marked as answer by Nancy Shao Tuesday, November 24, 2009 10:09 AM
    Thursday, November 19, 2009 2:04 PM