Click here to Skip to main content
15,914,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: making a toolbar button invisible Pin
ns16-Jul-02 8:07
ns16-Jul-02 8:07 
GeneralRe: making a toolbar button invisible Pin
Shog916-Jul-02 8:49
sitebuilderShog916-Jul-02 8:49 
GeneralThanks, and also... Pin
ns16-Jul-02 9:07
ns16-Jul-02 9:07 
GeneralRe: Thanks, and also... Pin
Shog916-Jul-02 9:33
sitebuilderShog916-Jul-02 9:33 
Generalthank you Pin
ns16-Jul-02 9:25
ns16-Jul-02 9:25 
Generaldllimport vs dllexport Pin
Mike Zinni16-Jul-02 4:09
Mike Zinni16-Jul-02 4:09 
GeneralRe: dllimport vs dllexport Pin
Alexandru Savescu16-Jul-02 4:17
Alexandru Savescu16-Jul-02 4:17 
GeneralRe: dllimport vs dllexport Pin
Mike Zinni16-Jul-02 4:45
Mike Zinni16-Jul-02 4:45 
Yes. I have the .LIB file and the directory is included in my Tools->Options->Directories->Library files settings. I wrote the following code to link to the DLL.

typedef int (CALLBACK* LPOMNICREATEFUNC)(void);

BOOL COmniDoc::LoadOmniLibrary()
{
	m_bOmniLoaded = FALSE;

	m_hOmniLibrary = LoadLibrary("SD2.dll");
	if(m_hOmniLibrary)
	{
		m_bOmniLoaded = TRUE;
		m_lpfnSD_Create = (LPOMNICREATEFUNC)GetProcAddress(m_hOmniLibrary, "SD_Create");
	}
	return m_bOmniLoaded;
}

m_lpfnSD_Create is of type LPOMNICREATEFUNC.

LoadLibrary returns a valid handle, but the m_hlpfnSD_Create variable is set to NULL after the call to GetProcAddress...

-Mike Zinni
email: mzinni@rimail.com
AIM: zin9999
GeneralRe: dllimport vs dllexport Pin
Mike Zinni16-Jul-02 5:02
Mike Zinni16-Jul-02 5:02 
GeneralRe: dllimport vs dllexport Pin
Mike Nordell16-Jul-02 5:24
Mike Nordell16-Jul-02 5:24 
GeneralRe: dllimport vs dllexport Pin
Daniel Lohmann17-Jul-02 14:23
Daniel Lohmann17-Jul-02 14:23 
QuestionSTL iterators? Pin
Fredrik Skog16-Jul-02 4:00
Fredrik Skog16-Jul-02 4:00 
AnswerRe: STL iterators? Pin
Alexandru Savescu16-Jul-02 4:08
Alexandru Savescu16-Jul-02 4:08 
GeneralRe: STL iterators? Pin
Fredrik Skog16-Jul-02 4:12
Fredrik Skog16-Jul-02 4:12 
GeneralRe: STL iterators? Pin
Alexandru Savescu16-Jul-02 4:22
Alexandru Savescu16-Jul-02 4:22 
GeneralRe: STL iterators? Pin
Fredrik Skog16-Jul-02 4:30
Fredrik Skog16-Jul-02 4:30 
GeneralRe: STL iterators? Pin
Alexandru Savescu16-Jul-02 4:35
Alexandru Savescu16-Jul-02 4:35 
GeneralRe: STL iterators? Pin
Fredrik Skog16-Jul-02 4:42
Fredrik Skog16-Jul-02 4:42 
AnswerNow I got it!!! Pin
Alexandru Savescu16-Jul-02 4:43
Alexandru Savescu16-Jul-02 4:43 
GeneralRe: Now I got it!!! Pin
Fredrik Skog16-Jul-02 4:48
Fredrik Skog16-Jul-02 4:48 
GeneralCFile access Pin
Raphael Kindt16-Jul-02 3:28
Raphael Kindt16-Jul-02 3:28 
GeneralRe: CFile access Pin
Fredrik Skog16-Jul-02 3:47
Fredrik Skog16-Jul-02 3:47 
GeneralRe: CFile access Pin
Raphael Kindt16-Jul-02 4:23
Raphael Kindt16-Jul-02 4:23 

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.