Click here to Skip to main content
15,908,274 members
Home / Discussions / Mobile
   

Mobile

 
GeneralSD Card corruption Pin
misha_grewal13-Feb-04 2:50
misha_grewal13-Feb-04 2:50 
GeneralRe: SD Card corruption Pin
CJCraft.com13-Feb-04 9:19
CJCraft.com13-Feb-04 9:19 
GeneralRe: SD Card corruption Pin
misha_grewal13-Feb-04 9:45
misha_grewal13-Feb-04 9:45 
GeneralCan't debug using emulator Pin
camasmartin12-Feb-04 21:32
camasmartin12-Feb-04 21:32 
GeneralRe: Can't debug using emulator Pin
camasmartin16-Feb-04 9:18
camasmartin16-Feb-04 9:18 
GeneralGrids with EVC++3.0 Pin
coye11-Feb-04 23:38
coye11-Feb-04 23:38 
GeneralRe: Grids with EVC++3.0 Pin
Cedric Moonen12-Feb-04 3:15
Cedric Moonen12-Feb-04 3:15 
QuestionGetProcAddress fails, whats wrong? Pin
vinken11-Feb-04 22:57
vinken11-Feb-04 22:57 
I'm doing a dll on my pocketpc and it fails when I try to get a function pointer from it.

I have this in the dll code:

__declspec (dllexport) void InitFunc (void);
void InitFunc (void)
{
...
}


And this is how I load the dll in the main program:

HINSTANCE hDll;
FARPROC dllInitFunc;
void LoadLib (void)
{
DWORD err;

hDll=LoadLibrary(L"mylib.dll");
if (hDll==NULL){
MessageBox(hWnd,L"Failed to load dll",L"Error",MB_OK);
return;
}
dllInitFunc=GetProcAddress(hVibradll,L"InitFunc");
if (dllInitFunc==NULL){
err=GetLastError();
MessageBox(hWnd,L"Failed to get proc address",L"Error",MB_OK);
}
}

dllInitFunc becomes NULL and err is 87, ERROR_INVALID_PARAMETER.

What am I doing wrong?
AnswerRe: GetProcAddress fails, whats wrong? Pin
Jonas Larsson12-Feb-04 3:50
Jonas Larsson12-Feb-04 3:50 
GeneralWhere to find Information about Getting data from GPS Pin
Rassul Yunussov11-Feb-04 22:06
Rassul Yunussov11-Feb-04 22:06 
GeneralCreating a new folder with MAPI Pin
Dhustone11-Feb-04 4:27
Dhustone11-Feb-04 4:27 
GeneralBack color of a static text Pin
Cedric Moonen11-Feb-04 4:09
Cedric Moonen11-Feb-04 4:09 
GeneralRe: Back color of a static text Pin
João Paulo Figueira11-Feb-04 5:11
professionalJoão Paulo Figueira11-Feb-04 5:11 
GeneralRe: Back color of a static text Pin
Cedric Moonen11-Feb-04 20:43
Cedric Moonen11-Feb-04 20:43 
GeneralWait cursor Pin
Cedric Moonen11-Feb-04 1:38
Cedric Moonen11-Feb-04 1:38 
GeneralRe: Wait cursor Pin
Jonas Larsson11-Feb-04 2:27
Jonas Larsson11-Feb-04 2:27 
GeneralRe: Wait cursor Pin
Cedric Moonen11-Feb-04 2:30
Cedric Moonen11-Feb-04 2:30 
GeneralFirst Chance Exception Pin
CHChenzo9-Feb-04 16:27
CHChenzo9-Feb-04 16:27 
Generalweb server access via bluetooth Pin
P_JAYAPRAKASH8-Feb-04 20:48
P_JAYAPRAKASH8-Feb-04 20:48 
GeneralSDI and the return key closing my program Pin
James_L_Williams7-Feb-04 15:01
James_L_Williams7-Feb-04 15:01 
GeneralRe: SDI and the return key closing my program Pin
João Paulo Figueira8-Feb-04 5:57
professionalJoão Paulo Figueira8-Feb-04 5:57 
GeneralRe: SDI and the return key closing my program Pin
Cedric Moonen19-Feb-04 0:00
Cedric Moonen19-Feb-04 0:00 
Generalevc 4.0 and visual studio.net Pin
bryce6-Feb-04 17:57
bryce6-Feb-04 17:57 
GeneralRe: evc 4.0 and visual studio.net Pin
LunaticFringe9-Feb-04 14:48
LunaticFringe9-Feb-04 14:48 
GeneralFindFirstFlashCard/FindNextFlashCard Pin
Dan Broomall6-Feb-04 9:25
Dan Broomall6-Feb-04 9:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.