Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMaximized MDI Child window flicker? Pin
gh4-Oct-01 13:10
gh4-Oct-01 13:10 
GeneralCRichEditView Pin
4-Oct-01 12:45
suss4-Oct-01 12:45 
GeneralRe: CRichEditView Pin
Tomasz Sowinski4-Oct-01 12:53
Tomasz Sowinski4-Oct-01 12:53 
QuestionHelp button on tool window titlebar? Pin
4-Oct-01 12:18
suss4-Oct-01 12:18 
GeneralCatching special key-presses in an ActiveX within IE Pin
4-Oct-01 11:54
suss4-Oct-01 11:54 
GeneralOL2k Addin DLL Problem Pin
DVryce4-Oct-01 8:42
DVryce4-Oct-01 8:42 
GeneralRe: OL2k Addin DLL Problem Pin
Bret Faller4-Oct-01 9:10
Bret Faller4-Oct-01 9:10 
GeneralRe: OL2k Addin DLL Problem Pin
DVryce5-Oct-01 8:54
DVryce5-Oct-01 8:54 
It's having the problem when the Visual basic DLL attempts to make the call into the VC++ DLL. For some reason this call is not taking place on the Win9x machine, but on the NT/2k machine it works fine.

The visual basic declaration of the VC++ dll function looks like this:

' Declare VC++ DLL function import
Declare Function IndexMsg Lib "OL_Index" Alias "IndexMessage" (ByVal msg_path As String, ByVal msg_note_path As String) As Integer


The actual call to this function looks like:

' Call VC++ DLL function to start the import process
result = IndexMsg((temp_path + MAIL_NAME), (temp_path + MAIL_NOTE_NAME))


On the VC++ side of things, the function declartion looks like:

extern "C" UINT IndexMessage(LPSTR msg_path, LPSTR msg_note_path);

And the implementation like:

extern "C" UINT IndexMessage(LPSTR msg_path, LPSTR msg_note_path)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());

// debug call to see how far the call goes
AfxMessageBox("Made it into Index func!", MB_OK);

// call the function to perform the indexing tasks
return theApp.DoDisp(CString(msg_path), CString(msg_note_path));
}

And finally my .DEF file for the VC++ DLL exports looks like:

LIBRARY "OL_Index"
DESCRIPTION 'OL_Index Windows Dynamic Link Library'

EXPORTS
; Explicit exports can go here
IndexMessage @59 PRIVATE
GeneralPassing Arguments Pin
luke_ratliff4-Oct-01 8:06
luke_ratliff4-Oct-01 8:06 
GeneralRe: Passing Arguments Pin
Chris Losinger4-Oct-01 8:19
professionalChris Losinger4-Oct-01 8:19 
GeneralPulling info from other apps Pin
RobJones4-Oct-01 7:21
RobJones4-Oct-01 7:21 
GeneralRe: Pulling info from other apps Pin
#realJSOP4-Oct-01 8:21
professional#realJSOP4-Oct-01 8:21 
GeneralRe: Pulling info from other apps Pin
RobJones4-Oct-01 11:22
RobJones4-Oct-01 11:22 
GeneralGrid probs Pin
Jon Hulatt4-Oct-01 7:03
Jon Hulatt4-Oct-01 7:03 
GeneralRe: Grid probs Pin
Christian Graus4-Oct-01 11:54
protectorChristian Graus4-Oct-01 11:54 
GeneralRe: Grid probs Pin
Jon Hulatt4-Oct-01 22:20
Jon Hulatt4-Oct-01 22:20 
GeneralBitmap and clipboard Pin
#realJSOP4-Oct-01 6:44
professional#realJSOP4-Oct-01 6:44 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 7:00
professionalChris Losinger4-Oct-01 7:00 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 7:18
professional#realJSOP4-Oct-01 7:18 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 7:29
professionalChris Losinger4-Oct-01 7:29 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 7:57
professional#realJSOP4-Oct-01 7:57 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 7:59
professionalChris Losinger4-Oct-01 7:59 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 8:19
professional#realJSOP4-Oct-01 8:19 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 8:23
professionalChris Losinger4-Oct-01 8:23 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 8:42
professional#realJSOP4-Oct-01 8:42 

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.