Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Sarath C

@Sarath C
About
Posts
1.4k
Topics
226
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • why cannot find code map in vistual studio2012 update2?
    S Sarath C

    What happens when you press Ctrl+` ? Aren't you able to see it in any of the menu/right click on any function?

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C / C++ / MFC question announcement

  • the big-ending and little-ending
    S Sarath C

    If you want your program to be portable, then any time you send an integer greater than 1 byte in size over the network, you must first convert it to network byte order using htons or htonl, and the receiving computer must convert it to host byte order using ntohs or ntohl. If you're sending computer may be an Intel x86, and the receiving may be a Sun SPARC, and then your program will fail if you don't use htons.

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C / C++ / MFC sysadmin question data-structures help learning

  • problem with sprintf_s() on win 7
    S Sarath C

    First thing is that, trust the implementation made by Microsoft. This is a very primitive function and you will have to read the documentation first. Second you can your strcpy_s or strcat_s (if you're concatenating). sprint_s is not really a choice string copy. Third your strings must be null terminated. To understand this better, I am illustrating this with a code example

    char buffer\[12\]= {0};
    int offset =3;
    char Buffer\[50\] = "Hello World";
    sprintf\_s(buffer,sizeof(buffer),  "%s", Buffer);
    

    in the above example buffer has 12 character in legnth and Hello World String contains 11 characters + null terminated. Anything less than 12 character size will raise assertion buffer too small. for sprintf_s only the number of characters being copied only matters. not really the original size of the buffers.

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C / C++ / MFC c++ csharp visual-studio debugging help

  • Lock a file
    S Sarath C

    Don't you read the file if the access is denied to delete it? Otherwise, simply try to delete the file using DeleteFile. It will give you ERROR_ACCESSDENIED return code if it fails. Alternatively you can check the File Security information Check Here[^]

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C / C++ / MFC csharp c++

  • Very happy with C++11
    S Sarath C

    This might help in lot of cases, but I really wonder if C++ 11 can reduce the pain of memory mangement. In my experience, auto variables are hardly I needed for my development. but really got tired of several gotchas and memory corruption and management with C++

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C / C++ / MFC c++ learning

  • Lock a file
    S Sarath C

    Don't you read the file if the access is denied to delete it? Otherwise, simply try to delete the file using DeleteFile. It will give you ERROR_ACCESSDENIED return code if it fails. Alternatively you can check the File Security information Check Here[^]

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C / C++ / MFC csharp c++

  • Genereate XML file from sql in C#
    S Sarath C

    It seems you want to XSD from your table. If that's your question, this[^] might help

    -Sarath.

    My blog - iSpeak code

    Rate the answers and close your posts if it's answered

    C# database xml csharp question

  • Customize CFileDialog?
    S Sarath C

    This [^] might help. Also just search in Codeproject you can find many!

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    C / C++ / MFC tutorial question

  • Retina revolution
    S Sarath C

    At least till this thing becomes popular, it gonna be a pain in the ass. Apple is a great example to invest right in the technology. They made their platform to work well with different resolutions and resources. This also leads to different issues. The apps are packed as a single per platform (iOS Unified, iOS (iPhone), iOS (iPad)) To work with different versions of devices, the developer has to pack the high resolution images along with the same app. I have an old iPhone which has non-retina display. I have an iPhone 4S with retina display. The size of app is same for both devices. In effect, I have to spend my precious storage (which is comparatively low) for the unused resources. It's true that this is irreversible the pain has to sorted out well. Also the devices are sky-high expensive. We need to wait till it's get affordable for the common people.

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    The Insider News ios csharp graphics design

  • Read Emails
    S Sarath C

    I think a simple Google search can clarify your questions. It depends on the Email provider or server configuration to access the emails. Most of the email services provides POP3/SMTP access to the user accounts. This standard is quite old and mostly meant for old mail clients. IMAP is a modern protocol to access emails and it too has several different versions. Google Mail supports POP and IMAP. On the other hand most of the corporate Emails runs Microsoft Exchange server and can be access with POP and Exchanges protocol. MAPI is a properetiery API from Microsoft to access the Exchange Server and other mail protocols.

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    C# question csharp help

  • Tool to fragment memory
    S Sarath C

    I have a situation where some of the bugs pops up when there's a congestion in the contgious memory blocks available in the physical memory. Is there any tools to simulate this kind of situation?

    -Sarath.

    My blog - iSpeak Code

    Rate the answers and close your posts if it's answered

    Free Tools tools performance question

  • Writing multiple files simultaneously inside the loop
    S Sarath C

    Can this[^] and this[^] help you?

    -Sarath.

    My blog - codereflect.com

    Rate the answers and close your posts if it's answered

    C / C++ / MFC help tutorial

  • Porting MFC Application [modified]
    S Sarath C

    There's an excellent article in IBM website [^] to port MFC Applications to Linux using wxWidgets[^]

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    C / C++ / MFC c++ com adobe linux question

  • VC6 in a 64 bit OS
    S Sarath C

    Windows 7-64 bit is famous for it's backward compatibility for most of the 32 bit programs. You can choose the compatibility options under the program properties. In most of the cases, it should work fine. Why don't you consider upgrading to the latest version because the product isn't supported anymore. You're forced for an upgrade by Microsoft. One day or other, you will have to take all the pain to port the code.

    -Sarath.

    My blog - Reflections of My Thoughts

    Rate the answers and close your posts if it's answered

    The Lounge question

  • how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ?
    S Sarath C

    Your questions is not really clear. You can see the mouse state Using GetKeyState function. You can know the mouse position using GetCursorPos Check if this helps?[^]

    C / C++ / MFC tutorial question

  • Debugging application minidump using windbg
    S Sarath C

    See if your PDBs, Source file and image (exe) matches. I am not sure SOS DLL can help you with Postmortem debugging. But have a look at it[^]

    -Sarath.

    My blog - Reflections of my thoughts

    Rate the answers and close your posts if it's answered

    C / C++ / MFC c++ dotnet debugging question

  • How to Load Tiff File using LoadImage?
    S Sarath C

    See CxImage's CxImageTIF[^] class.

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    C / C++ / MFC question graphics tutorial

  • Problem with Modeless dialogs
    S Sarath C

    Why you can't send WM_CLOSE message to the other dialog before recreating it? BTW, why it's necessary to have CDialog->CModelessDialog>CXXXDailog/CYYYDialog?

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    C / C++ / MFC help

  • How Secure is Mac OS X ?
    S Sarath C

    Recently all we heard about Google Switching over Windows to Mac OS X[^] in view Chinese security attack of late. The question is, how secure is Mac OS X when comparing Windows or are they making use of this situation against Microsoft? What do you think?

    -Sarath.

    My blog - Reflections of my thoughts...

    Rate the answers and close your posts if it's answered

    The Lounge question discussion com security

  • strcmp for Last five characters
    S Sarath C

    CString::ReverseFind[^] or if you're too much into C++, string::rfind or wstring::rfind can be used. I suggest you to use the CString version. You can find lot of string parsing functions in CString class. To find whether a monitor is a primary or secondary, you can use dwFlags parameter in the MONITORINFO structure [^]

    -Sarath.

    My blog - Sharing My Thoughts

    Rate the answers and close your posts if it's answered

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups