adding dll

Have a good day.

A DLL which dont have *.lib and *.h file (only *.dll)

Can be added to a project and can be used.

Thanks.
M.Ugur PAMIR
Technician

Comments

  • : Have a good day.
    :
    : A DLL which dont have *.lib and *.h file (only *.dll)
    :
    : Can be added to a project and can be used.
    :
    : Thanks.
    : M.Ugur PAMIR
    : Technician
    :
    [blue]Yes. I know that fact.[/blue]
  • Have a good day.


    Could you tell me about it. I will use it in c++6Builder.
    Here is the complete file .The dll is in "gui" folder.
    İ want to use the two DLL files.

    http://mcu.st.com/mcdfiles/ST7USBLS-DFUGP-V1.0.zip


    Thanks.
    M.Ugur PAMIR
    Technician


    : : Have a good day.
    : :
    : : A DLL which dont have *.lib and *.h file (only *.dll)
    : :
    : : Can be added to a project and can be used.
    : :
    : : Thanks.
    : : M.Ugur PAMIR
    : : Technician
    : :
    : [blue]Yes. I know that fact.[/blue]
    :

  • Lol, don't beat him up becuase of his english...

    It should say so in your help files, no?
    Something like that is IDE dependant...
    {2}rIng

    : Have a good day.
    :
    :
    : Could you tell me about it. I will use it in c++6Builder.
    : Here is the complete file .The dll is in "gui" folder.
    : İ want to use the two DLL files.
    :
    : http://mcu.st.com/mcdfiles/ST7USBLS-DFUGP-V1.0.zip
    :
    :
    : Thanks.
    : M.Ugur PAMIR
    : Technician
    :
    :
    : : : Have a good day.
    : : :
    : : : A DLL which dont have *.lib and *.h file (only *.dll)
    : : :
    : : : Can be added to a project and can be used.
    : : :
    : : : Thanks.
    : : : M.Ugur PAMIR
    : : : Technician
    : : :
    : : [blue]Yes. I know that fact.[/blue]
    : :
    :
    :

  • : Have a good day.
    :
    :
    : Could you tell me about it. I will use it in c++6Builder.
    : Here is the complete file .The dll is in "gui" folder.
    : İ want to use the two DLL files.
    :
    : http://mcu.st.com/mcdfiles/ST7USBLS-DFUGP-V1.0.zip
    :
    :
    : Thanks.
    : M.Ugur PAMIR
    : Technician
    :
    :
    : : : Have a good day.
    : : :
    : : : A DLL which dont have *.lib and *.h file (only *.dll)
    : : :
    : : : Can be added to a project and can be used.
    : : :
    : : : Thanks.
    : : : M.Ugur PAMIR
    : : : Technician
    : : :
    : : [blue]Yes. I know that fact.[/blue]
    : :
    :
    :
    [blue]To use just a DLL file - you need to know which functions this DLL is exporting: the function names, parameters, return values.

    If you know all that, then to use such DLL is easy:

    1. Call LoadLibrary() to load the DLL from disk to memory.

    2. Call GetProcAddress() to locate the needed function by its name or ordinal index (if you have that ordinal index). Here you have to prepare the type, which will correspond to the pointer to function from DLL. Typecast the return value from GetProcAddress() into the variable of that type.

    3. Call the found function by its pointer, which you loaded in previous step.

    4. When finished with DLL, call FreeLibrary() to unload DLL from memory.

    ===

    You can find more details here:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_functions.asp[/blue]
  • Have a good day.

    Q1.I try your answer.Now there is not any other error messages exept "[Linker Fatal Error]Fatal:Expected a file name:"What is it about.

    Q2.Are there any differences between c++,borland c++,c6,c++6,cBuilder and (i use)c++6buider. i try to understand examples when they dont work or generate error codes ,i think this exampleis not for my compiler.

    Q3.Are there any useful links or documents for usb comminication.


    Thanks.
    M.Ugur PAMIR
    Technician



    : : Have a good day.
    : :
    : :
    : : Could you tell me about it. I will use it in c++6Builder.
    : : Here is the complete file .The dll is in "gui" folder.
    : : İ want to use the two DLL files.
    : :
    : : http://mcu.st.com/mcdfiles/ST7USBLS-DFUGP-V1.0.zip
    : :
    : :
    : : Thanks.
    : : M.Ugur PAMIR
    : : Technician
    : :
    : :
    : : : : Have a good day.
    : : : :
    : : : : A DLL which dont have *.lib and *.h file (only *.dll)
    : : : :
    : : : : Can be added to a project and can be used.
    : : : :
    : : : : Thanks.
    : : : : M.Ugur PAMIR
    : : : : Technician
    : : : :
    : : : [blue]Yes. I know that fact.[/blue]
    : : :
    : :
    : :
    : [blue]To use just a DLL file - you need to know which functions this DLL is exporting: the function names, parameters, return values.
    :
    : If you know all that, then to use such DLL is easy:
    :
    : 1. Call LoadLibrary() to load the DLL from disk to memory.
    :
    : 2. Call GetProcAddress() to locate the needed function by its name or ordinal index (if you have that ordinal index). Here you have to prepare the type, which will correspond to the pointer to function from DLL. Typecast the return value from GetProcAddress() into the variable of that type.
    :
    : 3. Call the found function by its pointer, which you loaded in previous step.
    :
    : 4. When finished with DLL, call FreeLibrary() to unload DLL from memory.
    :
    : ===
    :
    : You can find more details here:
    :
    : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_functions.asp[/blue]
    :

  • : Have a good day.
    :
    : Q1.I try your answer.Now there is not any other error messages exept "[Linker Fatal Error]Fatal:Expected a file name:"What is it about.

    [blue]Haven't got a clue unless you post code. Probably a wrong path to a h-file or something. Note that you need #include for the DLL APIs.[/blue]

    : Q2.Are there any differences between c++,borland c++,c6,c++6,cBuilder and (i use)c++6buider. i try to understand examples when they dont work or generate error codes ,i think this exampleis not for my compiler.

    [blue]C++ is the language.
    Borland C++ could be any compiler made by Borland. There are 10-20 of them.
    C6 is nothing programming related...
    C++6 doesn't mean a thing.
    cbuilder doesn't exist.
    The name of the compiler you are using is C++ Builder 6.
    [/blue]

  • Have a good day.


    Q1.I try your answer.Now there is not any other error messages exept "[Linker Fatal Error]Fatal:Expected a file name:"What is it about.

    Haven't got a clue unless you post code. Probably a wrong path to a h-file or something. Note that you need #include for the DLL APIs.

    http://rapidshare.de/files/30430968/1.rar



    Thanks.

    M.Ugur PAMIR
    Technician
  • Have a good day.

    I solved the problem "[Linker Fatal Error]Fatal:Expected a file name:"

    """""""""""""""""""""""""""""""""""
    Other general usage issues
    ------------------------------

    * When checking variants, use the IsEmpty method instead of
    NULL.

    * If, after installing TeamSource, you don't see TeamSource
    listed on your Tools menu, you'll need to manually
    configure the application to run with C++Builder. To do
    that, open C++Builder, choose Tools|Configure Tools to
    open the Tools Options dialog, then click Add to open the
    Tool Properties dialog, and Browse for your TeamSource
    application and working directory.

    ******** You may encounter linker errors (including "[Linker Fatal
    Error] Fatal: Expected a file name:") if your project
    includes any paths that contain a "-" (hyphen) or "+"
    (plus sign). Best practice: Avoid those symbols in any
    paths used in your project.**********
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    now the problem
    "
    [C++ Error] Unit1.cpp(64): E2356 Type mismatch in redeclaration of '__stdcall HidD_GetHidGuid(_GUID *)'

    [C++ Error] hidsdi.h(78): E2344 Earlier declaration of '__stdcall HidD_GetHidGuid(_GUID *)'
    "

    project file
    http://rapidshare.de/files/30682665/2.rar

    Thanks

    M.Ugur PAMIR
    Technician


  • Have a good day.

    I have two "hid.h" file.
    -Microsoft Windows Server 2003 SP1 DDK
    -and an other from internet

    they are differant.which one is for LS usb HID comminication ?

    Thanks

    M.Ugur PAMIR
    Technician


  • [b][red]This message was edited by tsagld at 2006-9-18 23:48:6[/red][/b][hr]

    You are loading the dll dynamically with LoadLibrary, as asmguru suggested. If something is wrong with that, you wouldn't notice it until runtime. It cannot be the cause of the linker error.
    Loading a dll with LoadLibrary does not require any project settings, since you aren't using the dll until runtime.
    Remove any reference to the dll from the project and try again.


    Greets,
    Eric Goldstein
    http://www.gvh-maatwerk.nl




  • Have a good day.

    At the moment i solved all the problems until today.please answer me for this question.

    in"Human Interface Devices: Host Application Example Chapter16"page362

    functions declaration:
    HDEVINFO
    SetupDiGetClassDevs(
    IN LPGUID ClassGuid, OPTIONAL
    IN PCTSTR Enumerator, OPTIONAL
    IN HWND hwndParent, OPTIONAL
    IN DWORD Flags );


    and in c++Builder6 include file "setupapi.h"

    functions declaration:
    WINSETUPAPI
    HDEVINFO
    WINAPI
    SetupDiGetClassDevsA(
    IN CONST GUID *ClassGuid, OPTIONAL
    IN PCSTR Enumerator, OPTIONAL
    IN HWND hwndParent, OPTIONAL
    IN DWORD Flags
    );

    There are differances between declarations.
    Is it a problem which the c++program cant catch mydevice


    (some similator information)
    not attached no hid device no problem

    attached

    first scan
    SetupDiEnumDeviceInterfaces returns"1"
    Attributes.ProductID return"0"

    second scan
    SetupDiEnumDeviceInterfaces returns"0"
    there is no other hid device


    my program finds 1 hid device but it has invalid vendor and product id althougt there is no any ather type of usb device.

    Thanks

    M.Ugur PAMIR
    Technician

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories