|
Hai Arman,
My requirment is that I want to create an "ONSCREEN KEYBOARD" application .It should work excatlly like the physical keyboard.For example suppose if we run the "ONSCREEN KEYBOARD" application , now change the focus to an already opened window say notepad the "ONSCREEN KEYBOARD" dialog should not be minimized.It should show as it is inactive but at the same time if the cursor now focused on notepad and again the user clicks soame keys with the mouse on the "ONSCREEN KEYBOARD" application ,the keys pressed (be a,then a should be displayed inside the notepad)should be displayed in the note pad.This is my intention.
Regards
Robs here
|
|
|
|
|
robshere wrote: For example suppose if we run the "ONSCREEN KEYBOARD" application , now change the focus to an already opened window say notepad the "ONSCREEN KEYBOARD" dialog should not be minimized.It should show as it is inactive but at the same time if the cursor now focused on notepad and again the user clicks soame keys with the mouse on the "ONSCREEN KEYBOARD" application ,the keys pressed (be a,then a should be displayed inside the notepad)should be displayed in the note pad.This is my intention.
And what makes you think a modeless dialog is required for this? A dialog's mode (i.e., modal, modeless) governs how the dialog behaves in relation to its parent window, not windows of other processes.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hai DavidCrow,
Sorry,my logic was wrong.I got it right now.I want to set the focus from the current application to other application.This is how I'm working on.Thanks for your valuable information and your precious time.I really apprictiate ur kindness for answering me.Any how it gave me very valid informations.
Regards
Robs here
|
|
|
|
|
robshere wrote: I got it right now.
Glad you got it going.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Can you suggest me if we can convert existing ActiveX DLL( created in Visual Studio 6.0) to ActiveX EXE?
Thanks in Advence.
Thanks,
Anand.
|
|
|
|
|
Once again, your question doesn't make any sense: an ActiveX exe doesn't exist. You just have a plain executable. Of course, you can use an activeX inside an executable.
You could still restart a new project and copy paste some code or classes but that's not very efficient.
Also, as I already asked, more information would be usefull: what does this activeX do ? What are you trying to achieve exactly.
|
|
|
|
|
Hi,
Actually I am having DLL with ActiveX interface exposed in it, which I am invoking through script. Previousle it was getting included in IEXPLORE memory space, but now I want it as a stand alone application which will run in its seperate Memory space but still want to invoke through scrpit.
Hope this makes sense now.
Thanks,
Anand.
|
|
|
|
|
And why don't you simply create a simple application that just wraps the ActiveX ? You just add the control to your application and write some code to handle it.
|
|
|
|
|
Yea .. I was thought of that, but i dont want to change the ProgID in script so the same ActiveX interface want to call from script, but that interface should run separately in separate Memory space ... i think to convert DLL to Executable is the better option, so i just wanted to know wheather we can convert DSP file so that it will get compiled into EXE.
Anand.
|
|
|
|
|
Anand Todkar wrote: but i dont want to change the ProgID in script so the same ActiveX interface want to call from script, but that interface should run separately in separate Memory space
Could you clarify that because I am completely lost...
Anand Todkar wrote: i think to convert DLL to Executable is the better option
I don't think it is a good idea (but I don't really see what you are doing neither). Because trying to convert two things that are unrelated doesn't make any sense to me. It is a little bit like if you were asking how to convert the engine of your car into a car . An activeX is a component of your application like the engine is a component of your car (I know that is a poor analogy but it shows you the logic).
Anand Todkar wrote: so i just wanted to know wheather we can convert DSP file so that it will get compiled into EXE.
If you really want to do that, you'll need to restart a new project, copy the file that you want to reuse, and probably modify quite a lot of things in order to make it work.
EDIT: sorry, the blockquotes were not at the right place
|
|
|
|
|
Thanks Moonen,
I have got the idea about the problwm now, thanks for your valuable words and prime attention.
Anand.
|
|
|
|
|
how do i use the shell command to reach a particular location. say c:\ program files. how can i do that in the code?
Chandru
|
|
|
|
|
What do you mean? Can you explain in greater detail, please?
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
a very simple command where in i can open a folder using shell command. or is there any other function that i can use.
|
|
|
|
|
Oh.. If you mean open a folder in an explorer window, use ShellExecute() as follows:
ShellExecute(hWnd, "explore", "C://Program Files/", NULL, NULL, SW_SHOWNORMAL);
Look at the documentation on MSDN.
Hope this helps!
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
hey thanks a lot..
cheers
Chandru
|
|
|
|
|
Are you looking for SHGetFolderPath(hWnd, CSIDL_PROGRAM_FILES, ...) ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I´m trying to make an application that uses a mySql database and a CTreeCtrl to display the element from the database. While I have managed to extract the information from the database using CDBVariant I have a problem while trying to insert the value into the tree.
From some reason the text that I´m extracting from the database is put in the CDBVariant.m_pstringA which is a pointer to a CStringA. The problem is that I can´t convert the CStringA variable into a LPCTSTR which is required by the CTreeCtrl::InsertItem(). Any ideas on how to do that?
Thanks.
<br />
CDBVariant varValue;<br />
short nFields = camere->GetODBCFieldCount();<br />
while(!camere->IsEOF())<br />
{<br />
for (short index = 1; index < nFields; index++)<br />
{<br />
camere->GetFieldValue(index,varValue);<br />
if (varValue.m_dwType == 10)<br />
{<br />
CStringA cam;<br />
cam.Append(varValue.m_pstringA->GetBuffer());<br />
}<br />
}<br />
camere->MoveNext();<br />
}<br />
|
|
|
|
|
call GetBuffer() on the CString
|
|
|
|
|
Josh Gray wrote: call GetBuffer() on the CString
There was no requirement to modify the CString internal buffer.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Unless you're doing a UNICODE build, you can do:
m_tree.InsertItem(*(varValue.m_pstringA),0, 0, hCamere, NULL);
since CString implements the (LPCTSTR) cast operator.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Also, try to avoid using CStringA or CStringW directly. Prefer to use CString instead: it is a macro that will convert to CStringW if unicode is defined or to CStringA otherwise.
If you have to work with CStringA or CStringW directly, then I think you have a design problem (mixing unicode and non-unicode in a wrong way).
|
|
|
|
|
I´ve already tried the GetBuffer() method but it didn´t work. Fortunatelly the solution of CPallini worked once I´ve changed the Character Set to "No Set".
Well, I was using CStringA only because it didn´t allowed me to put the value in a CString.
Thanks.
|
|
|
|
|
marius.ichim wrote: Well, I was using CStringA only because it didn´t allowed me to put the value in a CString
Then it's because you probably did something wrong with unicode settings. Maybe you should read this article.[^]
|
|
|
|
|
Hello All,
I have made a sdi application with a splitter control inside it. i have class derived from CFormView for right view. Now my problem is i have made a ui thread and i m sending a CString and a int message from that ui thread using SendMessage to my right view class. one time it works fine but when i regularly stop and start the thread it gives DEBUG ASSERTION FAILED ERROR in wincore.cpp and the position it shows is send message one.
Can anybody solve my problem please
thanks in advance
|
|
|
|