CodeConnect.Net Beta


   Explore    Entry   Register  Login  
windowsxp-general
access
windows-vista-mail
windows-vista-general
windowsupdate
windowsmedia-player
access-forms
windows-live-mail-desktop
windowsxp-help_and_support
access-queries
access-modulesdaovba
access-formscoding
windows-server-sbs
windows-server-general
access-reports
windows-vista-music_pictures_video
windowsce-platbuilder
windows-live-messenger
windows-terminal_services
windows-powershell
windows-server-active_directory
access-gettingstarted
windows-mediacenter
windowsxp-hardware
windowsxp-network_web
windows-64bit-general
windows-live-sync
windows-vista-hardware_devices
windows-inetexplorer-ie6_outlookexpress
windows-group_policy
windows-server-networking
windows-vista-installation_setup
windows-vista-networking_sharing
windowsxp-basics
access-tablesdbdesign
windowsxp-perform_maintain
windows-vista-performance_maintenance
windows-networking-wireless
windows-vista-file_management
windows-inetexplorer-ie6-browser
windows-server-dns
windows-server-update_services
windows-vista-security
windows-vista-administration_accounts_passwords
windows-vista-games
windows-file_system
access-activexcontrol
windows-live-foldershare
windows-live-photogallery
access-developers-toolkitode
access-conversion




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > Microsoft News > microsoft.public.windowsce.platbuilder Tags:
Item Type: Date Entered: 11/7/2009 8:24:02 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 95 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"vincent.tsai"
NewsGroup User
Application calling the function defined in BSP's dll11/7/2009 8:24:02 AM
Reply

0

Hi:

IN CE600,mipsii BSP platform ,i build a C AP project.
i want to call a fuction defined in dll. this dll had been put in platform
..bib (abc.dll $(_FLATRELEASEDIR)\abc.dll NK SHK)
1. could i call the function defined in dll directly in AP?
2. if i first to loadlibrary(TEXT("abc.dll")) then return NULL, how can i
call the function defined in dll correctly?
3. i make the function to the BSP's lib. and put the lib to Application
properties Link field (Additional libraries).
but the link put out the err message:
Linking obj\MIPSII\retail\BLK2.exe
BUILD: [01:0000000048:ERRORE] BLK2.obj : error LNK2019: unresolved external
symbol "int __cdecl GetBklVersion(unsigned short *)"
(?GetBklVersion@@YAHPAG@Z) referenced in function "long __cdecl
WndProc(struct HWND__ *,unsigned int,unsigned int,long)"
(?WndProc@@YAJPAUHWND__@@IIJ@Z)
BUILD: [01:0000000049:ERRORE] BLK2.obj : error LNK2019: unresolved external
symbol "int __cdecl StartBklAPI(void)" (?StartBklAPI@@YAHXZ) referenced in
function "long __cdecl WndProc(struct HWND__ *,unsigned int,unsigned
int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
BUILD: [01:0000000050:ERRORE] obj\MIPSII\retail\BLK2.exe : fatal error
LNK1120: 2 unresolved externals

i had declared the function name as C rule.
don't know why not link?

hope to get clues .
any comment would be good to us.

Thanks & Best Regards.
vincent tsai


"Paul G. Tobey
NewsGroup User
Re: Application calling the function defined in BSP's dll11/7/2009 6:40:40 PM
Reply

0

You can't load a kernel DLL from an application. It has to be a non-kernel
DLL. I think that simply removing SHK from your BIB entry will allow you to
load it as in 2 or link with the library. As for the link problem you're
having, there are several things that you might be doing wrong: the function
might not be exported from the DLL, hence not in the library, you might be
exporting it in C calling convention but trying to call it from C++ without
the declaration being properly set up (or you might be exporting it in C++
format and trying to call it as extern "C"), or you might be even further
off the track.

Paul T.

"vincent.tsai" <vincent.tsai@icnexus.com.tw> wrote in message
news:O2$e$N4XKHA.3504@TK2MSFTNGP05.phx.gbl...
> Hi:
>
> IN CE600,mipsii BSP platform ,i build a C AP project.
> i want to call a fuction defined in dll. this dll had been put in platform
> .bib (abc.dll $(_FLATRELEASEDIR)\abc.dll NK SHK)
> 1. could i call the function defined in dll directly in AP?
> 2. if i first to loadlibrary(TEXT("abc.dll")) then return NULL, how can i
> call the function defined in dll correctly?
> 3. i make the function to the BSP's lib. and put the lib to Application
> properties Link field (Additional libraries).
> but the link put out the err message:
> Linking obj\MIPSII\retail\BLK2.exe
> BUILD: [01:0000000048:ERRORE] BLK2.obj : error LNK2019: unresolved
> external symbol "int __cdecl GetBklVersion(unsigned short *)"
> (?GetBklVersion@@YAHPAG@Z) referenced in function "long __cdecl
> WndProc(struct HWND__ *,unsigned int,unsigned int,long)"
> (?WndProc@@YAJPAUHWND__@@IIJ@Z)
> BUILD: [01:0000000049:ERRORE] BLK2.obj : error LNK2019: unresolved
> external symbol "int __cdecl StartBklAPI(void)" (?StartBklAPI@@YAHXZ)
> referenced in function "long __cdecl WndProc(struct HWND__ *,unsigned
> int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
> BUILD: [01:0000000050:ERRORE] obj\MIPSII\retail\BLK2.exe : fatal error
> LNK1120: 2 unresolved externals
>
> i had declared the function name as C rule.
> don't know why not link?
>
> hope to get clues .
> any comment would be good to us.
>
> Thanks & Best Regards.
> vincent tsai
>
>


2 Items, 1 Pages 1 |< << Go >> >|







Similar:

devaccess_busnamespace flag

virtualqueryex on windows ce 6.0

wince 6.0 image with 5.0 bootloader

winerror 87 while doing scardtransmit to transmit apdu to smart card.

how to merging two projects built on the same bsp ?

opendevicekey() occur exception 'access violation' (14)

including my fasld driver and excluding microsoft fasld driver

ethernet renew time

is this a bug for wince5.0 fat32?

deploy runtime image to pc745 device

replacing standard shell with taskman

problem with cloned bsp

sdk not containing correct libraries

can activesync file browsing be turned off?

wdm to wince porting

fal/fmd driver architecture

annoying pb issue with error list and build window in pb 6

platform builder 4.2 download???

how to enable debugmsg in windows ce 6.0 kernel

disable usb host at runtime

why wince 6.0 is able to run arround 32k processes

sdio wifi solution on intel atom processor, and windows ce 6.0 r2 platform

hive base registry problem

ttl vs rs-232

eboot.bin debug version?

rnds driver

why fatfs.dll is loaded two times?

how to link bthlink sample driver with btpair.exe application (ce

adding sql server compact in platform builder wince5.0

windows ce 5 rdp component forward compatibility qfe ?

nk.bin for dom /hd and network problem

xip and fmd in same nor flash

iesample_exr.exe throws exception in mshtml.dll

how to include compact flash support in my platform ?

wince 6.0 r2 with internet explorer 6.0 - issue

arm compiler in microsoft platform builder 5.0

windows embedded ce - chat tomorrow

platform builder 6.0 image download issue

wince desktop icon text

how to eliminate the "image too large" error?

ethernet connectivity issue / cerdisp

flashdrv.dll:buildupmappinginfo() - unable to map logical sector..

recv - detect connection aborts

windows embedded ce 6 dst change on wrong day

irq mapping

alphablend

activesync to massstorage mode

tfat and nand fmd block driver

cepc, serial kitl

download ce 6.0 r3 update once, install often

   
  Privacy | Contact Us
All Times Are GMT