|
Aha! You didn't say you were working on Windows CE!
SetKMode isn't a good idea, was never officially documented for use by application developers, and was removed in CE 6.0. However, on platforms where it is implemented, it does indeed flip into kernel mode (through a software interrupt, I imagine) and continue running that thread.
I've been a CE developer for six years and never needed SetKMode.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Its Windows XP If so how do get into Kernal Mode is it my writting a device driver a app with a .sys extension
|
|
|
|
|
|
|
Hi
I have a belkin wireless modem / router. It has four wired ports which are all in use. Is it possible to add a 8 port hub to this? I know less than nothing about network hardware and googling is just throwing up new wireless modems.
I am running one of the wires from the hub into the loft and back down into the lads bedroom. I want to, ideally, plug that into another hub in the loft, so I can then run 8 more devices from it. (actually 7 more, as I still need to connect the lads machine up).
Is this as easy as just buying a hub?
The wireless access in the house is rubbish, as the study is at one end of the house, the house is old and all walls are either 9" or 4" solid.
Cheers
Malcolm
We violated nature and our children have to pay the penalty
Don't go near the water children... Johnny Cash - 1974
|
|
|
|
|
Using a hub in such a sense should work fine.
However using a switch would be better.
A hub sends alla data going through it to all other computers/devices while a switch sends the data to the corresponding computer/device.
Switches are therefore faster (under larger amounts of load) and more secure. I would never use a hub today.
You can connect multiple switches/hubs after each other (series) or besides each other (parallel) depending on where you want the new ports.
//Johannes
|
|
|
|
|
So, the router is in the study and three devices are attached to it? Plus one cable that now goes to another part of the house? And you want to add a hub in the middle? Should work ok, but might only offer limited network access. As someone already explained, a hub basically is a multi-port repeater. What goes in on one port comes out on all other ports. This also means that a hub will only run with the lowest common denominator of all devices in the network. If there is an IP-TV box, that MIGHT mean 10 Mbit / Half Duplex.
A switch, however, is a multiport bridge, meaning that it at least does basic OSI/ISO layer 2 routing and mixing. It will remember the port a device is attached to and send all packets addressed to a device to its specific port. A switch also has a backplane that offers seperate throughput for all ports, meaning that port 1 can talk to port 3 with gigabit connectivity, while ports 2 and 4 get data at 100 MBit/s delivered from a gigabit link on port 5... etc.
If you think that several of the devices attached on the breakout switch might be used at once, it might be no bad idea to set them to a bitrate one level slower that the uplink to your router (e.g. router<->switch: Gbit, switch<->devices: 100Mbit).
Oh, and you usually will only have six additional ports available. You will probably need one port to act as an uplink to your router.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
I am developing a software where I store the Instance ID of every disk in the system. How can I get the Instance ID from a disk number? e.g I want Instance ID of DIsk0 DIsk1 etc.?
here is what I am doing
1] SetupDiClassGuidsFromNameA("DiskDrive",***);
to get the GUID for disk drives
2]SetupDiEnumDeviceInf(***) to enumrate all the disks.This gives me Instance ID's of all the disks
but how can I get the device instance ID of spesific disk(like Disk0)?
|
|
|
|
|
Your best bet is to use WMI. The following code was pulled from Microsoft's WMI Code Creator (you can download it from their website):
strComputer = "." <br />
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") <br />
Set colItems = objWMIService.ExecQuery( _<br />
"SELECT * FROM Win32_DiskDrive",,48) <br />
For Each objItem in colItems <br />
Wscript.Echo "-----------------------------------"<br />
Wscript.Echo "Win32_DiskDrive instance"<br />
Wscript.Echo "-----------------------------------"<br />
Wscript.Echo "DeviceID: " & objItem.DeviceID<br />
Next
This is a .vbs script, but the WMI Code Creator will output to VB.NET and C# as well.
Hope this helps...
|
|
|
|
|
i need some help about my stepper motor. it is a philips MB11-4786
and i dont know which circuit i should use.
modified on Wednesday, January 23, 2008 6:42:01 PM
|
|
|
|
|
Does google have anything on it?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
i've just got some information about my step motor.
i think it can be drived uln2803 but i am not sure.
actually i didnt understan what they mean.
i am giving you an adress belove. after that please tell me waht i will do.
by the way thanks for your answer.
http://www.reuk.co.uk/Examining-a-Stepper-Motor.htm[^]
|
|
|
|
|
Don't know what you intend making, but the web page you quoted is straight forward. However, here is a blog that uses the parallel output to drive two stepper motors attached to an etch-a-sketch. http://zedomax.com/blog/tag/uln2803/[^].
modified 1-Aug-19 21:02pm.
|
|
|
|
|
My question is on Intel's New Quad Core Processor Technology
This Quad Core Means - 4 CPU?
And if there is not 4 CPU(Processor) Then How it is Quad Core
It is same applicable for Core 2 Duo?
Actually what are this Terminology Means?
Believe Yourself™ :->™
|
|
|
|
|
|
Hi
Pentium is a technology as Core is both being produced by Intel.
P1,P2...P4 are the series of advancemnts as Core and Core2 are.
So far as Solo, Duo and Quad is concerned they are the number of procesing elemnts(CPU)
present based on Core technology.
Spread wat u Know!
|
|
|
|
|
Quad Core means four CPU cores on a single die.
I believe that AMD's quad-core CPUs are truly four independent cores, where Intel's are actually two dual-cores. AMD claims their's is better. This all happened last year, and I haven't really been paying attention to this stuff since just before the hardware actually hit the street.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote:
I believe that AMD's quad-core CPUs are truly four independent cores, where Intel's are actually two dual-cores. AMD claims their's is better.
In theory it is, in practice you need a 4 threaded app with heavy cross thread communications to realize the benefit. At the same time, Conroe is performing enough better than Phenom that it doesn't matter. They were roughly equal on a per clock basis but Phenom took a 10% hit due to a hardware bug (revision with the fix eta a few months) and Conroe will run at significantly higher clockspeeds.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
It's four processors on one chip.
Hopefully, I get my hands on one soon
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Would there be a benefit as far as Visual Studio is concerned? That's the only thing I really do on the box anymore. I used to play games, but I got bored with 'em...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: I used to play games, but I got bored with 'em...
John Simmons / outlaw programmer wrote: Would there be a benefit as far as Visual Studio is concerned?
That I wonder, if VS would break up different threads, such as during compiling, and delegating them to the different cores to speed up builds. I'm guessing a faster harddrive, such as a 10K rpm might help, too. Until I get cash for a better machine, I can only wonder.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
As far as I know MSBuild is already parralised (I think that's spelt correctly) so as long as the dependencies allow it then it should be able to utilitise all the cores it can on the processor.
[Maybe I've got this wrong and it's for the next version of MSBuild but I'm pretty sure it's already the case]
|
|
|
|
|
Hi Ed,
Ed.Poore wrote: parralised (I think that's spelt correctly)
may I suggest parallelized as in this article[^], a single r for sure.
BTW I was surprised by spelt, very British according to my dictionary;
actually it said Americans would use spelled; however it does not know a thing about parallelization...
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Meh, it's one of the words I always have trouble with.
Luc Pattyn wrote: spelt, very British
Given where[^] I'm located at the moment and where I am from[^] it'd be a reasonable assumption to make that I'm British :p
|
|
|
|
|
I see, that is after I told Google's satellite to zoom out a bit
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|