|
Mr.toxcct,
i want to generate each Charecter in 8bits and i want to store this genrerated bits in an array..
looking for ur help
|
|
|
|
|
a char is already 8 bits... just store it as is.
what have you tried so far by the way to achieve this ?
|
|
|
|
|
hii everyone.. i am new to vc++.i have a text box on which half the text to display is common and the other half is entered by the user.The common half of message is diplayed in the textbox using SetWindowText but the cursor is displayed at the starting position.I want the cursor to display at the end the text in the textbox. Can anybody help me out
|
|
|
|
|
overload the ON_EN_SETFOCUS event and use myedit.SetSel(theStr.GetLength(), theStr.GetLength()) for instance
|
|
|
|
|
could you be some more specific as im new to vc++ i cannot understand it.
|
|
|
|
|
If you really did not understand what toxcct said, then you must read a book before you could ask questions here.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
Hi.
You have to create your own CEditEX class, (in example) derivated from CEdit. So then, you will be able to override some messages and use CEdit methods like SetSel() and so on.
Make a search about "windows subclassing" here in CP and you will find a lot of articles.
Kind regards.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
I have to think about a development involving mobil phones and security cameras.
The fact is, someone could check a security camera from his cell phone anywhere.
What I need it's just something to read, maybe someone of you had seen an article about that before.
I thought in JAVA for cell phone software client and in C++, (or C#) for server side application that receive the incomming connection from phones.
I really appreciate any suggestion.
Thank you very much.
Cheers.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
Hello all,
I am having two exe's and i am calling one exe from another exe using ShellExecute() function. My problem is i want to pass some variable values from one exe to another. How can i do this??
Thanks in advance
|
|
|
|
|
neha.agarwal27 wrote: How can i do this??
As commandline...
|
|
|
|
|
Hi.
You could use the Windows registry.
Cheers.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
Demian Panello wrote: You could use the Windows registry.
good software design should not include registry as active place for data share between two application
|
|
|
|
|
neha.agarwal27 wrote: My problem is i want to pass some variable values from one exe to another
when spawning the 2nd program, or during its execution ?
|
|
|
|
|
Hi,
1. If variable is required before starting another exe then pass that variable as command line.
2. If you want to pass variable after starting another exe then use Inter Process Communication such as WM_COPYDATA, Pipes and Shared Memory.
Amar
|
|
|
|
|
Amar Sutar wrote: WM_COPYDATA, Pipes and Shared Memory.
they are one of best IPC mechanism, but i recommend you discourage use of PIPe.. Window message is also good option
|
|
|
|
|
|
Hello everyone,
I am learning the storage area of Windows memory, but I am not sure what is the usage for Free Store area, what is the differences between Free Store area and heap area?
http://www.gotw.ca/gotw/009.htm
--------------------
Free Store The free store is one of the two dynamic memory
areas, allocated/freed by new/delete. Object
lifetime can be less than the time the storage
is allocated; that is, free store objects can
have memory allocated without being immediately
initialized, and can be destroyed without the
memory being immediately deallocated. During
the period when the storage is allocated but
outside the object's lifetime, the storage may
be accessed and manipulated through a void* but
none of the proto-object's nonstatic members or
member functions may be accessed, have their
addresses taken, or be otherwise manipulated.
--------------------
Could anyone provide more information or sample please?
thanks in advance,
George
|
|
|
|
|
George_George wrote: what is the differences between Free Store area and heap
For all practical purposes, it is the same thing.
|
|
|
|
|
Thanks for your clarification Nemanja!
regards,
George
|
|
|
|
|
Hi!
I have an app that uses Crystal Reports for reports. Some functions cannot be easily realised in crystal, so I thought about calling my main app for that work.
Now, I can add custom fn's to Crystal, by writing a U25 DLL. The idea I tested was to have a function in this DLL that gets called from my main app and there deposits, in shared storage, the addresses I need to call to get my data. When the DLL gets loaded from Crystal, then it calls my app through those pointers.
I have tested it and it works, but I have been told in is a bad idea.
Suggestions?
|
|
|
|
|
As a general rule this sort of thing is considered unsafe and using Sockets or COM IPC from your Dll would be preferred as more robust and flexible than rolling your own solution in shared memory. I have used COM Connection Points in the past to communicate between a Dll loaded into the Microsoft Management Console and an external process. Not easy but it worked and was pleasingly fast.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
OK. Not sure what to do at this point. Implementing COM for this seems an awful lot of work for such a simple task. Any good pointers where to get started?
|
|
|
|
|
That's going to depend a lot on what you know and what your requirements are.
On one hand if it works leave it be. On the other it does sound like a temporary solution so perhaps try some separate experiments with COM, ATL makes this easy, to see if you can find a replacement architecture that you're happy with.
If you want to avoid COM give Socket comms a try, there's loads of examples available. This has the added advantage that you can transparently run your application on the same or a separate machine. Either way CP is probably going to be the best place to find examples. If you've managed to write your own shared memory exchange system that works you'll have nothing to fear from either of these approaches and probably don't need advice from me.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Well, it is a commercial app, so I'd rather not do anything dangerous I have been banging my head against the limitations of Crystal Reports for the last 10 years And we do some pretty cool stuff, manipulating the innards of the reports ar runtime, using the CR apis. The New CR apis are all COM anyway so I had to learn those.
I found a good, two-part article on COM here and I am currently reading it. It might be that implementing a small COM server in my app might be worth the peace of mind here.
App and report will always be on the same machine so.. Also, COM feels quite logical as it is just a (synchronous) function call.
|
|
|
|
|
It is better that the dll has its own data, and the dll makes it own copies of the data. Preprocess the data in the App and THAN call the dll to finish the job.
Try to develop a data model which is clearly structered!! A clear structure helps you to develop good code and debug it easy.
Ask a friend/colegue for a half hour to discuss it. This is really worth it.
Greetings from Germany
|
|
|
|