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

Search:

Type: Posts; User: sunil_cguru

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: error C2022: too big for character

    Normally backslash is used as an escape character in a string so when you actually need a backslash in your string you need to use double backslashes which gets interpreted as '\'
  2. Re: error C2022: too big for character

    use double slash '\\' instead of single like ""c:\\DOCUME~1\\AMAL..."
  3. Replies
    5
    Views
    918

    Re: Problem in Reading File.

    Did you open the file in binary mode?
  4. Replies
    4
    Views
    1,410

    Re: Simple String manipulation problem

    The problem is that here if(word[i] == letter) you are comparing a char to a string.
    Since you need just a letter you could change string letter; to char letter; and it should work.
  5. Re: Please help me with Borland compiler in Visual C++ Express Edition

    Difficult to say unless you show us the code and what you are trying to do
  6. Re: Please help me with Borland compiler in Visual C++ Express Edition

    IDE is the environment that you use to write and debug your programs which is Visual C++ express edition in your case and Visual C++ express edition comes bundled with a C++ compiler as cilu pointed...
  7. Replies
    21
    Views
    2,493

    Re: Validate a path/file

    You can check a paths existence using the following API 'PathFileExists'
  8. Replies
    1
    Views
    503

    Re: Syntax Error that I can't find

    It has to do with your
    do{ missing a closing while statement.
  9. Replies
    4
    Views
    880

    Re: Simple Program help

    You declared gamount as a double but did not assign any value to it and then you proceed to multiply it with some value which would give undefined results. So you need to initialize gamount with some...
  10. Replies
    29
    Views
    16,970

    Re: how to change the color of a button?

    You will have to override WM_CTLCOLOR for your button class
  11. Re: how to lauch application when windows start

    One way would be to add your applications path to the registry in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\.
    This would launch your app on startup.
  12. Replies
    11
    Views
    3,411

    Re: DoModal failed

    You might have to switch the module state.
    Try doing this AFX_MANAGE_STATE(AfxGetStaticModuleState( )); in your exported Dll function.
  13. Replies
    2
    Views
    3,554

    Re: Visual c++: Directory check

    Try with 'PathIsNetworkPath()' API
  14. Replies
    1
    Views
    7,268

    Re: Kill a thread started by AfxBeginThread

    To kill the thread get the thread handle m_hThread from myThread and call TerminateThread on the handle. Be warned though that terminating threads in this fashion is not recommended, the proper way...
  15. Replies
    6
    Views
    957

    Re: Context information of scanning

    You could store your history data in the registry and read it on reboot to know which was the last file/folder scanned.
  16. Replies
    10
    Views
    1,357

    Re: need some help. more details inside.

    Check out how to use a do-while loop in C++.
  17. Replies
    2
    Views
    730

    Re: C++ editor STEP INTO

    AFAIK you can't undo the execution of a line but you can step back one or few lines as per your requirement using the 'Set Next Statement' option during debug.
  18. Replies
    11
    Views
    13,584

    Re: CString Find Function

    Why dont you search for "testing " since every word would have a space at the end
  19. Replies
    11
    Views
    13,584

    Re: CString Find Function

    Did you try CString::Find function?
  20. Replies
    4
    Views
    1,092

    Re: How to append int to char?

    or you can use stl string and stringstream

    stringstream ss;
    ss<< myNumber <<count;
    string out = ss.str ();// appended output
  21. Re: LINK error: LNK2001: unresolved external symbol

    Perhaps it has to do with some calling conventions mismatch since you are using this in a C file but the linker output seems to indicate some different calling convention leading to mangling of the...
  22. Replies
    4
    Views
    711

    Re: how to fix this error!

    put this as the first line in matrix.h
    #pragma once
  23. Replies
    4
    Views
    711

    Re: how to fix this error!

    try...

    //main.cpp
    #include "matrix.h"
  24. Replies
    12
    Views
    4,336

    Re: increase the width of cbutton

    Check the spelling please..it should be SWP_NOZORDER
  25. Replies
    12
    Views
    4,336

    Re: increase the width of cbutton

    It should be
    CFont *pOldFont = pDC->SelectObject(pFont);
Results 1 to 25 of 134
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured