Some more info, just in case anyone has suggestions:
If the driver is installed while the peripheral is plugged in to a high-level port (say level 5), it will continue to operate appropriately. If the peripheral is unplugged and plugged back into a lower-level port (say level 4), it will no...
Not quite a C# question, but figured this was the best place to ask...
On an embedded system project, we're in need of a lot of USB ports. The motherboard itself has two hubs. Hub level 1 has several ports (which we do not have direct access to), and the hubs connect here. Therefore, the...
Miros,
Thanks for the suggestions, but I decided to take another tack on this one... I'm rewriting it from scratch ;-)
Needless to say, the program now offers a LOT more functionality with a LOT less headaches.
Why can you not pre-generate them? A number that's random at 4:45 is going to be just as random at 8:20.
Generate 12 random values at 8:00 and place them into an array... call it Value. Also at 8:00, generate another 12 random numbers between 1 and 120, also placed into an array... we'll call...
I created a custom progress bar control and compiled it into a DLL. I added it to the IDE's toolbox, but it appears grayed out. Do I need to do something special when creating the DLL itself or when adding it to the toolbox?
This is in Visual C++ .net, 2002.
Modifying an existing program...
The child window is a 2x10 frame with some pull-down menus at the top. I'm trying to get rid of the minimize, maximize, and close buttons at the top. The same buttons on the parent window should be the only ones available to the user.
The window is created...
Ark,
That's exactly what I was looking for... sometimes it's difficult to see the forest through the trees. After years of working with 2D arrays for graphics, I should have realized I needed to create/initialize each lock one at a time.
A star for you :-)
Ah, I believe I have figured out the format (at least partially). Here was the original constructor:
Foo::Foo():Mut1(FALSE, NULL, &Security),
Mut2(FALSE, NULL, &Security),
Mut3(FALSE, NULL, &Security),
Mut4(FALSE, NULL, &Security)
{}
Everything after the...
Ark, thanks for the reply. I had to read your reply multiple times to get the jist of what you're saying, though I have to admit I still don't comprehend all of it. I'm not an OOP guy, and I'll have to wait until mid-February before my 5-day crash-course in C++ training happens, so until then...
I've come across a sticky wicket. I inherited a spaghetti code program that had four mutexes spelled out explicitly.
In the public section of the class:
CMutex Mut1;
CMutex Mut2;
CMutex Mut3;
CMutex Mut4;
With the following empty constructor:
CFoo::CFoo():Mut1(FALSE, NULL, &Security)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.