|
I tried your code but now all my columns say "Nibu babu thomas"
Just kidding
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
No problem, if I can say "nibu babu thomas - PLAN Values" and son on
But indead, his answer helped me very much. I don't know, why he said I'm wrong
No problem, it works
|
|
|
|
|
ensger wrote: I don't know, why he said I'm wrong
I said that from your code snippet.
Look at the following example...
char title1[100];
sprintf( title, "%s", aString );
What's the point in doing this!!!. Since aString is already a string why not directly assign that string in a proper way and also on the long run this could be a performance hit.
|
|
|
|
|
Mark Salsbery wrote: I tried your code but now all my columns say "Nibu babu thomas"
RLY!! ;P
|
|
|
|
|
Hi,
I launched one application through CreateProcess()on a Button click event.
Now application is running and i want to pass arguments, to this application on some other button click event.
Is there any solution for this?
Pls help me.
Techneeli
|
|
|
|
|
Its your program or a foreign application
|
|
|
|
|
Hello, brother/friends in this codeproject.com forum.
first, My Name is Pardi Banjarnahor, I come from Indonesia.
as an information, my background aducation is in electronics.
the matter is I have a plan to make a program (software) that make possible for chatting (a client server application). May be it is like a SIMPLE yahoo messenger.
May questions are:
1. what kind of compiler (software) that is better, off course easy (simple) to make that sofware ( a client-server application).
2. it's possible to create/program it using MFC in Visual C++ 6.0?
3. I'm still a beginner in C++ programming, but I'm longing to be a good programmer in C++. If any one of you have information or advise (suggestion), It'll be very useful for me. if it's possible for you, you can e-mail me through Pardi.Marbun@gmail.com
Thanks for your attention and help.
Best Regards,
Thanks and GBU
|
|
|
|
|
There are several articles on client/server chat systems on this[^] CP page.
/ravi
|
|
|
|
|
|
Hi all
How can we read the data on webpage.
#sanroop#
|
|
|
|
|
|
|
Aside from the obvious answer of, "With your eyes," can you be a bit more specific about what you want?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
See this[^] article for an easy way to scrape HTML.
/ravi
|
|
|
|
|
hi i am having a function named FinalCall() which in turn call some functions. i have to do thread for this in mfc. i tried
void CBootLoader1Dlg::OnYes()
{
AfxBeginThread(ComputeThreadProc,phObjectHandle);
//FinalCall();
}
UINT CBootLoader1Dlg::ComputeThreadProc(LPVOID pParam)
{
HWND *phObjectHandle = static_cast<hwnd *="">(pParam);
::PostMessage(*phObjectHandle, WM_UPDATE_CONTROL, 0, 0);
return 0;
}
LRESULT CBootLoader1Dlg::PaintText(char* lParam)
{
FinalCall();
return 0;
}
there is no errors . but i cant acheive the threading.
can any one explain this
thanx in advance
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
You didn't post the code in which you started the new thread. Can you post it ?
And what is the problem exactly ?
|
|
|
|
|
yes i posted it as ON_MESSAGE(WM_UPDATE_CONTROL,PaintText).
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Ok, you updated your post.
The problem is that when you post a message, you will post it in the message queue associated with the thread that created the window (see here[^] ). So, the message will still be processed by your GUI thread (from any thread you sent it).
Why don't you call the FinalCall function directly there instead of posting a message ?
|
|
|
|
|
Again, you havn't stated your problem exactlty.
deeps_cute wrote: but i cant acheive the threading.
What does this mean, thread procedure is not getting called ?
|
|
|
|
|
i want to write very large numbers for ex 61118792 to the serial port.so i want to use DWORD to write data instead of byte.
When i take byte as parameter when using writeFile & ReadFile(and pass small values) i am able to get correct output,but if take parameter as DWORD i am getting some garbage value.
Please do reply how to solve this, if any other way also please suggest.
|
|
|
|
|
Can you show code ? causing this.
|
|
|
|
|
This is the code i found from codeguru.
The URL is as below
www.codeguru.com/Cpp/I-N/network/serialcommunications/article.php/c5395
please do take some time to look at the code
|
|
|
|
|
Doesn't Cedric's answer satisfy your query ?
l_d wrote: www.codeguru.com/Cpp/I-N/network/serialcommunications/article.php/c5395
Are you talking about this function ?
BOOL CSerialPort::WriteByte(BYTE bybyte)
{
iBytesWritten=0;
if(WriteFile(hComm,&bybyte,1,&iBytesWritten,NULL)==0)
return false;
else return true;
}
If you want to use DWORD, you need to modify it to,
BOOL CSerialPort::WriteByte(DWORD dWord)
{
iBytesWritten=0;
if(WriteFile(hComm,&dWord,sizeof(DWORD),&iBytesWritten,NULL)==0)
return false;
else return true;
}
-- modified at 4:01 Friday 23rd February, 2007
Corrected typo.
|
|
|
|
|
Well, that's a solution but it is not very convenient to modify the function so that it can support everything you want to transmit .
I looked at the article but I don't really see the added value of it. Yes, of course, it is perfect when you want to send bytes but when you have more complex datatypes then it becomes a pain in the sense that you need to use masks and bit shifting
|
|
|
|
|
thanks for Prasad& you for looking at the article.I understood what u both meant and modified but even then when i am reading back the value in that edit box i am getting garbage value.
can anyone please suggest me any other method when i want to send very large values that too many values if possible in an array accepting from different edit boxes.
|
|
|
|