Is this a compiler problem? I cannot use bcc32 here?
TIA
<loafth> wrote in message news:4158823f.1a5...@sybase.com...
--
Roy
Then, I run the pbx2pbd90 and it was failed:
----------
C:\pb9\hello>pbx2pbd90 c:\pb9\hello\pbnihello.pbd
c:\pb9\hello\pbnihello.dll
Can not get function(PBX_GetDescription) entry point.
Adding file: c:\pb9\hello\pbnihello.dll into
PBD:c:\pb9\hello\pbnihello.pbd ... Failed!
---------
looks like pbx2pbd90 cannot find the _main() of
PBX_GetDescription(). but compiler does not get this error.
Is this caused by compiling defects (warning)?
TIA
Use DependencyWalker (www.dependencywalker) to verify that you have a
function by that name exported from the DLL without C++ name mangling --
you may need to add a .def file to your project.
--
Roy
Can you provide your source CPP file?
--
Roy
loafth wrote:
> I got "Export Function List View" from dependencywalker :
> --------------------------------------------------------------------------------------------------------------------------------------
> E Ordinal Hint Function Entry Point
> ---------------------------------------------------------------------------------------------------------------------------------------
> [c] 1(0x0001) 0(0x0000) PBX_CreateNonVisualObject 0x00001258
> [c] 2(0x0002) 1(0x0001) PBX_GetDescription 0x0000124C
> [c] 3(0x0003) 2(0x0002) ___CPPdebugHook 0x0000916C
>
> and also see the attached screen shot.
> By the way, what kind .def file I should include?
>>>,PBCallInfo *)
--
Roy
loafth wrote:
> I am not sure, I guess it is bcc32 compiler added it...
> All source files are copied from PBDJ PBNI part II, see
> attached doc.
> TIA
>
>
>>Not sure what ___CPPdebugHook is doing... otherwise looks
>>OK.
>>
>>Can you provide your source CPP file?
>>
>>--
>>Roy
>>
>>
>>loafth wrote:
>>
>>>I got "Export Function List View" from dependencywalker
>>>:
>>
>>----------------------------------------------------------
>>----------------------------------------------------------
>>
>>>------------------ E Ordinal Hint
>>>Function Entry Point
>>
>>----------------------------------------------------------
>>----------------------------------------------------------
>>
>>>------------------- [c] 1(0x0001) 0(0x0000)
>>, >>but >>>I still never got it working and just convinced
>>the >>boss >>>to get VC++. If you have any luck I for one
>>would >>
>>
>>>>>>>appreciate it if you posted how you did it in here.
>>>>>>>
>>>>>>><loafth> wrote in message
>>>>>>>news:4158823f.1a5...@sybase.com...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>I use Borland C++ compiler to try one PBNI example
>>>>>>>>"PNBIHello". I use comand line "bcc32 -WD
>>>>
>>>>pbnihello.cpp >>>>pbx_hello.cpp" to created
>>
>>pbnihello.dll >>with 7 warning >>>>message like "...
>>Parameter 'xxx' is >>never used in >>
>>
>>>>>>function >>__xxx ...", then I copy it to a new folder
>>
>>to >>>>create pbd by >>using command "pbx2pbd90
>>
>>>>>>c:\pb9\hello\pbnihello.pbd
>>>>
>>>>c:\pb9\hello\pbnihello.dll" >>
>>>>, >>it return message: >>"Can not get
>>>>
>>>>
>>>>>>function(PBX_GetDescription) entry point. >>Adding
>>
>>file: >>>>c:\pb9\hello\pbnihello.dll into
>>
>>>>>>
>>>>>>>>PBD:c:\pb9\hello\pbnihello.pbd ... Failed!" >>
>>>>>>>>Is this a compiler problem? I cannot use bcc32 here?
>>>>>>>>
>>>>>>>>TIA
>>>>>>>
>>>>>>>
>>>>>>>
>>>>Use DependencyWalker (www.dependencywalker) to verify
>>
>>that >>you have a function by that name exported from the
>>DLL >>without C++ name mangling -- you may need to add a
>>def >>file to your project.
>>
>>>>--
>>>>Roy
TIA
--
Roy
the file's content is:
EXPORTS
_PBX_GetDescription@0 = PBX_GetDescription
Good Luck!