|
What's your context?
The docs say that InvokeHelper is part of the COleDispatchDriver and CWnd classes, thus when you call InvokeHelper() you're really calling ::InvokeHelper() , which doesn't exist in the global namespace.
|
|
|
|
|
Hi!
I wonder!!!!!!,
In my application I have set Tab property true. It's not working. I have used IDD_DIALOGBAR.
I am using win32 in .NET Environment.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
what is the question ?
are you obliged to start a new thread each time you need to post something about that topic ? can't you just follow the same discussion ?
|
|
|
|
|
toxcct wrote: are you obliged to start a new thread each time you need to post something about that topic ? can't you just follow the same discussion ?
Sorry !
I will follow it.
The question is that I have used new dialog from the resource IDD_DIALOGBAR ,Now This window is set as my child window in my application.I have used some edittext box and set it's tabstop property true. But its not working .Is there any mistake I have made ? Please is their? then let me know so I can remove it
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
You are still very much unclear. Do you mean to say that the edit control never receives focus when you navigate through controls with the tab key?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
so then what should I do to navigate through controls with tab key?How can I set focus.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
I think I get your question now. Have you set the tab order in design time?
Layout menu->Tab Order
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Yes.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Is the edit control too included in the tab order list?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
In my Dialog I have 8 textbox all are in tab order.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
How you are invoking that dialog bat ? Just test by using ctrl + T in resource editor(that will invoke dialog bar). And then use tab.
I just made a simple(Hello world) win32 application using VS2005. And insert dialog bar as resource, added two edit boxes, with tab stop property set to true. And tested that using Ctrl + T . It works fine for me.
|
|
|
|
|
Wonder!!
Its happening with me only
prasad_som wrote: I just made a simple(Hello world) win32 application using VS2005
Can you please provide me your link ?
If possible , please Resource is very important.
I am working in vs2005 same but
One thing I want to ask you which one is you have used when you insert your dialog.
There are two option after right click.
1)Add resource
2)Insert Dialog
I had use first one then click on "+" sign and use first "IDD_DIALOGBAR".
I had stretch it make it propersize remove "TODO:layout dialog bar" put 8 edit box controls setting tab order 1 to 8 and set property true when run the application and hit Tab key the "Beep" come.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
How you are creating this dialog bar in application ?
Have you used ctrl + T to test it from resource editor only ?
|
|
|
|
|
ya when i use CTRL + T it workign but when in the running mode it gives the "beep" and no any cursor
movement in edit control.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
You have not answered other question. How you have created it?
|
|
|
|
|
as child window.
following way.
There is one callback navigatepro which contain static hyperlink and few child widnow one fo them is
hwndTagEditorDlg = CreateDialog(hInst,MAKEINTRESOURCE(IDD_TAGEDITOR),hWndStatic,(DLGPROC)agEditorProc);
it can open two ways
1) when user click on tageditor
2) when user click on listview's one file item it show below the listview control
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Now I understand your problem. And I dont have solutino to it.
But, I wonder , why you are using dialog bar , in first place ?
|
|
|
|
|
I missed my last train !!!
prasad_som wrote: But, I wonder , why you are using dialog bar , in first place ?
Then , What should I used ?
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Why you are using dialog bar, when same can be achieved using dialog box ?
|
|
|
|
|
but there is one problem of title bar and frame, becoz I am using menu nevigation for each window.
except the about dialog all are IDD_DIALOGBAR, and I have set the postion(x,y) of all dialogs.
if is there any suggestion? ever welcome.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
i am working an application that uses a file for some purpose. i am creating that file by using CreateFile() function. Now, i want to make sure that no other application uses that File till me application closes. i.e, i want no other application to access the file (not even for reading) as long as my application is running. how can i do this?
Regards,
Srinivas
|
|
|
|
|
Use dwShareMode as NULL while using CreateFile API.
|
|
|
|
|
No, it is not working for me. i don't know what mistake i am doing. here is the sample code of what i have written
<br />
<br />
hFile = CreateFile ( strFileName,GENERIC_WRITE ,NULL,NULL,CREATE_ALWAYS ,FILE_ATTRIBUTE_NORMAL,NULL);<br />
<br />
after creation of the file, i write the data to that file. now i dont want any other application to access that File till i close my application. how can i do this? thanks..
Regards,
Srinivas
|
|
|
|
|
vasu_sri wrote: No, it is not working for me.
How you are verifying this.
vasu_sri wrote: now i dont want any other application to access that File till i close my application.
Yes, by above code, no other application could access the file, till handle is closed.
vasu_sri wrote: how can i do this?
Its already shown.
|
|
|
|
|
In addition to what Prasad said:
if you're using MFC and CFile , you should use the CFile::shareExclusive flag when opening the file.
Read more here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|