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

C / C++ / MFC

 
GeneralRe: How to extract Exported functions from a DLL Pin
poda12-Feb-08 21:30
poda12-Feb-08 21:30 
GeneralRe: How to extract Exported functions from a DLL Pin
poda12-Feb-08 21:49
poda12-Feb-08 21:49 
GeneralRe: How to extract Exported functions from a DLL Pin
Stephen Hewitt13-Feb-08 0:30
Stephen Hewitt13-Feb-08 0:30 
GeneralInterface default constructor Error Pin
half-life12-Feb-08 20:08
half-life12-Feb-08 20:08 
GeneralRe: Interface default constructor Error Pin
Cedric Moonen12-Feb-08 20:21
Cedric Moonen12-Feb-08 20:21 
GeneralRe: Interface default constructor Error Pin
half-life12-Feb-08 20:39
half-life12-Feb-08 20:39 
GeneralRe: Interface default constructor Error Pin
jhwurmbach13-Feb-08 0:52
jhwurmbach13-Feb-08 0:52 
GeneralDebug Assertion Error Occurs while making the Static Linked Dll Pin
nitin_pro12-Feb-08 20:03
nitin_pro12-Feb-08 20:03 
Hello Gurus

I have an application in VC++ in which i'll show the rtf file in Rich EDit Ctrl , i completely success to show the file , but the problem is when i make a DLL of that exe application there is an exception in the Dll

i had make a DLL (Regular MFC static Linked Dll) in which i'll pass the
HInstance ,and path of the file
like this

extern __declspec(dllexport)bool RTFDisplay::ShowFilePreview(HINSTANCE ist,TCHAR *csFilePath ,void *FileInfo, BYTE bFileType ,TCHAR *csImagePath)
{
CRTFViewerApp *pApp = (CRTFViewerApp*)AfxGetApp() ;

dll_inst=ist;
HINSTANCE cur=GetDllInstanceHandle();
AfxSetResourceHandle( cur );

if(bFileType == RTF_FILE )
{
CRichPreviewDlg Ob ;

Ob.m_csFilePath = csFilePath ;
Ob.m_FileInfo = (tagFileInfo*)FileInfo ;
Ob.m_csImagePath = csImagePath ;

Ob.DoModal();
}

AfxSetResourceHandle( dll_inst);

return pApp->m_bRetVal;
}
When i run this DLL there is an exception Debug Assertion Fail , when i get into the code then i found "HINSTANCE cur of GetDllInstanceHandle();" has NULL value.and after this error promt

I had make so many DLL earlier with "textctrl" , "listctrl" but i can't face such type of problem

Kindly Look into the matter
Thanks

QuestionRelease Mode not running Pin
vethathiri12-Feb-08 19:57
vethathiri12-Feb-08 19:57 
GeneralRe: Release Mode not running Pin
Rajesh R Subramanian12-Feb-08 20:22
professionalRajesh R Subramanian12-Feb-08 20:22 
GeneralRe: Release Mode not running Pin
Iain Clarke, Warrior Programmer13-Feb-08 0:14
Iain Clarke, Warrior Programmer13-Feb-08 0:14 
QuestionRe: Release Mode not running Pin
David Crow13-Feb-08 3:25
David Crow13-Feb-08 3:25 
Generalwhile debugging not able see the source code [modified] Pin
VC_RYK12-Feb-08 19:55
VC_RYK12-Feb-08 19:55 
GeneralRe: while debugging not able see the source code Pin
Cedric Moonen12-Feb-08 20:24
Cedric Moonen12-Feb-08 20:24 
QuestionHow to create 3D vector? Pin
TooShy2Talk12-Feb-08 19:52
TooShy2Talk12-Feb-08 19:52 
GeneralRe: How to create 3D vector? Pin
BadKarma12-Feb-08 20:50
BadKarma12-Feb-08 20:50 
Generalhide and unhide panes created by CSplitterWnd class Pin
preeti sharma12-Feb-08 19:17
preeti sharma12-Feb-08 19:17 
GeneralRe: hide and unhide panes created by CSplitterWnd class Pin
Iain Clarke, Warrior Programmer13-Feb-08 4:05
Iain Clarke, Warrior Programmer13-Feb-08 4:05 
GeneralGet a string from char pointer Pin
CodingLover12-Feb-08 19:10
CodingLover12-Feb-08 19:10 
GeneralRe: Get a string from char pointer Pin
ShilpiP12-Feb-08 19:42
ShilpiP12-Feb-08 19:42 
GeneralRe: Get a string from char pointer Pin
CodingLover12-Feb-08 19:47
CodingLover12-Feb-08 19:47 
GeneralRe: Get a string from char pointer Pin
ShilpiP12-Feb-08 20:09
ShilpiP12-Feb-08 20:09 
GeneralRe: Get a string from char pointer Pin
CodingLover12-Feb-08 20:44
CodingLover12-Feb-08 20:44 
GeneralRe: Get a string from char pointer Pin
flip12-Feb-08 19:42
flip12-Feb-08 19:42 
GeneralRe: Get a string from char pointer Pin
CodingLover12-Feb-08 19:56
CodingLover12-Feb-08 19:56 

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.