|
You should also have added a '\r' to it like: "\r\n" .
this is this.
|
|
|
|
|
Assalamolaikum
Thank you very much. It works.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Try "\r\n" as line separator.
|
|
|
|
|
Thank you very much. It works.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
wrote:
multilinetextbox = multilinetextbox + "\n"+ texbox;
Use multilinetextbox = multilinetextbox + CString("\n"+texbox); which may reduce one extra call to CString constructer or + Operator
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
How can I trap all windows messages - not only the ones sent to my application but all messages in the system?
modified 9-Mar-17 17:21pm.
|
|
|
|
|
You will have to deal with the messages using Hooks.
It's a suggestion that hooks should only be used if necessary.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Daniel Kanev wrote: How can I trap all windows messages - not only the ones sent to my application but all messages in the system?
Check Here to get sample of message hooking.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hope this helps you:
click here[^]
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Daniel Kanev wrote: ow can I trap all windows messages - not only the ones sent to my application but all messages in the system?
try to set SystemWide hook with SetWindowsHookEx with WH_CBT as parameter
"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
Support CRY- Child Relief and You
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Dear developers,
I am a Visual C++ developer and facing heat & difficulties from VC++.Net. It has changed the whole structure. With the introduction of Classes in .Net, programming in Vc++.net is very different from Vc++ And I find it hard to migrate to VC++.Net. Moreover, There are hardly any newsgroups favoring VC++.Net. Tell me Is It an end to VC++ future? Will VC# be our next programming language?
To me .Net appears equal to Java with the class concepts.
Kindly explain a simple example like adding two integers in VC++.Net.
Gagan..
|
|
|
|
|
You can also use the existing C++ syntax for adding 2 integers.
As Anshuman's signature,
Somethings seem HARD to do, until we know how to do them.
Check MSDN for more info about C++/CLI
SaRath.
"Don't Do Different things... Do Things Differently..."
Understanding State Pattern in C++
|
|
|
|
|
in a console based application the code goes like this
int i=10;<br />
int j=20; <br />
int k=i+j;<br />
Console ::WriteLine (k.ToString());<br />
and yes as far as the answer to your second question is concerned let me make it clear with thousands of developers working on VC++ it's not going anywhere right now. It would take a long time to make applications without VC++ for half of the world
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 2:49 Tuesday 13th June, 2006
|
|
|
|
|
Thank you! but I am unaware of the programming pattern in VC++.Net or else is it the same as in VC++
//Taking simple interger addition function as an example
#include....
void main(void)
{
int i=10,j=20,k;
k=add(i,j);
Console::WriteLine (k.ToString());
}
int add(int a, int b)
{
return (a+b);
}
Please also tell me that to which header file does this ToString() function belong?
Thanks Once again
Gagan..
|
|
|
|
|
|
There are classes belonging to the System namespace.
Ex:
Int32 belongs to System namespace and ToString is the overriden function in that class.
The programming technique is a bit different when it comes to using .NET .
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
currently i am using the ADC0808 to change analog signal to digital and RS-232 serial cable to interface with my computer.But i face a problem how to write the Visual c++ or Matlab program for interfacing and signal processing.So any one interested to help is very welcome.
thank you in advance.
|
|
|
|
|
|
Hello,
I have to replace the occurances (which is near about 700) of a macro say ASSERT with its extended functionality say EXT_ASSERT. I can do in the following ways:
1. #define ASSERT EXT_ASSERT - but in this case if anyone want to use ASSERT he can not use it.
2. replace all the 700 occurances - replacing like this is difficult and more error prone.
Can any one tell me the better way of doing this.
Thanks and regards,
Ritesh S.
|
|
|
|
|
Ritesh wrote:
if anyone want to use ASSERT he can not use it.
what do you mean anyone ??
ASSERT is works in DEBUG mode only.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hello! Mr. Ritesh
This question is quite interesting. I also even tried typedef but failed. But you can create a small string-based program that can read the whole file and will replace the string ASSERT with the specified word "EXT_ASSERT" simultaneously. I know its a lengthy and time-consuming procedure.
I hope there would be another way to solve this problem.
Gagan..
|
|
|
|
|
Ritesh S. wrote: replace all the 700 occurances - replacing like this is difficult and more error prone
Replacing in multiple files is less difficult if you use Edit --> Find and Replace --> Replace in Files command and specify Match case and Match whole word options.
|
|
|
|
|
I have created a modeless dialog box(suppose dlg2) and is being shown when a button is pressed in another dialogbox(dlg1).The problem is when dlg2 is o n top of all the windows i am clicking on the dlg1. It is getting activated but not comming to top of all windows. How to do this.
Please help me regarding this.
Thank You
KIRAN
|
|
|
|
|
kiran.pinjarla wrote: The problem is when dlg2 is o n top of all the windows i am clicking on the dlg1. It is getting activated but not comming to top of all windows. How to do this.
If your dlg1 is also Modeless then check how you showed the dialog which may restricts your dlg2 to come at front.
Knock out 't' from can't,
You can if you think you can
-- modified at 2:12 Tuesday 13th June, 2006
|
|
|
|