|
Hi,
i am using comport communication in my application
so i have to detect whether the data is there on the tx line
or not and then send the data is there anyway to implement
this functionality
|
|
|
|
|
Why do you need that? Don't you like output buffering?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
no the output buffering was not working so
i want to implement this way... to transmit data
|
|
|
|
|
Output buffering usually works. Could you please give more details about your problem?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
actually i am implementing a functionality in
which the tx and rx will be in a session
so while i am sending the data at a baudrate(baudrate can be any)
this is coming out of session.even though its taking the whole value into the
tx buffer its abruptly comes out of session.
|
|
|
|
|
Are you changing the baud rate on the fly, without closing and the opening again the port? I don't know if it might work, anyway you've to make sure to flush the buffer, before even trying.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
baud rate is fixed before entering the session
it cannot be changed on the fly.once i enter the session
the communication occurs at fixed baud rate.
but the data sent through can be varied...
so if i am sending large bytes of data then its coming out of session..
|
|
|
|
|
Hello Friends
i updated my code from vs2002 to 2008.and after that i got error in vector functions on m1.clear(),then i add msvcrtd.lib file then it crashed at another funcion of vector m1.push_back(). Do I need to add any other lib file to work with vector in vs2008?
Thanks In advance.
Yogesh
|
|
|
|
|
Hi Yogesh,
Are you reading/writing to the vector from multiple threads?
Best Wishes,
-David Delaune
|
|
|
|
|
yes,i m writing to the vectors.
|
|
|
|
|
|
But it was working very nicely in 2002,Y i hv to look at synchronizationin 2008.
Thanks
Yogesh
|
|
|
|
|
yogeshs wrote: But it was working very nicely in 2002
Yes, Visual Studio 2002 actually had partial thread-safety for some STL containers including vector and map.
Best Wishes,
-David Delaune
|
|
|
|
|
But are you writing to the same vector from more than one thread?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
hi,
i have a problem in reading inf files.. am able to write content into the inf file but its not reading properly.. i have used ::getprofilestring method..
compiler passes thru the function properly but not reading the values present in the inf file...
has anyone faced problem like this before? any solutions for this??
Thanks,
Rakesh.
|
|
|
|
|
|
Using GetPrivateProfileString() , is your .inf file laid out like a .ini file?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
true
I want to write OS.
If I haven't MS-DOS then not use "int 21h"
U have code:MS-DOS with TASM,Turbo C 3.0
-----------------------------------------------
TASM is free download
VC6,gcc free
what is gcc ?It is DJGPP & 32 bit compiler.Link download .
If I write 16 bit boot with TASM...how to mixing TASM with turbo C 3.0,gcc(32 bit kernel) ?
I want to:
in kernel.asm,mixing TASM with gcc|TC (32 bit)
in ker_mix.c,I write:
//descsript:create print Day Function
char input;
void main(){
cout << Action << endl;
cin >> input;
if(input=='Day'){
;print now date,month,time
}
then mix .c(32 bit) with kernel.asm
How to do it
-----------------------------------------------------
End,I have VGA-screen: 16M memory.
It view *.mp4,bitmap file(> 256 color) & run screensaver 3d.All color normal...beatiful
But I write VGA_Bitmap.c with TC 3.0 then result display bitmap bad
why ?
sReason:menory 16M or........
who edit VGA_bitmap.c->Result:beautiful color,normal
THANKS
vietnam
BY:TUAN1111--
modified on Monday, July 27, 2009 10:48 PM
|
|
|
|
|
tuan1111 wrote: running on empty Operating System
tuan1111 wrote: display text "hello" to the stars
I see that your English has improved a lot since the last time you posted. You have added a nice poetic and philosophical touch to your gibberish.
However, I still suggest that you learn some more English or post on a forum that supports your native language.
|
|
|
|
|
|
Damn, and I tought I read the guidelines carefully. So, sarcasm is also forbidden...
Ah well, I was having way too much fun here anyway.
(Oh crap, I did it again).
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Michael Schubert wrote: So, sarcasm is also forbidden
Unless it's funny - which in your case it isn't.
|
|
|
|
|
tuan1111 wrote: how to compile & writing boot to CD disk?
A CD is made bootable by the presence of an autorun.inf file. Somehow I doubt that's the answer you were looking for, but since I can't comprehend your post...
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
HI!
Vietnam
I have turbo C 3.0.
how to:write VGA into kernel ?
compile kernel with TC 3.0 ?
change code Borland C 3.0 to turbo C 3.0 ?
VGA display 24 bit-bitmap 32 bit ?
By:tuan1111
|
|
|
|