Click here to Skip to main content
15,901,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I convert to TIFF file format? Pin
earl12-Jul-06 12:42
earl12-Jul-06 12:42 
GeneralRe: How can I convert to TIFF file format? Pin
Cris13-Jul-06 1:45
Cris13-Jul-06 1:45 
GeneralRe: How can I convert to TIFF file format? Pin
earl13-Jul-06 5:12
earl13-Jul-06 5:12 
QuestionPlease,help me with jar-files in java Pin
beganovic_swe12-Jul-06 9:37
beganovic_swe12-Jul-06 9:37 
AnswerRe: Please,help me with jar-files in java Pin
Christian Graus12-Jul-06 9:43
protectorChristian Graus12-Jul-06 9:43 
GeneralRe: Please,help me with jar-files in java Pin
led mike12-Jul-06 9:49
led mike12-Jul-06 9:49 
GeneralRe: Please,help me with jar-files in java Pin
beganovic_swe12-Jul-06 22:33
beganovic_swe12-Jul-06 22:33 
QuestionCrash in MFC extension DLL [modified] Pin
act_x12-Jul-06 8:23
act_x12-Jul-06 8:23 
i am using some JNI code and talking to a MFC extension DLL

I am using Visual Studio 6 . I get a crash when i try to create a window in one of the exposed functions . The crash seems to be in afxwin1.inl line 19 after the call to CreateEx

CHiddenWindow hiddenWnd ; <br />
<br />
extern "C" int APIENTRY<br />
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)<br />
{<br />
	// Remove this if you use lpReserved<br />
	UNREFERENCED_PARAMETER(lpReserved);<br />
<br />
	if (dwReason == DLL_PROCESS_ATTACH)<br />
	{<br />
		TRACE0("DLLWRAPPER.DLL Initializing!\n");<br />
		<br />
		// Extension DLL one-time initialization<br />
		if (!AfxInitExtensionModule(DllWrapperDLL, hInstance))<br />
			return 0;<br />
<br />
		// Insert this DLL into the resource chain<br />
		// NOTE: If this Extension DLL is being implicitly linked to by<br />
		//  an MFC Regular DLL (such as an ActiveX Control)<br />
		//  instead of an MFC application, then you will want to<br />
		//  remove this line from DllMain and put it in a separate<br />
		//  function exported from this Extension DLL.  The Regular DLL<br />
		//  that uses this Extension DLL should then explicitly call that<br />
		//  function to initialize this Extension DLL.  Otherwise,<br />
		//  the CDynLinkLibrary object will not be attached to the<br />
		//  Regular DLL's resource chain, and serious problems will<br />
		//  result.<br />
		new CDynLinkLibrary(DllWrapperDLL);<br />
		<br />
	}<br />
	else if (dwReason == DLL_PROCESS_DETACH)<br />
	{<br />
		TRACE0("DLLWRAPPER.DLL Terminating!\n");<br />
		// Terminate the library before destructors are called<br />
		AfxTermExtensionModule(DllWrapperDLL);<br />
	}<br />
<br />
<br />
	<br />
	<br />
	<br />
	return 1;   // ok<br />
}<br />
<br />
JNIEXPORT jint JNICALL Java_Blah1<br />
  (JNIEnv *pEnv, jclass)<br />
{<br />
..<br />
hiddenWnd.CreateEx(0 ,::AfxRegisterWndClass( NULL)  , NULL , WS_OVERLAPPED , CRect(10,10,10,10),NULL , 0);<br />
..<br />
<br />
} 

Any ideas on this ?


Engineering is the effort !


-- modified at 14:23 Wednesday 12th July, 2006
AnswerRe: Crash in MFC extension DLL Pin
led mike12-Jul-06 9:14
led mike12-Jul-06 9:14 
QuestionInvoke Self-Registration of an ActiveX Pin
Christopher Stratmann12-Jul-06 8:11
Christopher Stratmann12-Jul-06 8:11 
QuestionRe: Invoke Self-Registration of an ActiveX Pin
David Crow12-Jul-06 9:05
David Crow12-Jul-06 9:05 
GeneralRe: Invoke Self-Registration of an ActiveX Pin
Christopher Stratmann12-Jul-06 9:55
Christopher Stratmann12-Jul-06 9:55 
AnswerRe: Invoke Self-Registration of an ActiveX Pin
Eric Dahlvang12-Jul-06 11:34
Eric Dahlvang12-Jul-06 11:34 
QuestionChecking if a window is minimized Pin
slippnslide12-Jul-06 7:35
slippnslide12-Jul-06 7:35 
AnswerRe: Checking if a window is minimized Pin
David Crow12-Jul-06 7:38
David Crow12-Jul-06 7:38 
GeneralRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 8:50
slippnslide12-Jul-06 8:50 
GeneralRe: Checking if a window is minimized Pin
David Crow12-Jul-06 9:00
David Crow12-Jul-06 9:00 
GeneralRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 9:10
slippnslide12-Jul-06 9:10 
QuestionRe: Checking if a window is minimized Pin
David Crow12-Jul-06 10:01
David Crow12-Jul-06 10:01 
AnswerRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 10:05
slippnslide12-Jul-06 10:05 
GeneralRe: Checking if a window is minimized Pin
David Crow12-Jul-06 10:29
David Crow12-Jul-06 10:29 
GeneralRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 11:16
slippnslide12-Jul-06 11:16 
GeneralRe: Checking if a window is minimized Pin
David Crow13-Jul-06 2:31
David Crow13-Jul-06 2:31 
QuestionCLSID..error [modified] urgent pls Pin
RockyJames12-Jul-06 7:26
RockyJames12-Jul-06 7:26 
AnswerRe: CLSID..error [modified] urgent pls Pin
David Crow12-Jul-06 7:37
David Crow12-Jul-06 7:37 

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.