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

Search:

Type: Posts; User: Skeeterbreath

Page 1 of 3 1 2 3

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    4,416

    Re: Review, divide two integers

    It's because your divide function in not returning a value.



    bool divide(int x, int y)
    {
    if (x % y == 0)
    return true;
    else
    return false;
  2. Sluggish response using overlapped IO in WinSock

    I have an app written in C using the Win32 API for Windows 7 and higher.
    The app streams ASCII g-code command strings to a multi axis router controller.
    The controller can be communicated with...
  3. Re: Problems With EnableWindow()

    Vladimir, you are correct. My time consuming process involves reading and writing to a serial port. The writes are immediate, but the Reads can take a while because of needing to wait on the response...
  4. Re: Problems With EnableWindow()

    Vladimir, I used your suggestion of the "quick-and-dirty- hack" and altered my EnableControls function like so...



    void EnableControls(bool enable)
    {
    MSG msg;

    while...
  5. Re: Problems With EnableWindow()

    Vladimir, I understand. Thanks for the answer.

    So where is the correct place/time to enable/disable the windows?
  6. [RESOLVED] Problems With EnableWindow()

    I have a Win32 app using standard Win32 API (no MFC, etc.). My main window is subdivided into multiple child windows...


    HWND child_window_01 = CreateWindow(L"Private Window Class", L"Child 01",...
  7. Replies
    7
    Views
    6,623

    Re: Best C++ WinAPI Book Since Petzold?

    I am not sure if this is exactly what you are looking for, but you might want to take a look at...
    ...
  8. Re: Loading bitmap without using MFC

    Paradox,

    The documentation on CBItmap::CreateBitmapIndirect indicates that it takes a pointer to a BITMAP as the only argument, and you are indeed passing this call such a pointer.

    But the...
  9. Replies
    4
    Views
    2,551

    Re: Create Folder With Full Access

    Ninja, Aamir,

    Thanks for the suggestions. If you look in the code snippet in my first post on the thread you can see that I do indeed try to create the folder with CreateDirectory.

    One of the...
  10. Replies
    4
    Views
    2,551

    Create Folder With Full Access

    Trying to create a folder which gives full control rights to all users, everyone.

    Problem is that when the folder is created, not only does it not give all users full control, but even I don't...
  11. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    Paul,

    YOu are correct of course. As fsr as I can tell, I am not messing with the boundaries of the string that was allocated in the other DLL, but you never know. Essentially, the only thing I do...
  12. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    Paul,

    That is because, to simplify the problem, I stripped out the "special stuff": references to other classes in other functions of BMPHEader, etc.

    I inherited this project from my...
  13. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    Kirants,

    All to true! This has been one heck of a code project to maintain, enlarge, etc.

    All of the DLL projects, after being brought into VS 2008, were indeed "cleaned" and then "rebuilt" in...
  14. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    Joeman,



    The project ALREADY compiles with 0 errors, 0 warnings. Tis is a CRT issue.

    Also, per suggestions in the thread, the problem code was "Removed" and/or "altered". This resulted in a...
  15. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    VladimirF,



    Let me check....no, it's the same code. We be looking at the same thang.



    ???
  16. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    Paul,

    I have now tried the following. In AnyFunction I again replaced the dynamic array with a hard coded array of 1000...



    _TCHAR imagepathname[1000];
    _tcscpy_s(imagepathname, 1000,...
  17. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    VladimirF,

    Thanks for the reply. There were a few typo's in my post. TO correct...



    fread(header, size, filein);


    ....is actually...
  18. Replies
    24
    Views
    2,256

    Re: CRT error message drving me crazy

    Paul,

    Thanks for the help. I tried your following suggestions...

    First I modified my AnyFunction as follows...



    // function.c
  19. Replies
    24
    Views
    2,256

    CRT error message drving me crazy

    First some class code where the problem seems to be....



    // BMPHeader.h

    class BMPHeader
    {
    public:
    unsigned long GetFilesize();
  20. Re: DIfferent Return Values in and out of Debugger...

    Yes. In both cases I am launching from the Visual Studio 6.00 IDE. To run "out of the debugger" I am using Ctrl+F5, to run "in the debugger" I am using F5
  21. DIfferent Return Values in and out of Debugger...

    Something puzzling me on the following snippet of code...



    LONG result = 0;

    result = DocumentProperties(this->m_hWnd, printerhandle, newprinter, devmodeoutbuffer, devmodeoutbuffer,...
  22. Re: Contradictory Error Reporting with GetLastError

    That is one wicked problem! I know that isn't much help, but you got me stumped on that one.
  23. Replies
    15
    Views
    1,267

    Re: [RESOLVED] Preprocessor problem

    Mitch,

    You are certainly welcome. I know that over the years these sharp people at Codeguru haved saved my butt many times and I enjoyed the opportunity to return the favor.

    Skeet
  24. Replies
    15
    Views
    1,267

    Re: Preprocessor problem

    Graham,

    Thanks for posting that! I believe that is exactly the psot that helped me a while back. I didn't implement the abstract second example but I went for the forward declaration in your first...
  25. Replies
    15
    Views
    1,267

    Re: Preprocessor problem

    Mitch,

    THe problem is not classes that referecne other classes, but classes that referecne each other. For example...

    Class A
    {
    void DoSomethingWithThis(Class B bin);
    }

    Class B
Results 1 to 25 of 73
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured