|
TuanTriTue wrote:
But the following code incorrect run.
Which means what exactly?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
|
berkeley sockets.
there are enough tutorials here at codeproject.com
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg wrote:
there are enough tutorials here at codeproject.com
Apparently not in his case since he has already been pointed in that direction. This is about the 5th time he has posted this question.
He is looking like someone trolling to get someone to do his job for him because he is incapable, irresponsible and of course lazy. I would have responded to his post myself but I couldn't find the [get lost] icon
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I want to launch a .job file in C:\Windows\Task\ directory.
I use system(), WinExec(), ShellExecute(), CreateProcess,
but they all don't work
Is there any other way to implement this function?
Thanks a lot
Jesa
|
|
|
|
|
What is a .job file?
If it has a registered executable associated with the file extension then the process will start if you use ShellExecute() correctly.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
A .job file is created by task scheduler.
We can launch the .job file by double clicking it,
but it can't be launched by using ShellExecute() in VC++.
Maybe it doesn't have the registered executable associated with .job file
extension.
Jesa
|
|
|
|
|
Hi All
i have a nice and groovy CListCtrl which is showing images (100x100)
I have a thread which inserts the images into the control as the images are received. (the number of images is unknown beforehand)
When an image arrived, i add it to the Imagelist and then i do a SetImageList
(and then finally give it a title with InsertItem)
When i have a largish number of images, the control fickers when an image arrives and is inserted ...
I was wondering if there was a better method for what I am trying to do and what would be the best way to rid myself of the flicker?
cheers
bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
Have you tried CWnd::LockWindowUpdate()? I don't know that it will help but I wonder.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
|
ovveride the folowing
OnEraseBkgnd
OnPaint
in the errasbackground method you should do nothing..
and in the on Paint you should do something like this:
void CIcoListCtrl::OnPaint()
{
CPaintDC dc(this);
CRect r;
GetClientRect(&r);
CMemDC memDC(&dc,&r);
Errase(&memDC);
CWnd::DefWindowProc(WM_PAINT,(WPARAM)memDC.m_hDC,0);
}
I have a CustomDrawListControl with Icons and the Icons are zooming on mouseenter and mouseleave...
and it dont flicker at all!
I hope this helps..
|
|
|
|
|
OK, If I have read correctly I should be able to take a single executable file from the development environment and use it on another Windows based machine if I statically link with the MFC dlls. I appreciate that this will make it a more cumbersome .exe but it keeps my customer happy. As a final check I will not need any additional dlls to permit database access since I accomplich that using the MFC CRecordset classes. Is this correct?
I currently use the standard edition of VC++ ver6 and think that I have to get the Professional edition to do this. Again before I spend the dollars am I correct?
AndyB
|
|
|
|
|
|
TallAndyB wrote:
I will not need any additional dlls to permit database access since I accomplich that using the MFC CRecordset classes. Is this correct?
I don't believe that will be correct. It's been a long time but you should need files for whatever database product you are using. Also CRecordset uses ODBC I believe, so all of that has to be installed.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Hello, I have an editbox that is in a child dialog – this child dialog is a “cancel test” type screen having a single button that when pushed cancels a long series of calculations, and a single multilane editbox that receives information from my main program and displays them in a multilane form.
Here is my problem: I can get the multilane part to work great, but I always have to scroll down to see the most recent message. For example, if I were to make an editbox that is only tall enough to print a single line, then I will always see the very first string that I sent to the editbox – I am wanting to see the most recent string, not the oldest.
I know I need to use something like pcanceldlg->LineScroll(1, 0); but I always get an error saying LineScroll' : is not a member of 'CCancelBoxDlg' If anyone can help me with how to use the LineScroll function in a child dialog I would greatly appreciate it.
If it helps any, here is the code I am using to send the strings:
pcanceldlg->GetDlgItemText(1015, s_oldprogress);<br />
s_newprogress = s_oldprogress + "\r\n" + s_progress;<br />
pcanceldlg->SetDlgItemText(IDC_MOVEMENTDIALOG, s_newprogress);
Thanks,
Loren
|
|
|
|
|
Hi,
LineScroll is a member of the CEdit class, not CDialog , which is why when you try to call the function using the dialog pointer, you get a syntax error. To call LineScroll , therefore, you need to have the CEdit control variable or a pointer to it. Try this instead:
<br />
CEdit *myEdit = ((CEdit*)GetDlgItem(IDC_MOVEMENTDIALOG));<br />
<br />
myEdit->LineScroll(1, 0);<br />
Hope that helps!
Sincerely,
Alexander Wiseman
Est melior esse quam videri
It is better to be than to seem
|
|
|
|
|
Sounds very much like an editbox I'm using to log messages. This is how I scroll to the bottom of the editbox.
int len = m_SystemStatus.GetWindowTextLength();
m_SystemStatus.SetSel(len,len,FALSE);
|
|
|
|
|
Hi,
I want to use CDatabase::ExecuteSQL to execute a update sql statement to Access database.
I use the following sql statement.
sql="update table_name set col_name=\"dd'ee\" where id=1";
(the content of col_name has a ')
it doesn't work.
Please help me solve the problem!!
thanks a lot!!
Alan
|
|
|
|
|
Did you test the SQL statement in Access?
It looks like there might be an error in it. It appears you have an apostrophe character in the string value for the col_name field. I am not positive but i seem to remember that Access and other relational DB's do not support that character in string data.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Yes, I test sql statement, it works.
|
|
|
|
|
Try this syntax:
strQuery = "UPDATE employees "
strQuery += "SET employee_lastname = " + m_Value;
strQuery += "WHERE employee_id = " + nEmpId;
remove those slashes
TaknUmone
|
|
|
|
|
but we have use ''/"" to the char column.
because the content of the column include a ', so I change teh one pair of '' to "".
|
|
|
|
|
alanshen209 wrote:
it doesn't work.
What does that mean? Does it throw an exception?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
when I run my sql statement, I got a error msgbox.
|
|
|
|
|
if i am using ofstream out("hello") this would wirte a file to the project file i'm working in. is there a way to send this to another file ... say c:\program files\
thanks
shawn
|
|
|
|