|
Hi ,
I am creating a RegularDll having ActiveX control, this is a formbox control . i am using this control in dialog but this control object is not returning the value it is every time going to the inilization state . i am using RegularDll because this dll is going to work with JAVA , please give some suggestion or link .
Thanks in Advance.
|
|
|
|
|
Can you be more specific? You've given us absolutely nothing in the way of details!
Steve
|
|
|
|
|
Hi,
Thanks for Response.
Actually i am writing a regualar dll that is having ActiveX control, that control opens a Editor after closing that Editor data comes back to control, it is working fine in the exe.
But when i do the same thing in a Regular Dll it is not returning any data.
i have done all basic initialization for using ActiveX control in Regular Dll. The code is here under.
BOOL CJavaDllApp::InitInstance()
{
AfxEnableControlContainer( );
CoInitialize(NULL);
return CWinApp::InitInstance();
}
this is code for JNIDLL ----
JNIEXPORT jstring JNICALL Java_testClass_OpenEditor(JNIEnv *env , jobject obj)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
jstring temp;
EXTCLASS obj1;
obj1.OpenEditor();
return temp;
}
//*******************************
// i tried the same thing in MFC Extension dll also but it is crashing in JAVA application, throwing the exception it is not getting resource handle. so i switched to regualar dll where it opening the editor but not returning any data.
//*******************************
the problem is this code opening editor when i am clicking on the ActiveX control but not returing data. Can you please suggest us where I am wrong.
Thanks.
|
|
|
|
|
Hi all,
I am working on a project in which I am using MSFlexGrid.
I want to disable any specific column according to the context.
Is there any function for it.
Thanks in advance.
Regards,
Sunil Kumar
|
|
|
|
|
Have you tried SetFixedCols ?
Regards,
Paresh.
|
|
|
|
|
Hi with this SetFixedCols, if I give a column no 3 then all columns from 0 to 3 are fixed.
I want to disable only 3rd column.
Is there any way to do it!
Regards,
Sunil Kumar
|
|
|
|
|
Curretnly I do not have any idea. I have to look at it.
Regards,
Paresh.
|
|
|
|
|
Hi,
ExtractIcon() method extract the icon using Index value, but I am creating tree using FindFirst and FindNext then how can I get the icon....
using name or anything else...
|
|
|
|
|
Do you wan to get icon for that files?
|
|
|
|
|
I mean to say I am picking name of folder then how can I get the corresponding folder icon like My Documents,Desktop etc...
|
|
|
|
|
|
I think you got your answer.
|
|
|
|
|
How can I retrieve the domain name of a computer programatically.
In XP systems, the domain could be seen when
your right click 'My Computer' -> Computer Name (tab) -> Domain (Field)
Enumerating all the domains available would be even better/helpful.
Thanks in Advance
|
|
|
|
|
I hope GetComputerNameEx() would help you.
- Malli...!
|
|
|
|
|
I have created a mfc application with vs2008 Pro. I have included a dockable pane ( all standard from the wizard). I created a dialog and would now like to write to the dockable pane from the dialog.
When I try to access it I get "cannot access protected member" is it possible to write to these windows from a dialog ? and if so does anyone know how.
I have tried so many things the one I am trying to write to is
"COutputList m_wndOutputBuild" created in the standard OutputWnd.h file created by the wizard.
|
|
|
|
|
georgeo wrote: When I try to access it I get "cannot access protected member" is it possible to write to these windows from a dialog ? and if so does anyone know how.
You can provide an accessor function to get to that object and then call appropriate methods on it to write to output pane. Should be simple enough.
For e.g. a method like
GetOutputPane().Write( "Hello testing output pane" );
Hope I understood your question!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
When I install vs2005 in vc++ directory setting I found
$(VCInstallDir)PlatformSDK\bin
$(VSInstallDir)Common7\Tools\bin
but in environment variable i could not found value of
$(VCInstallDir) and $(VSInstallDir) .
so where i found them I want to change them
Trioum
|
|
|
|
|
trioum wrote: so where i found them I want to change them
Why would you like to change them ? That's crazy. If you would do so, a lot of stuff wouldn't work anymore. Keep in mind that if you change those environment variables, it doesn't change the physical location of the install directory. So, all your header files and libraries won't be located anymore.
Why would you like to do such a thing ? What is the problem ?
|
|
|
|
|
actually I want to know where these variables store .I didnt find in
environmental variables list. Also I want to set my own. can u guide me , how to achieve this.
Trioum
|
|
|
|
|
Hai,
i am having a doubt..
When to use pointers and references..?
Please tell me the scenarios...
Thanks,
Mani..
Born to win...!
|
|
|
|
|
This[^] should give you some idea.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Please refer here[^].
Regards,
Paresh.
|
|
|
|
|
|
I think both servers the same purpose. But, usually References are preferred over pointers as the reference can not be a NULL as like pointers. In some scenario pointers are the only solutions. Like the function which returns the object or NULL (specifying failure).
But pointer isn't alternate solution for reference. Because you must have to make use of references while overloading an operator or providing an explicit copy constructor.
- Malli...!
|
|
|
|
|