|
Hi,
Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long).
Any suggestion ?
sdancer
|
|
|
|
|
sdancer75 wrote: Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long).
Any suggestion ?
CString has limits but it certainly isn't limited to 500 characters. How are you saving your query into the CString?
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
sdancer75 wrote: Does the CString has a max character limit ?
Yes, something on the order of 231 bytes, give or take a few.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
CString doesn't have limits, your code does.
Before blaming someone elses code for an error, first try to find the bug in your code. CString does not have a limit of 500 characters. You are wasting your time looking for your problem in CString.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
"A CString object can store up to INT_MAX (2,147,483,647) characters."
That is what it says in the MSDN libraray.
|
|
|
|
|
Hey guys,
Thank you for your replies. It was my mistake. I confused since the debugger shows only a small part of the CString Variable and with my error in the code i had problems.
I solved. Thank you to All !
Regards,
sdancer
|
|
|
|
|
Hi,
I want to show a client desktop on server (like remote desktop in windows)
what is the best way for doing this?
cheers,
thanks.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
Create a screenshot of the desktop and send it to the server. That's how all remote desktop proggies work anyway.
|
|
|
|
|
You can try looking at the source code for TightVNC for some clues on how to do this.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
How can a button press be simulated, so when you do the call you can see the button going down and up again, and the corresponding button handler gets called.
I use the following code now.
((CButton *) GetDlgItem(IDC_MOD))->SendMessage(BM_CLICK);
The button handler gets called, but the button doesn't go down and up again.
Is there any other way to achief this ?
Thx
|
|
|
|
|
Have you tried sending WM_LBUTTONDOWN+WM_LBUTTONUP (with proper point) ?
I haven't tried it, but it seems to be the starting point of a button press...
HTH
squidev
|
|
|
|
|
According to the MSDN documentation the BM_CLICK message generates a WM_LBUTTONDOWN and a WM_LBUTTONUP message.
See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/buttons/buttonreference/buttonmessages/bm_click.asp
I figured out that when I shift the focus to a button on a regular dialog and I hit the <enter> key no down and up movement is seen. Could it be possible that everything goes so fast that you cann't see it ?
|
|
|
|
|
Why not just use Spy++ to see what messages are sent to the control and dialog? Once found, then it's just a matter of repeating them via code.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
try something like WM_GETDLGCODE , that might prevent the dialog from taking the focus from the controls ,and if it doesn't work then at design-time set the TAB order.
Regards
Farpointer
|
|
|
|
|
Dear All,
Programmatically I want to find the actual physical path of running process.
With Regards
Manoj Kumar Batra
|
|
|
|
|
Really easy. CreateToolhelp32Snapshot is your friend. Pass TH32CS_SNAPPROCESS, and use szExeFile of PROCESSENTRY32 structure.
|
|
|
|
|
Thanks you a lot for the Help.
can I find the running process is COM, DCOM? through CreateToolhelp32Snapshot?
With Regards
Manoj Kumar Batra
|
|
|
|
|
manojk_batra wrote: can I find the running process is COM, DCOM? through CreateToolhelp32Snapshot?
AFAIK, Nope that Not Possible...
"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
|
|
|
|
|
or use
EnumProcesses();
OpenProcess();
EnumProcessModules()
GetModuleFileName()
gabby
|
|
|
|
|
Dear One,
I am working in MFC Dialog application.I jump from Parent dialog to child dialogs.But when I close any child Dialog.I NEED TO KNOW THAT WHICH EVENT OF PARENT DIALOG IS CALLED SO I MAY DO SOME MANIPULATION OVER THERE.
Thanx in anticipation
asifrogers
|
|
|
|
|
Are the child dialogs modal or modeless?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Child dialogs are modal.
asifrogers
|
|
|
|
|
asifrogers wrote: Child dialogs are modal.
if your child dialog are Modal.. then you must be calling like this..
CChildDlg chdDlg;
chdDlg.DoModal();
As the DoModal call is Blocking Function.. thats mean your Parent dialog will be blocked till you childDialog is Visible/running.. so if you want to perfrom task after closing of Child dialog you can write after the DoModal call
"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
|
|
|
|
|
"Child dialog" is nearly always used in a general sense, hence the question.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi ,
when the child gets destroyed it send a wm_destroy trap it and do what you want to do their ,or post a message to the parent with the help of sendmessage( or a user message), trap it at parent .
Regards
farpointer
|
|
|
|