|
I don't know how to change string table.
My idea was instead of doing this, you can override GetMessageString and return another string ID2 when asked for string ID1
Hope this helps,
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
RockyJames wrote: Is there any function to set a new String.
UpdateResource Function
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have 5 dsw files(DLL) loaded into a single project.
i have placed breakpoints in DLL A,B and C.The flow of control is from Dll A to
Dll B and then to Dll C.
on F5 the flow is as expected i.e debugger stops at A and then moves to B.
If i remove the breakpoint from DLL A and then try to debug, the control doesn't go to dll B.
I am not able to debug the code in Dll B.
Any idea whats wrong?
|
|
|
|
|
I think it is because VS recognizes breakpoints in the active project only, but I am not sure. You could hard-code breakpoints in the code also, like AfxDebugBreak(); or __asm int 3;
this is this.
|
|
|
|
|
i have made it as the active project but still it doesnt work
|
|
|
|
|
Hi Friends
I want to make a small IVR(Interactive Voice Response) system. Which shold be able to do certain work when user presses certain numbers from his phone.
I want to make it using C++/VC++. Is there any example availabe or any link or any book which can help ?
Waiting for your positive and quick reply
Thankx
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
|
Hi
i am using IShellExecuteHook to keep track of the file open operations. If I start notepad from start-->run i am getting the file name as notepad.exe . But If i have made a mistake in typing the name of the process windows will display a messagebox. but i am getting the filename
E.g:
in start->run dialog if i type notepd.exe instaead of notepad.exe i am getting the file name as notepd.exe . I dont want this to happen. Is there anyway by which the resule of the oepration can be obtained .
Thanks in advance.
|
|
|
|
|
I think the hook procedure is run before the command is executed, so you can decide if you want to go through with the operation. You will not get any result, because the operation is yet to be carried out.
As for obtaining the result of the operation, I think you will need to hook some function like CreateProcess() etc, maybe.
this is this.
|
|
|
|
|
hi
I am using IShellExecute hook to keep track of the file open operations. If i type notepad in start->run dialog then i am getting the file name as notepad. In MSDN it is inidcated that the ShellexecuteInfo structure gives a handle to appplication in which the file is opened. Is there any way by which the application name can be obtained.
Thanks.
|
|
|
|
|
hello,
Does any one know how to write some data(characters) on specified sector of cd-RW and read the data(characters) from the specified sector using vc++ or any.
please send sample program for reading datas from cd-sector .
please,answer me. thanks,
Hemachandran munuswamy
-- modified at 6:00 Friday 16th December, 2005
|
|
|
|
|
|
Hi, all
I simulate a searies of mouse message to manpulate my application. For example I simulate opening a special file through finding special windows and then sending message. My question is that how can I terminate all keyboard messages when my operation is going on.
Now I can interception all keyboard messages through SetWindowsHookEx function.But how can I terminate the intercepted messages?
thanks in advance.
will
-- modified at 21:14 Thursday 15th December, 2005
|
|
|
|
|
Hello,
Does anyone know how to have the character limit on the editbox of a comboboxex control removed or set very big ?
Thanks
David
|
|
|
|
|
Use CComboBox::LimitText() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I guess you need to make your combo box hold text more than its width. You can do this by setting CBS_AUTOHSCROLL style of the combo box. You can do this by setting Auto property of combobox to true.
|
|
|
|
|
Sorry to say this but neither works
As a test I wrote the following to see the limits and set the good styles:
HWND hwndcombo = FindWindowEx( this->m_Hwnd, NULL, NULL, NULL );
SetWindowLong( hwndcombo, GWL_STYLE, GetWindowLong( hwndcombo, GWL_STYLE ) | CBS_AUTOHSCROLL );
int n = SendMessage( this->m_EditHwnd, EM_GETLIMITTEXT, 0, 0 );
char data[500];
wsprintf( data, "Limit : %d", n );
mIRCError( data );
SendMessage( hwndcombo, CB_LIMITTEXT, (WPARAM) 0, (LPARAM) 0 );
n = SendMessage( this->m_EditHwnd, EM_GETLIMITTEXT, 0, 0 );
wsprintf( data, "Limit : %d", n );
mIRCError( data );
Edit_LimitText( this->m_EditHwnd, 0 );
n = SendMessage( this->m_EditHwnd, EM_GETLIMITTEXT, 0, 0 );
wsprintf( data, "Limit : %d", n );
mIRCError( data );
The combo child of the comboboxex has its CBS_AUTOHSCROLL style, and the edit has its EM_AUTOHSCROLL style and the output of the above gives :
Limit : 30000
Limit : 30000
Limit : 2147483646
So the initial limit is already 30000 chars so it isn't the culprit.
I still hear the little ding sound when I get to the end of the editbox notifying I can't put more there even if the AutoHScroll style is there and the limit is way beyond the actual control limit.
|
|
|
|
|
ClickHeRe wrote: SetWindowLong( hwndcombo, GWL_STYLE, GetWindowLong( hwndcombo, GWL_STYLE ) | CBS_AUTOHSCROLL );
Why not set this style at design time? Many styles cannot be changed at run time.
ClickHeRe wrote: Edit_LimitText( this->m_EditHwnd, 0 );
Why are you sending a message to the edit control? You should be using CComboBox::LimitText() instead?
ClickHeRe wrote: I still hear the little ding sound when I get to the end of the editbox notifying I can't put more there even if the AutoHScroll style is there and the limit is way beyond the actual control limit.
The CB_LIMITTEXT message limits only the text the user can enter. It has no effect on any text already in the edit control when the message is sent, nor does it affect the length of the text copied to the edit control when a string in the list box is selected.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Good point, must I say that MSDN help sucks then
ComboBoxEx Control Styles
ComboBoxEx controls support only the following ComboBox styles:
CBS_SIMPLE
CBS_DROPDOWN
CBS_DROPDOWNLIST
WS_CHILD
No where does it say it supports in the CreateWindow() CBS_AUTOHSCROLL
Anyways, fixed, thanks
|
|
|
|
|
Hi every body
-I have a program using CAnimateCtrl and i get a little problem here:"When i stop the file .avi by using Stop() function then later i want to resum it but i can't".There are any way to solve it.Thank's
|
|
|
|
|
All right, I give up. There must be a trick to this.
Basically I have this gigantic workspace with projects that spits out little DLLs. Some of the basic DLLs are loaded by another DLL which is finally loaded by the executable file.
What happens when I put a breakpoint is that the Visual Studio spits out warning the breakpoint is disabled.
I already put in all the DLLs under the "additional DLL" under Debug tab in MS VC 6.0, and still no luck.
Any help is appreciated!!
Frank
|
|
|
|
|
|
Yes they are.
Thinking a little bit more about it, I dont know if this matters, but these DLLs are being copied to another directory instead of being used straight from their respective Debug directory. So instead being run from "MyProj\Debug\MyProj.dll" there is a post-build step to "copy MyProj\Debug\MyProj.dll c:\output\dlls". Thus the code loads the Dll like LoadLibrary("c:\output\dlls\MyProj.dll")
|
|
|
|
|
Hi-
What are the rules of MAPI programming when it comes to allocation and deallocation of memory?
Should I delete everything I allocate and everything they give me?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
I need to learn the basics of working with forms. Does anyone know of any C++ source code that can show me the simple stuff?
-- modified at 18:14 Thursday 15th December, 2005
|
|
|
|