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

Search:

Type: Posts; User: wayside

Page 1 of 16 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    758

    1) initialize your character array 2) Test the...

    1) initialize your character array
    2) Test the value of the file handle returned by fopen
    3) Test the value returned by fscanf



    char idNum[30] = { 0 };

    FILE * fin = fopen("data.txt","r");
  2. Thread: DLL Viewing

    by wayside
    Replies
    5
    Views
    592

    I never used a disassembler so I can't recommend...

    I never used a disassembler so I can't recommend one, google around I'm sure you'll find one.

    I never heard of any tool which can convert assembly back into c or c++, I don't think it is possible.
  3. Thread: DLL Viewing

    by wayside
    Replies
    5
    Views
    592

    You can use the Dependancy Checker to view the...

    You can use the Dependancy Checker to view the imports and exports, and see what other dll's it is dependant on. This tool (depends.exe) is widely available from Microsoft, just search for it.
    ...
  4. If the elements are sorted in descending order,...

    If the elements are sorted in descending order, the first array element will contain the max, so just return it:



    int arrange()
    {
    int Max=10;
    for(pass=1;pass<=Max-1;pass++)
    ...
  5. There's a PE viewer posted on this very site: ...

    There's a PE viewer posted on this very site:

    http://www.codeguru.com/Cpp/misc/misc/article.php/c315/

    "ha, i'm just doing it, and i understand what you mean~ thank you for your wish"

    BTW -...
  6. Replies
    2
    Views
    311

    Check out the NetServerGetInfo() function, there...

    Check out the NetServerGetInfo() function, there should be flags in there that will give you the info you need.

    From MSDN:



    #ifndef UNICODE
    #define UNICODE
    #endif
  7. "The application failed to initialize properly...

    "The application failed to initialize properly (0xc0000005)."

    This means the program is crashing with an access violation sometime during the run-up of the exe, before the exe's code actually...
  8. If you enable function-level linking, any...

    If you enable function-level linking, any functions that aren't used will not be included in the final exe, so you don't have to worry about a bloated exe.

    You can generate a map file by setting...
  9. Replies
    1
    Views
    12,334

    There are many places online you can find MIBs...

    There are many places online you can find MIBs such as

    http://www.oidview.com/mibs/detail.html

    and

    http://www.mibdepot.com
  10. Only way I see is to aggregate the third party...

    Only way I see is to aggregate the third party object and expose the functions of the third party object via functions in your object.

    Then you can dynamically load the third party dll and use...
  11. Replies
    2
    Views
    532

    If you want to speed up multiplications, one way...

    If you want to speed up multiplications, one way is to use the specialized instructions (SSE) for doing parallel multiplies.

    Check out this thread, which has some good pointers on SSE.
    ...
  12. Replies
    6
    Views
    687

    This is what I thought. In the case of the OP, it...

    This is what I thought. In the case of the OP, it seems that he is building both the exe and the dll, so I would have assumed things would be in alignment. Bad assumption I guess.



    This would...
  13. Replies
    6
    Views
    687

    Can someone explain why this is so? I...

    Can someone explain why this is so?

    I understand that it is good practice, and all, but I don't understand why it doesn't work.
  14. Replies
    9
    Views
    775

    The IsAppRunning() function that vrishchik007...

    The IsAppRunning() function that vrishchik007 wrote contains no MFC code, so you could just incorporate it directly; just define it as a regular function rather than a member of a class, or move it...
  15. Thread: String Copy

    by wayside
    Replies
    9
    Views
    653

    I know the OP's original code didn't work because...

    I know the OP's original code didn't work because he didn't specify a character of zero, but rather a NULL.

    I just thought I would point out that there is a form of the constructor that will work...
  16. Replies
    2
    Views
    1,895

    PostQuitMessage() posts a WM_QUIT message to the...

    PostQuitMessage() posts a WM_QUIT message to the thread, which causes GetMessage() to return with a zero.

    In an MFC app, this causes the event loop in CWinApp::Run() (actually the guts are in...
  17. Use WM_COPYDATA and the COPYDATASTRUCT structure...

    Use WM_COPYDATA and the COPYDATASTRUCT structure to do this.

    Here's sample code form MSDN:



    // ************ Globals ************
    //
    #define MYDISPLAY 1
    typedef struct tagMYREC
  18. Replies
    2
    Views
    404

    The prototype for qsort is void qsort( ...

    The prototype for qsort is



    void qsort(
    void *base,
    size_t num,
    size_t width,
    int (__cdecl *compare )(const void *, const void *)
    );
  19. What you are talking about is called a "shell...

    What you are talking about is called a "shell namespace extension".

    It mostly involves implementing the IShellFolder interface for whatever you want to show.

    If you go to msdn.microsoft.com and...
  20. Thread: Help needed

    by wayside
    Replies
    8
    Views
    633

    If the "dictionary" is just a list of words, the...

    If the "dictionary" is just a list of words, the words themselves are not copyright-protected.

    The application that the words are in is copyrighted (copywritten?)
  21. Should be OFN_FILEMUSTEXIST , szFilters

    Should be OFN_FILEMUSTEXIST , szFilters
  22. It's easier than you think if you are using MFC:...

    It's easier than you think if you are using MFC:



    CFileDialog fileDlg(TRUE, L"txt", L"foo.txt");
    // Display the file dialog. When user clicks OK, fileDlg.DoModal()
    // returns IDOK.
    ...
  23. Replies
    7
    Views
    515

    You could also use SetDlgCtrlID() and swap the...

    You could also use SetDlgCtrlID() and swap the control id's. Combine this with swapping the button text, it might be easier that moving everything around. Plus, this method should preserve the tab...
  24. Replies
    21
    Views
    1,640

    Hehe, I agree with you, but my company's coding...

    Hehe, I agree with you, but my company's coding standards specify this bracket style, so I've gotten used to it.
  25. Replies
    3
    Views
    1,052

    This is incorrect. Since the return type of the...

    This is incorrect. Since the return type of the function is CString, the compiler is trying to convert buf to a CString. If it succeeds, it copies the buffer.

    Apparently the 5.0 version of CString...
Results 1 to 25 of 395
Page 1 of 16 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center