|
I don't find it funny... my day has gone from bad to worse!
Whilst trawling around for USB info I read an extract from an Intel article clearly stating they plan to withdraw all legacy support. This includes serial, parallel and floppy drives!
They expect all users to use USB compliant devices instead.
Just how you are expected to repair Windows when it all goes pear shaped in the future I have no idea!
>>Funniest thing i've heard all day.
>>>> However of late I see COM ports are to be abolished mid-next year
--
The Obliterator
|
|
|
|
|
FWIW, there are devices that connect to the USB and provide serial ports. I spent a few minutes looking through a PC Connection catalog and I found units from Belkin, Comtrol, Keyspan, Targus, and Tripp-Lite and they do not appear too expensive.
There are also software packages available to help with USB driver development. I think Blue River Systems has one and there are a few others.
Best of luck.
|
|
|
|
|
Yes this was really part of my original question, thankyou.
I couldn't understand how an adaptor would allow the software to work without custom software mapping the USB as some kind of virtual COM port. Clearly this is the case, and I may explore these options as a short term fix. For anyone else with similar problems here is one such solution:
http://catalog.belkin.com/IWCatProductPage.process?Product_ID=66002
As for Blue River Systems, I will have a hunt for their stuff now and see whats on offer. Thanks.
--
The Obliterator
|
|
|
|
|
One of my first vc++ applications...
What is the best way to open new windows 'in' an existing child window in a VC++/MFC/MDI application ? (e.g. based on MS VC++ sample 'mdi', with the 'hello' and 'bounce')
My application should open a child window (window_1).
Clicking in window_1 would result in a new child-of-child window inside window_1 (window1_1, window1_2 etc.)
Once that is working, I would like to draw a line between the windows. (e.g. arrow from border of window1_1 to border of window1_2)
If you have any solutions, pointers to code/doc etc. it will make me so very happy !
|
|
|
|
|
float fAngle = atan(1);
what's wrong with this? I don't get any reasonable values out of the atan function! There's nothing wrong with assigning a double to a float is there? Tried this also, gave the same crap:
float fAngle = (double) atan(1);
As far as I know, the outcome of this function is supposed to be 45. Sorry if I come over a bit angry, I am
I spent half the day trying, so please help
WAVK
|
|
|
|
|
atan accepts a double, and returns a double
try this:
float fAngle = (float)atan(1.0);
although, I would really look into changing the type of fAngle to double.
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
I've beenn trying too long and so my stupid head converted a double to a double instead of a float thanks for clearing me up
WAVK
|
|
|
|
|
The result is supposed to be Π/4 because the result is in radians, not in degrees.
|
|
|
|
|
Hi wavk;
atan(1) is 45, as long as 1 is in degrees.
All the trig functions in C are in radians which give you 0.785...
This might be your problem.
|
|
|
|
|
i've recently installed win2k. now, when i use class wizard to add a message handler, when i hit OK, i get a message about how VC was unable to copy this or that temp file, or that the file CW was working on was unable to be written, etc..
has anyone else seen this?
could it be related to NAV?
-c
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
I don't have any problems (not running NAV, though). Are the resource files resource.h and app.res) read-only?
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
nope....
it usually happens on the .CPP for the window i'm working on. more than once, it's told me that it can't write the CPP (after adding the new message handler) and that my only chance of recovering the .CPP is to go out and look inside a particular temp file. scary sh*t.
-c
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Chris
I am using VC++ 6 SP5 on Win 2000 SP2 with NAV Corporate. I won't lie and say I do heaps of development but I have not run into this problem.
Did you upgrade to Windows 2000 over some earlier operating system? Or did you mean upgrade as in new machine and OS?
When you say message handlers you mean like ON_CLICK for a buton (as a weak example)?
If you give a little more detail I will try to reproduce on my installation.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
new machine with Win2K pre installed, vc 6 (sp 5, i think), new Dell P-4 1.7.
When you say message handlers you mean like ON_CLICK for a buton (as a weak example)?
yep. it seems to happen pretty much any time CW has to write into a .CPP file - message handler, Afx* override, etc.. it looks like CW copies the original .CPP to a temp file, modifies the temp, deletes the original then copies the temp to the original's place. only, on my system, it sometimes fails to delete the original, or fails to copy the temp onto the original. sometimes it tells me it can't write the .CPP because some other app is using the file.
i've got NAV set so that it doesn't scan .CPP or .H files, so i'm not sure it's the problem. but, NAV is the only other app i can think of that would be opening files without consent.
-c
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
I am using MFC without the Doc/View architeture, its a dialog based WinCE application. Anyhow, I use Structured Exception Handling, if any exception occurs the software reports out the exception information, I then want to kill the software as cleanily and quickily as possible.
Best way of doing this pls ?
Regards
Ray
"Je Suis Mort De Rire"
|
|
|
|
|
Ray
Try PostQuitMessage(0); , that should do the trick.
Norm Almond
Chief Technical Architect
FS Walker Hughes Limited
|
|
|
|
|
I can't remember how to get a Program to play a sound, It was like playSound("ss.wav.") somthing like that .
One more thing, I need a way to change the titel(Caption) In a dialog window, in the program while it is running, how?
Thank you
|
|
|
|
|
>I can't remember how to get a Program to play a sound, It was like playSound("ss.wav.") somthing like that
PlaySound defined in Winmm.lib MMSystem.h
>One more thing, I need a way to change the titel(Caption) In a dialog >window, in the program while it is running, how?
SetWindowText
Michael
|
|
|
|
|
you are chasing PlaySound(LPCTSTR) ...
Regards
Ray
"Je Suis Mort De Rire"
|
|
|
|
|
Thanks, that infomation was just what I needed...
|
|
|
|
|
Can you show me how to make the background transparant of a CDialog?
I preferably want code example!
|
|
|
|
|
check out some examples here at codeproject in the Windows 2000 section
regards
|
|
|
|
|
How VC processes the internal "divide" process ( I mean at the "bit" level)?
My project at hand is to simulate the "divide" process that VC does.
Is there any suggestions or articles about this topic?
Thanks,
Maer
|
|
|
|
|
If I use the function "LoadLibrary" to load a DLL, shall I release it after using?
How can I release it?
Thanks,
Maer
|
|
|
|
|
Yes, use FreeLibrary(HINST).
Unless you use it for the duration of your app. It will be released automatically when the process terminates.
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|