Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I'm Working on MultiLang project[VS2010],which is having some dll's and one exe,the thing is that when i use the custom control in the dialog which is present in exe it works properly,but that same dialog will not get open in case of loading resource from dll and it shows some assertion.
But if i replace the custom control by edit box in the dialog which is there in dll then it shows the dialog,but the apperance is not good.
So please can anyone help to get out of this???????????
Posted
Updated 21-Feb-12 23:31pm
v3
Comments
Richard MacCutchan 21-Feb-12 8:09am    
If you are asking for a control similar to CGridCtrl, then I would suggest trying a Google search.
Mithun Kadam 21-Feb-12 23:12pm    
Actually i tried to draw grid on CEditCtrl but it's apperance is bad, i used 5 EditCtrl to draw 5 different grids and while scrolling on dialog at atime it shows only one grid at a time......Please tell me wht to do now?
Richard MacCutchan 22-Feb-12 3:13am    
I have no idea what you should do now. If you expect more information then please edit your question and add some more detail about what you are trying to achieve and what is or is not working. You may need to add parts of your code to clarify the detail.
Mithun Kadam 22-Feb-12 5:54am    
I'm Working on MultiLang project[VS2010],which is having some dll's and one exe,the thing is that when i use the custom control in the dialog which is present in exe it works properly,but that same dialog will not get open in case of loading resource from dll and it shows some assertion.
But if i replace the custom control by edit box in the dialog which is there in dll then it shows the dialog,but the apperance is not good.
Richard MacCutchan 22-Feb-12 9:01am    
Well it looks like something is wrong in your code, but from the above description it is impossible even to begin to guess anything more.

1 solution

After using AfxGetInstanceHandle() to load a language DLL for my application I
found the resource dialogs which contained the custom controls began to fail
from within CreateDialogIndirect.

When a window class is registered that class name is good for that application's
instance. After loading the language DLL the dialogs now reside within a separate
instance.

The solution I found was to add CS_GLOBALCLASS to the class registration.

wndcls.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900