|
I have a Windows 2003 Server (Standard) and Visual Studio 6.0 with Service Pack 6 installed.
I try to work on a MFC project, but every 15 minutes or so I get an error message box "MSDEV.EXE could not locate \device\harddisk\0" and the MSDEV is locked up
I can bring up task manager and kill the process, but this is affecting productivity
My hard drives are letered F: and G: instead of the traditional C: and D:
Is this the problem? Has anyone else seen this and worked around it?
Is it a 'tightened' security issue?
I am logged in as a member of the local administrators group.
I am pretty sure I installed the Visual Studio while logged in under this development account as well.
Thanks for any ideas
|
|
|
|
|
I had made ocx control in MFC which contain stock proerty page (color and font). My problem is to move system color combo box of color property page to other place in same page. how i can do this
suggest me
Thanks in advance
Ajit Pratap Singh
|
|
|
|
|
Hi,
I'm working on an installer file. I want it install (among other things) some drivers for a usb device i have. The driver consists of three files: zanthic_c4u_W2K.inf, ezusb.sys, C4ULoad1W2K.sys. I can get the windows to load the drivers correctly, but only if I manually specify where each file is when windows discovers the device. I want the device to simply install "no questions asked". I found that the .sys files end up in c:\windows\system32\drivers and the .inf files end up in c:\windows\inf when I install the hardware by hand, but if I set my installer to copy the files to these directories, windows says "i can't find them, please tell me where they are". Can anyone tell me where/how I should put these files to let windows plug n' play auto locate them?
Joel Holdsworth
|
|
|
|
|
It depends. If you are using Windows 2000 or XP, and your driver is certified, you can do it this way.
Copy all the files into a semi-permenant area on the hard drive, such as Program Files\yourProgram\Drivers. Make sure the directory structure you create matches exactly what your INF says (typically, all files are in the same dir as the INF.)
Then call SetupCopyOemInf for your INF, and give it the path on the hard drive.
If you are not certified, you cannot get around the uncertified driver warning screen, unless you inform your users to go into their system settings and disable checking for certified drivers.
If you are dealing with Windows 98/Me, then I pity you.
"Fish and guests stink in three days." - Benjamin Franlkin
|
|
|
|
|
Hmm ok, that makes sense, but I'm having problems because I'm using inno setup which doesn't appear to have direct support for this - I can only really get at the command line, unless I start making mini installers to do the job. Is there any way of doing it simply through the command line?
Joel Holdsworth
|
|
|
|
|
No. What you can do is write a test EXE that does nothing but call SetupCopyOemInf with, say, the INF you specify on the command line. (Added bonus, you can manually copy files, then call your EXE directly to make sure it is working independent of anything else before you put it into the whole setup.)
There may be ways of hacking the registry to do this, too, but I would strongly recommend against doing that.
Unfortunately, installation of drivers is something very poorly supported by setup applications, so writing little custom utilities like this is pretty much all you can do.
"Fish and guests stink in three days." - Benjamin Franlkin
|
|
|
|
|
Thanks for that - it worked like a charm!
Joel Holdsworth
|
|
|
|
|
I'm trying to use the COM viewer to get ProgID's for controls and use them, but I'm doing something wrong. The CreateDispatch works fine for a control (in this case, the Thumbnail viewer), and I can even call the methods, but I don't know how to draw an instance of the control on my form. Can anyone help?? Thanks in advance.
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Hi, I've got this problem when developing my first DLL:
I have a DLL with an Interface class. I also have an application that calls some functions from the Interface class.
In the application there exist a function that I want to be called from the DLL (as a callback), so I pass a function pointer to the DLL.
I want to store the function pointer inside the DLL so I can call the function whenever I want, for this reason I have created an struct in which I store the function pointer and some other things. Until here, everything fine...
The problem comes when doing an instance of the struct; if I do that instance inside the Interface class (as a member) I cannot copy the function pointer in it; but if I do the instance outside any class (that is as "global") then there is no problem when copying the functon pointer.
Does anybody knows why can this happen?, it can be a problem of memory access?
Here is a "meta-language" example:
DLL:
In Interface.h:
typedef struct
{
functionpointer
}MyStruct;
class Interface
{
Interface ();
MyStruct mystruct;
void FillStruct (function_pointer_from_outside); //this is the exported function
}
In Interface.cpp
void Interface::FillStruct(function_pointer_from_outside)
{
mystruct.functionpointer = function_pointer_from_outside; //THIS GIVES EXECUTION PROBLEM
}
On the other hand if I make something like this, it works:
In Interface.h:
typedef struct
{
functionpointer
}MyStruct;
class Interface
{
Interface ();
void FillStruct (function_pointer_from_outside);
}
In Interface.cpp
MyStruct mystruct; //Instance as "global"!!!!!
void Interface::FillStruct(function_pointer_from_outside)
{
mystruct.functionpointer = function_pointer_from_outside; //OK!!!
}
HELP!!
|
|
|
|
|
IrenePwr wrote:
//THIS GIVES EXECUTION PROBLEM
what exactly is the problem? compile error? run-time error?
Software | Cleek
|
|
|
|
|
Run-Time error. There appear a windows called "Just-In-Time Debugging" saying:
An exception 'System.NullReferenceException' has occurred in testUI.exe
|
|
|
|
|
Hi.
I have developed an application, (dialog based), that has a starting dialog, (app. main window), that prompts for a password. When I minimize this dialog I can see the typical icon for a window in the taskbar, but the following forms that are called later, (the password form calls to another modal dialog and so on), when I minimize them, instead of being located in the taskbar they are all over her.
How could I fix this?. I would like that any form can be seen in the taskbar when I minimized it.
Thank you.
Demian.
|
|
|
|
|
Does anyone know where to start with enumerating available devices? I've got the code to write out to a device, but i'm looking for a way to query for that devices name.
MSDN is decidely unhelpful, most of the code refers to XP SP1, which is a platform that we can't use.
I know it has to be possible because the OS displays the name of the device as it connects.
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
|
|
|
|
|
Hi there,
I need to know whether the mouse cursor is within a certain area and if it has one (or more) buttons down -- but I have to do this without passing through an event handler.
Is there a quick, easy way of knowing the current mouse state? Something similar to GetKeyState() but applicable for the mouse?
Thanks a lot,
David
|
|
|
|
|
|
GetAsyncKeyState is the function you want for mouse buttons, pass in VK_LBUTTON / VK_RBUTTON as appropriate
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
|
|
|
|
|
Hi,
I have a dialog box which have a Tree Control on it. Style of this control is as "Check Box" i.e all the root items as well as child items will be checked by clicking on these check boxes which are against them.
Now here is the my requirement:
I want that when I check the parent item then all its child items should get checked automatically. Similarly when all the child items get unchecked then parent item should get unchecked automatically.
Please suggest how i should do this.
Regards,
Amit
|
|
|
|
|
It sounds like you are looking for the TVM_EXPAND message.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi,
i want to include bitmap into toolbar in mfc dialogbased application.
ToolBar has 3 button. i want to set different bitmap for each button.is it possible .plz help me (With sample coding).
Thank you.
|
|
|
|
|
I need to open a .dmp file from the menu in a SDI a application. When I click the dump(instead of open file) command in the menu, the file open dialog box is opening but the file is not getting displayed in the SDI client area neither it is opened in notepad. Can anyone tell me how to open in notepad or in the document view itself.
Thanx & Regards,
Srini.
|
|
|
|
|
cheenu_2002 wrote:
...neither it is opened in notepad.
Does the file contain any non-white characters? If not, you obviously are not going to see anything.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
It is not an .dmp file but a .dat binary file. Sorry for the mistake. First I want to display the file and then I need to read it to do some manipualtion with the bits. How can I read the binary data bit by bit?
Thanx & Regards,
Srinivasan.
|
|
|
|
|
cheenu_2002 wrote:
How can I read the binary data bit by bit?
I'm not sure, but if you want to read it one byte at a time, try:
CFile file("myfile.dat", CFile::modeRead);
BYTE buffer;
while (file.Read(&buffer, sizeof(buffer)) > 0)
; However, you should note that this approach is very inefficient for medium to large files. A better approach would be:
CFile file("myfile.dat", CFile::modeRead);
BYTE buffer[1024];
UINT uBytesRead;
while ((uBytesRead = file.Read(buffer, sizeof(buffer))) > 0)
{
for (UINT uIndex = 0; uIndex < uBytesRead; uIndex++)
;
} This should give you the idea that less disk I/O results in increased performance.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
|
hi all,
I have an application which communicates with a device..and when i click on UI and start multiple UI's, fill all the details, and OK, them one after the other,
job of each UI are queued and executed one after the other..I face some kind of timing issue when I use the release version of the exe or even the debug version of .exe.
But when I just attach this process to the VisualC++ debugger , by Build -> Start Debug ->Attach to process, and i don't put any breakpoints in anywhere in the code,
then it works fine..
What i would like to know is, how the attaching this process to debugger effects any .exe..pls note, I am not putting any breakpoints...so there's no way of adding human delay..
Any ideas...
Shiva P
|
|
|
|