Search:
Type: Posts; User: galapogos
Search:
Search took 0.03 seconds.
-
January 28th, 2016, 04:49 AM
Thanks! That could be the case. However, I'm wondering why it doesn't affect the other USB 2.0 drive I have, which is also mounted and can be seen in Windows Explorer.
-
January 28th, 2016, 04:38 AM
I have a console program written in VS2005 that does the following sector accesses sequentially from sector 0:
Reads a sector
Writes 0 to that sector
Reads back that sector
Compares the...
-
January 27th, 2016, 10:21 PM
Another question.
I'm trying to read and write to the external USB drive sector by sector, from 0 sequentially up, using ReadFile() and WriteFile(). I'm having trouble writing sector 256. It goes...
-
January 27th, 2016, 08:03 PM
That's very relevant 2kaud, it's exactly the case as I found out yesterday when I queried my drive with DeviceIoControl(). Thanks!
-
January 27th, 2016, 04:06 AM
Sorry, I forgot the code checking for CreateFile(), I've added into my original post. I'm checking that the handle isn't INVALID_HANDLE_VALUE, so I'm pretty sure CreateFile() was successful.
The...
-
January 27th, 2016, 03:15 AM
I'm trying to access an external USB 3.0 drive using ReadFile() but it keeps returning false on ReadFile and GetLastError() returns ERROR_INVALID_PARAMETER. The following is my code excerpt:
...
-
Yes, I do have root. However, is it not possible to mount at a native binary level without root permissions?
Anyway, it's definitely not BSD since the number of arguments aren't even the same(4...
-
Hmm, I'm actually building it as a native binary on an Android device, which uses Linux. So, not BSD right?
-
Hi,
I'm trying to get my C program to perform a few shell commands in a Linux environment, one of them being mount. The specific command is:
mount -o rw -t ext3 /source /destination
If I...
-
December 5th, 2011, 02:54 AM
Hi,
I'm trying to get started on an instant messaging/VoIP project that uses a client-server architecture, and I'm thinking of looking at open source projects such as Jabber to understand the...
-
April 14th, 2011, 04:40 AM
Doh...head slapping moment.
Thanks!
-
April 13th, 2011, 07:55 PM
Still can't add variable after changing its name. Can I do it manually by adding it in MainDlg.h/cpp?
Edit: I just tried adding a progress control on another VS2005 project in resource view and...
-
April 13th, 2011, 05:10 AM
-
April 13th, 2011, 05:04 AM
1. Done
2. Can't seem to do it. Right clicked on the progress control in resource editor and "Add Variable" is grayed out.
3-4. Will do.
-
April 13th, 2011, 04:51 AM
In that case, disregard what I did completely, and please tell me exactly how to get the functionality that I described in my original post.
Thanks.
-
April 13th, 2011, 04:34 AM
As I've mentioned in the original posts, I drag and dropped a progress bar in resource view from the toolbox into my main dialog. I then created the CProgressBar class by right clicking on the new...
-
April 13th, 2011, 04:17 AM
There is not CProgressBar dialog. My progress bar is created in the main dialog(MainDlg) which is created and displayed once the program runs. In resource view it's named IDC_PROGRESS1.
Ignore the...
-
April 13th, 2011, 04:04 AM
The ProgressBar class definitions are the default ones that are created when I use the Class Wizard to add a class in VS2005
CProgressBar.cpp
// CProgressBar.cpp : implementation file
//
...
-
April 13th, 2011, 03:51 AM
OK, stupid question:
My ProgressBar class definitions are in CProgressBar.h/cpp. The actual progress bar however is displayed in MainDlg::OnButtonClick(). I've included CProgressBar.h in...
-
April 13th, 2011, 03:28 AM
Exactly. OnButtonClick() will include a loop that does some operation, and at every iteration it will update the progressbar until completion.
I've made the progressbar invisible, created the...
-
April 13th, 2011, 03:08 AM
Hi,
I'm trying to add a progress bar in one of my dialogs, that will step upon every iteration of a loop until completion. I've never played around with progress bars before, so I'm totally...
-
April 8th, 2011, 02:54 AM
OK I figured out what was wrong. I needed to add ON_WM_TIMER in my MainDlg.cpp's MESSAGE_MAP section. I did this manually. Is there some VC++ timer wizard that would automate this when I add a timer?...
-
April 7th, 2011, 09:39 PM
Hi FockuSS,
Thanks for the code.
I'm slightly confused as to your CTestdlgDlg class.
I currently have created a dialog in the resource editor for my status dialog, called IDD_STATUS_DIALOG....
-
April 7th, 2011, 04:58 AM
OK, so I'm still back at square one...
I'm guessing since I'm not spawning any threads, I can assume that the program is always running, so IsRunning() isn't necessary.
I'm still not sure how...
-
April 7th, 2011, 04:38 AM
I was wishing there was a way to modify my existing code slightly to get it to work, but if not, I'll try cilu's code.
Thanks!
|
Click Here to Expand Forum to Full Width
|