473,327 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to get the structure in callback?

I have wrote the following code, and my question is how to get the
"pInfo"?
It seem that can't call the CheckNewMailProc but return TRUE, is
something get wrong or I got misunderstand?

typedef BOOL(__cdecl *
CHECKFORNEWMAILCALLBACK)(TransportCheckForNewMailI nfo*);

BOOL CALLBACK CheckNewMailProc(TransportCheckForNewMailInfo *pInfo)
{

return TRUE;
}
BOOL CEmailView::TransportConnect()
{
HINSTANCE hInst = LoadLibrary(_T("imap4.dll"));
typedef BOOL(*PTRANSPORTCHECKFORNEWMAIL)(HANDLE,CHECKFORNE WMAILCALLBACK);
PTRANSPORTCHECKFORNEWMAIL pTransportCheckForNewMail =
(PTRANSPORTCHECKFORNEWMAIL)GetProcAddress(hInst,_T ("TransportCheckForNewMail"));

if(!pTransportCheckForNewMail(hService, CheckNewMailProc))//<---can't
all "CheckNewMailProc"
{
return FALSE;
}
return TRUE;
}
Jul 19 '05 #1
0 1371

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Richard Lewis | last post by:
Hi there, I've just started my first project with Tkinter. I've already coded all the data handling classes and have a nice interface to work with (it happens to be a wrapper around the DOM of...
15
by: Felix Kater | last post by:
Hi, in a given library I register callback functions with this function: bool set_callback(int index, int (*callback_function)(long)); I need the callback function to also pass the index...
9
by: Hugo Amselschlag | last post by:
Hi there, I've implemented a local system hook to suppress certain windows beeing displayed by the axWebbrowser control. Now I need some more information before I can decide, whether to suppress...
5
by: renjini | last post by:
I am a starter in C# ... I will present my problem : I am wrapping a C dll in C#. The C dll exports a function which takes a structure MYSTRUCT holding 2 function pointers(callback functions)....
0
by: renjini | last post by:
I am a starter in C# ... I will present my problem : I am wrapping a C dll in C#. The C dll exports a function which takes a structure MYSTRUCT holding 2 function pointers(callback...
4
by: jb.simon | last post by:
Given the following code : #include <stdio.h> typedef struct Handler { int data1 ; int data2 ; int data3 ;
3
by: =?Utf-8?B?VG9tIEFsbGVu?= | last post by:
We are using a 3rd party API that processes video stream files to update a data structure in the file. I am writting a C# facade for this API but I am having a hard time getting it to pass data...
1
by: =?Utf-8?B?bGlnaHRkb2xs?= | last post by:
hello everyone. i have made a dll of c++/cli, then i want to exchange structure between c++/cli and c. this is the structure typedef struct tagExchange {
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.