|
Sorry my hands are shaking after reading the replies you have already recieved.
Read up on TAPI (Telephony API) in the MSDN Library (the best way to hanle modems).
If you are writing your onwn code to access the modem (Not recommend - but I had to do it for Win31 [and port to Win32 still uses it]) via a comport then read up on how to open a comport via CreateFile() in the MSDN Libaray. Once you have an open open comport handle then you can use WriteFile() to send the AT commands (text commands) with WriteFile(), just like you would if you were writing to a file.
As for _outp() and _outw() those are used to access hardware ports (very low level), not for accessing a modem. You can not even use these function to access hardware for you program under WinNT/Win200/WinXP, unless you are using a driver like UserPort.sys (freeware-on the net). Normaly only a system kernal-mode driver can access hardware ports under those systems.
Trust in the code Luke. Yea right!
|
|
|
|
|
:(Sorry I was so upset that a replied to the wrong person. Look thru the list of replies to your post for my answer. If you need more infomation let me know.
Trust in the code Luke. Yea right!
|
|
|
|
|
One easy way to sent commands to modem:
Open a port using CreateFile() api.
Then you will able to read or write on that handle using ReadFile() & WriteFile() apis just like as you read and write from file.
Thats all !!!!!!!!!!!!
C.R.Naik
|
|
|
|
|
I can send AT commands using WriteFile. But how can I, for example, transmit byte to a remote system when I'm already connected?
|
|
|
|
|
WriteFile()
Trust in the code Luke. Yea right!
|
|
|
|
|
Modem works in two modes. One is command mode and another one is Online(data) mode.
While modem is in command mode it replies apropriatly to your commands. While it is in online mode whatever you are sending to it through port, it will forward it to remote modem.
So to transmit byte to remote system you have to bring modem in Online mode first.
Chintan
C.R.Naik
|
|
|
|
|
Hallo!!
How can I select items in a ListCtrl programm-side without focus on the Control ??
The program must select the item, not the user. and the focus must not be on the control.
I have only text in the ListCtrl , how can I change the size of the text??
|
|
|
|
|
Use CListCtrl::SetItemState().
|
|
|
|
|
Hello !!
I want to have a CHeaderCtrl at the top of a view.
How can I do this??
Because it is a aplitter window , and in the other view is a CListView with a Header Control at the top
and the same header I want to have in the other View.
|
|
|
|
|
Since it's usually positioned above columns of text or numbers, why would you want one in a view with no columns?
|
|
|
|
|
A header control can be created on its own, just like any other type of control. Create it as a child window of the view in question.
--Mike--
Yeah, payin' the bills with my mad programming skillz.
Defraggin' my hard drive for thrills.
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
===========
#include <iostream>
int main()
{
double z = 20.0;
std::cout<
|
|
|
|
|
a double is only a 64bit value. You can't get a 128 bit number out of that. You're going to have to find some other way of getting your precision.
Joseph Dempsey
joseph_r_dempsey@yahoo.com
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
|
|
|
|
|
double on Win32 is of course 64bit.
long double on SGI and on Sun is 128bit.
The question is - why does VC++ produce such a weird output?
I am not trying to get 128bit number out of Win32 double, I'm just trying to output it with 50 digits after the decimal point. And when I try to do that, I get completely wrong result. Borland C++ and g++ produce correct results on Win32.
|
|
|
|
|
Just a guess but I think it may be outputting the least number of digits required for significance.
|
|
|
|
|
The problem is quite different,
20
and
2000000000000000
are just very different numbers, it is not the same nubmer with a different number of digits after the decimal point .. there is no decimal point
|
|
|
|
|
Perhaps you'd want this instead:
void main( void )
{
double z = 20.0123;
for (int x = 1; x < 40; x++)
cout << setprecision(x) << z << endl;
}
|
|
|
|
|
It is a bug in Microsoft's STL when the precision is greater than _MAX_SIG_DIG and the formatted number doesn't contain any decimal point. Send the bug off to Microsoft and/or Dinkumware http://www.dinkumware.com/[^].
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I thought it is a bug, weird one. Thanks for the explanation.
|
|
|
|
|
Currently I'm considering my options with a small project and if it is posible I think the easiest way to do some of the data handling would be to read and write to the ASCII keyed files using VC++. And while I say this, I can't seem to find any online refferences on how to do this ... any suggestions?? As a little background info ... these keyed ASCII files where created and maintained originally in MTB
BASIC.
Thanks in advance ..... Bryan ~
|
|
|
|
|
You did not indicate that you're using the MFC, so I am going to assume you are ... check into CStdioFile class. That should give you the functionality you need/want.
D.
|
|
|
|
|
What do you mean by "keyed files".
Trust in the code Luke. Yea right!
|
|
|
|
|
Hello, my name is Alexander, I need urgent help with how to write a C++ program to read the data from an Excel spreadsheet (exported in fixed length format or comma delimited) to an object of the CFile class. Then, how to write a program to look at the records in the CFile object. Please, HELP
Alexander
|
|
|
|
|
|
Gee, if you submit this as your assignment, you might get 4.31/5.0, say 86%. I'll have to remember this, the next time I'm interviewing a Devry grad.
Chris Meech
"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.
"Microsoft hasn't ever enforced its patents. Apparently they keep them for defensive reasons only. Or, they could be waiting 'til they have a critical mass of patents, enforce them all at once and win the game of Risk that they're playing with the world." Chris Sells Feb 18, 2003.
|
|
|
|