|
Thanks kuphryn,
Where abouts in send is that implemented? Or is it tacked on to the message?
Cheers
Eta_Beta_Pi
|
|
|
|
|
It's not part of the socket interface.
HTTP is a simple communication protocol riding on the back of eg. TCP/IP.
Basically it is just a matter of sending a request, and getting a response and thats it.
So when your socket is connected to eg. 127.0.0.1 port 8080, then you can send the request "GET ..." including all the required headers through your socket. The server will send the response, and if it is HTTP 1.0, it will close the connection again.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
Hi!
I must write a Testprogramm, which use the COM Port to send bits. But I may not send any start bit or stop bit. I want to write this Programm with VC++ 6. Normally for using COM Port is the DCB structur and CreateFile with an Handle. But i can only turn off the Stop bit, Parity ...and not the Startbit. This will be send..or I don't understand this?
Which function I can use for my programm?
Thanks and Sorry about the English
|
|
|
|
|
You mean, the startbit, which be send normally by the COM Port (if I use Handle with CreatFile and SetCommState with an DCB structure) is only datatrash, that will be send before my own "StartBit"?
So, there is no posibility to use an another function to send bits through COM Port?
|
|
|
|
|
Why do you want to disable the startbit ? In fact this bit is used by the serial port to keep synchronisation. It has nothing to do with your own data and won't "affect" your data.
Hope this helps
|
|
|
|
|
Because my programm send the bits to an HF-Transceiver, which communicate to the receiver with his own protocoll. My Software should be an Test application, you can send any data with this protocoll. If the another Startbit will be send, it will disturb the test routine.
|
|
|
|
|
No, you don't understand: the startbit is part of the protocoll of the serial communication. So, when the receiver will receive your data, it will take only your data and NOT the startbit, transform your data into his own HF-protocoll and send them to the receiver.
A serial communication NEED always a start bit and this bit is present in the serial protocoll of your HF-transceiver. It it used to signal the begining of the byte.
|
|
|
|
|
You can't disable the start bit. It is a property of the RS232 protocol and is the only way the receiving computer knows when to start receiving a byte.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
with the SHGetFileInfo i retrieve the icon of a application. I want store the icon in a CBitmap object. How can i do this?
tommy
|
|
|
|
|
Use GetIconInfo() which will return the image and mask bitmaps (hbmColor and hbmMask members of the ICONINFO structure) and the use CBitmap::FromHandle() or CBitmap::Attach() to convert to a CBitmap.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have an application that prints the contents of the screen on a printer. The user has the option to select some scaling factors for the print out. (E.g. fit to page, etc...)
I am using the same printing function, which draws in a DC for the screen output and for the printer output.
On NT, 2000 and XP am using the SetWorldTransform function before painting to the printer DC in order to scale the output. This works fine.
But since SetWorldTransform does not work on 95/98 or ME, I am searching for a replacement of the SetWorldTransform function. Of course I only need the scaling ability of the SetWorldTransform function with constant factors for x an y.
I am painting in the MM_TEXT mode so I thought that I could use the MM_ISOTROPIC instead to scale the viewport extends. So I need the same features (coordinate directions, origin) like in MM_TEXT mode but with scaled viewport extends!?
How can I do that (SetWindowExt, SetViewportExt,...)? I already tried some things but without any results.
Thanks in advance.
|
|
|
|
|
In a past project, I used MM_TEXT for screen drawing and MM_ANISOTROPIC for scaled printer output. Worked fine.
onwards and upwards...
|
|
|
|
|
|
Hi, here i have an urgent question, can anyone please advise?
I have an existing workable stand-alone visual c++ application and wish to put it on the web so that people can access its functionality through internet/intranet with webpage browser.
I am not clear at all which way I should follow because I don't have much experience on web application with vc++.
so far, some words are popped up in my mind, such as asp, cgi, jni... is there a simple way to do so?
I cannot get visual studio.net easily. probably .net is not a good solution to me.
Thanks again
|
|
|
|
|
One solution is ActiveX. Create an ActiveX control, which will enable users to access it via HTTP. The control can spawns the stand-alone exe and get data from and to the exe. There are other solutions too such as redesigning the exe as an in-proc COM server.
Kuphryn
|
|
|
|
|
|
|
You haven't got any macros or add-ins that have crashed? I know that sometimes stuffs up my copy of VC6 when I've been using it for a while.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
No, it's a clean install (just tried re-installing today), without any add-ins or macros
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
Service Pack 5 installed as well?
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Well, I had it installed before I re-installed VS today (it was doing the same thing then, with SP5), and I'm busy downloading it now to see if it will do anything different....
80%...
*twiddles thumbs*
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
The only other thing which really annoys me is Norton Antivirus, which seems to want to hog my files when I try to start building, and won't let them be autosaved before the compile begins.
Maybe a virus scanner problem? Some of the threads in the lounge today were about virus scanners that would ignore development directories.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Good idea - busy installing the SP now, and if that doesn't help I'll try disabling NAV. In fact the more I think of it the more I think that's the problem, because more and more I've learned to suspect Norton first...
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
Well even without disabling NAV it's compiling now
Weird, because I had SP5 installed previously and it wasn't working then either. Oh well.
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
The problem is that winoldap.exe crashes. I can't remember how I fixed it though
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|