|
Thanks for your reply,
But I have to create OCX of my Dialog so, I want to create DialogBOx without Resource. Any how I got answer and will post this artical on codeproject as soon as possible. But the real problem is even I am able to create DialogBox Dynamically. I am not able to attach the controls to it dynamically. Once I get this answer I will post it as soon as possible.
Thanks,
Salman
Live and Let live
|
|
|
|
|
I have a web control inside a modeless dialog in view/doc application. The dialog is implemented as a child of the mainframe. The problem is, when something changes in the web control (navigate2() is called), the dialog steals the focus from the mainframe and view.
Is there any way to prevent this, or restore focus back to the previous window who had it?
Have no fear of perfection - You will never reach it
|
|
|
|
|
how do i get the path from where the application was executed ??
i am using MFC.
Thanx.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Use the GetModuleFileName() API.
CString strDirectoryPath;
TCHAR zName[MAX_PATH];
TCHAR* zLast;
::GetModuleFileName(0,zName,sizeof(zName));
zLast=_tcsrchr( zName, (TCHAR)'\\');
if (zLast)
*(zLast+1) = (TCHAR)'\0';
strDirectoryPath = zName;
ASSERT( !strDirectoryPath.IsEmpty() );
return strDirectoryPath;
I Dream of Absolute Zero
|
|
|
|
|
Thanx i guess this piece of code is little better.
CString strAppPath;
::GetModuleFileName(NULL,strAppPath.GetBuffer(MAX_PATH),MAX_PATH);
strAppPath.ReleaseBuffer();
strAppPath = strAppPath.Left(strAppPath.ReverseFind('\\'));
AfxMessageBox(strAppPath);
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
you can also check the GetCurrentDirectory() in the Platform SDK out:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getcurrentdirectory.asp
bye,eugi
www.eugigames.tk
|
|
|
|
|
Current directory is not what i want, i wanted the location of the exe file.
suppose the exe file is in c:\windows
and if you execute the program from c:\temp then c:\temp is ur current directory and c:\windows is the source directory
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
How to create zoom function for pictures in visual c++?
|
|
|
|
|
stretchblt can be used to resize pictures!
Don't try it, just do it!
|
|
|
|
|
hi...i am developing a voice recognition system that used Ms Speech SDK 5.1. i have applied both command and dictation features in my system. i have a problem on switching from dictation mode to command mode. anybody have any ideas?
|
|
|
|
|
lol, that is a very funny descriptions, but if u dont give details nobody will know what to answer to your question
Don't try it, just do it!
|
|
|
|
|
Sorry about that simple explanation..actually, i am developing a voice command application using MS Speech SDK in VC++ language. The application is almost done but the problem is, i don't know how to switch from dictation mode to command mode..i have successfully switched from command to dictation mode but still unsuccess in switching the both modes once again...hope that someone will help me to solve this..
|
|
|
|
|
Hi,
i would try to take the way of the voice recognise applications
so, can i see your proj. code?
Please, help me...may be i'll help you...
10x's so much for your attention.
JD
|
|
|
|
|
Hi,
people does any one of you have any idea about DYNAMIC_DOWNCAST...plz help
|
|
|
|
|
satadru wrote:
does any one of you have any idea about DYNAMIC_DOWNCAST?
Yes:
Outdated. Homegrown. Microsoft proprietary. Replaced by Standard-C++ dynamic_cast .
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Could u tell anything about making matrix or non-matrix characters
vectorizable???
Thank u, any way!!!
Hello World!
|
|
|
|
|
Is there any way to set long type for sping box max and min value.
Right now I am using the spinbox. when i set spin box 10000000 for
max value and 1 for min value as i click up arrow, the value in edit bx
come down and vice versa for down arrow. I have to find a way to set
larger range for this spinbox
any help is appreciated
Shin
|
|
|
|
|
you can use the function SetRange32 to increase the range of your spin control.
kindly deselect "No thousands" check box in the spin control properties dialog.
CSpinButtonCtrl *pCtrl = (CSpinButtonCtrl *)GetDlgItem(IDC_SPIN);
pCtrl->SetRange32(lower limit,upper limit);
never say die
|
|
|
|
|
hi,
i have created the extension class ,but i am using this extension dll in an ocx control. though i export the whole class using AFX_EXT_CLASS and use it in my ocx, my ocx is not able to initialize in ActiveX test container. when i also export my functions ina .DEF file it initialize. I dont understant when it is already exported using AFX_EXT_CLASS why should i again export in a .DEF file.
implicit loading of the DLL has a problem, as extension
dll cannot be used in ocx as far as i know. so i have to
load it dynamically.
thanx for the help
Madhav
Desabhotlas
|
|
|
|
|
Hi guys,
I have a dialog with serveral CButtons. I notice I can go through (highlight) the button by pressing UP/DOWN/LEFT/RIGHT arrow key, however, it is not in the order I want. I am wondering if there is a quick way to change the "browse order" without manually doing it using WM_KEYDOWN. Has it got something to do with Resource.h ?
Also, in the dialog based application, Does hitting the Return(Enter) key always call the OnOK()? In my app (where there are child dialogs), sometimes it calls OnOK() of the parent dialog but sometimes it would launch OnBnClicked() of default button on the parent window. Is there a way I can insure to alawys call the OnOK()?
Please help,
Thanks alot.
|
|
|
|
|
you can choose tab order from the layou menu, to order the flow of control.
the button which you wish to get pressed on pressing enter key, set the button as default in its properties.
never say die
|
|
|
|
|
Hi,
I wrote a C++ program using Standard template library in linux 9.0.I used the same program in VC++.But it is giving errors.What should I do the get rid of these errors.
Karteek
|
|
|
|
|
karteek wrote:
But it is giving errors.What should I do the get rid of these errors.
First, tell us what they are.
Second, tell us what version (VC6, VC7, VC2003) you are using.
Then we might be able to help you. In this forum, there is a lot of knowledge assembled.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hi,
It is giving a lot of errors and warnings. It is giving errors in functional header. I am using VC6
Karteek
|
|
|
|
|
karteek wrote:
It is giving errors in functional header
In <functional>? Probably not.
This might be where the compiler gives up, but the error is in your code. DoO you have an example of your code that gives an error?
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|