|
Yeap you are right. I found the problem. I added MS ListView version 6.0 activeX control and did not add any related lib. So I removed that control and added another version of listView now it is working.
Thank you very much for your replies.
Now I need to solve other problems... Learning Visual C++ seems like never ends
|
|
|
|
|
dehseth wrote: Learning Visual C++ seems like never ends
I suggest to buy a good book. You will see that it is far more efficient to do so rather than trying to work everything by yourself. It will save you hours of frustration.
|
|
|
|
|
Hi All
I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open.
Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option...
Plz help me
|
|
|
|
|
Use modal dialogs, from your query it appears that you are using modeless dialogs. Also you can use a flag variable to check if some other dialog is open. if that flag is true don't call the close for dialog A
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
you have to create B telling it that A is its parent (pointer parameter to the constructor) and open it using DoModal()
|
|
|
|
|
make one member variable that store the pointer of cerated dialog B
which is initialy NULL and create the dialog when its null if its not null than dont go for create it put same check in OnClose
|
|
|
|
|
I want to install files programatically that are installed by the word (or any office component) when we clck on toll speech menu it ask for install
files or not if we click yes it will install some file which i dont know
CAn i do it programatically.
|
|
|
|
|
Installer is basically an executable and you can certainly call it from your program by using any of these APIs like ShellExecute/winExec.
Regards,
Rane
|
|
|
|
|
i knnow its done by msiexec but what to call
from command prompt to install remaining speech recognization files.
|
|
|
|
|
microsoft should have a speechredist executable for you to use.
|
|
|
|
|
Hi All
Can i add two exe?Both exe of VC++2005.One is Dailog base and other is MDI. Can i add it?If yes then how?Plz help me
singh
|
|
|
|
|
What do you mean by adding two exe ?
You mean use the second one in the first one ? Spawning it a new process is not enough ?
|
|
|
|
|
Ok
So there is any new options?
singh
|
|
|
|
|
you can't simply add two exe's or I am not getting what do you mean by adding? If you want to use the functionality from one exe in another one, you can include the relevant code/header/source files and then proceed.
polopo wrote: So there is any new options?
AFAIK, it wasn't there earlier.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
can you give me more details..Plz how can i do that..
First code is in Dialog based and second one is MDI..
Plz help me
singh
|
|
|
|
|
I guess you want to display your dialog from within your MDI app ? Can't you simply start it as a new program ? Or do you really need it to be integrated in your app ?
If that's the case, then as the previous poster said, you will have to include the source files from your second app into your first app and add some code to create and use the dialog.
|
|
|
|
|
ok i try to do that.
Thx's for help
singh
|
|
|
|
|
Still your question is not clear . Do you mean you need to call MDI appln from the Dialog based application?
Regards,
Rane
|
|
|
|
|
yes you are 100% right..So can you give me small example
singh
|
|
|
|
|
You may use the API WinExec in your Dialog based application code. Say if you want to call the MDI application on the click of a button in your dialog based appln, then add it to the OnButtonClick() method the below piece of code.
WinExec("c:\\Polopo_MDI.exe",SW_SHOWNORMAL);
Regards,
Rane
modified on Wednesday, September 3, 2008 3:43 AM
|
|
|
|
|
Rane wrote: You may use the API WinExec
This function is provided only for compatibility with 16-bit Windows. New applications should use the CreateProcess function or ShellExecute.
|
|
|
|
|
|
how visual c++ project can be converted into executable form after some installation in any other system where even visual studio is not installed .
i hv used Inno Setup Compiler for this.....
but is there anyother software or method...?
|
|
|
|
|
shaina2231 wrote: i hv used Inno Setup Compiler for this.....
What is the problem with InnoSetup ?
|
|
|
|
|
using inno setup during conversion of visualc++ project into window installer set up ,it provides the option to add necessary files or folder to project. i want to add different foloders(database,songs etc that contain files for my program) but it extracts files (all files from added folder) to current directory of installed program not folders but i need folders ..
|
|
|
|