CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: galapogos

Page 1 of 14 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: WriteFile() on external USB3 drive fails with ERROR_ACCESS_DENIED beyond 256 sect

    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.
  2. WriteFile() on external USB3 drive fails with ERROR_ACCESS_DENIED beyond 256 sectors

    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...
  3. Re: ReadFile() returns false with GetLastError returning ERROR_INVALID_PARAMETER

    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...
  4. Re: ReadFile() returns false with GetLastError returning ERROR_INVALID_PARAMETER

    That's very relevant 2kaud, it's exactly the case as I found out yesterday when I queried my drive with DeviceIoControl(). Thanks!
  5. Re: ReadFile() returns false with GetLastError returning ERROR_INVALID_PARAMETER

    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...
  6. ReadFile() returns false with GetLastError returning ERROR_INVALID_PARAMETER

    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:


    ...
  7. Replies
    6
    Views
    2,318

    Re: Calling mount() programmatically

    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...
  8. Replies
    6
    Views
    2,318

    Re: Calling mount() programmatically

    Hmm, I'm actually building it as a native binary on an Android device, which uses Linux. So, not BSD right?
  9. Replies
    6
    Views
    2,318

    Calling mount() programmatically

    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...
  10. Replies
    2
    Views
    2,467

    Instant messaging/VoIP project

    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...
  11. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    Doh...head slapping moment.

    Thanks!
  12. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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...
  13. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    Vs2005.
  14. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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.
  15. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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.
  16. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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...
  17. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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...
  18. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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
    //
    ...
  19. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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...
  20. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Re: Progress bar

    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...
  21. Thread: Progress bar

    by galapogos
    Replies
    23
    Views
    4,236

    Progress bar

    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...
  22. Re: Dialog that pops up when waiting for something

    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?...
  23. Re: Dialog that pops up when waiting for something

    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....
  24. Replies
    5
    Views
    24,458

    Re: How to detect smart card reader insertion?

    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...
  25. Re: Dialog that pops up when waiting for something

    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!
Results 1 to 25 of 334
Page 1 of 14 1 2 3 4





Click Here to Expand Forum to Full Width

Featured