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
V

Vineet Kumar

@Vineet Kumar
About
Posts
8
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • problem with CryptStringToBinary.
    V Vineet Kumar

    Hi, I am getting a string from the server , and doing following operation to get the BYTE format of that string key; This variable contains the value, which I received from server. BYTE key1[24] = {0}; DWORD dwBase64Size; CryptStringToBinary(key,0,CRYPT_STRING_BASE64,0,&dwBase64Size,0,0); if (dwBase64Size>24) return ""; CryptStringToBinary(key,0,CRYPT_STRING_BASE64,key1,&dwBase64Size,0,0); This function is working fine for WINXP, but fails on Win2K, as it does not allow the dll to get registered. In the same way the prolem is with CryptBinaryToString also. can you suggest a alternate of this code, which works on WIN2K. Thanks

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    C / C++ / MFC sysadmin help

  • Unicode conversion problem(slovak characters)
    V Vineet Kumar

    Hi, I am writing an application, which required unicode conversion, but I am facing some problem with SLOVAK characters. For example, I face the problem for character ď , whose value is ď for conversion, I did the following: string strNum = "271"; wchar_t lpszUcode[1]; lpszUcode[0] = atoi(strNum.c_str()); int nCodePage = 1252; int iBuffLen = WideCharToMultiByte(nCodePage, NULL, lpszUcode, 1, NULL, 0, NULL, NULL); char* buffer = new char[iBuffLen + 1]; WideCharToMultiByte(nCodePage, NULL, lpszUcode, 1, buffer, iBuffLen, NULL, NULL); buffer[iBuffLen] = 0; string strRes = buffer; It returns with the value d rather than ď . can somene pl. sugeeset the solution for this. Regards Tough Time Never last, but Tough People do.

    C / C++ / MFC help tutorial

  • Keys in a map
    V Vineet Kumar

    Can a Key in a map contain the combination of two variables? Tough Time Never last, but Tough People do.

    ATL / WTL / STL question

  • Displaying PNG File properly
    V Vineet Kumar

    here I mean that the images are distorted.if i open it with "Windows Picture and Fax Viewer" it shows distorted. if I open it on a web control /ACDsee, it opens perfectly fine. I am displaying at 2 locations.. at the lacation where web control is opening it, it works fine.., while for the second control, which is a static image control,is displaying it distorted. Regs

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    C / C++ / MFC json help tutorial

  • Displaying PNG File properly
    V Vineet Kumar

    Hi, I have some PNG files, which are not displaying properly in my application control, while they are opening perfectly fine in the browser. some of the files , which is creating problem have the foll. info.. Bit depth - 24 Width - 96 pixels Height - 96 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi some files, which are opening properly have the foll. info.. Bit depth - 24 Width - 48 pixels Height - 48 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi i tried to use the libpng, to convert the files, in to the dimension , which is converting properly..but could not found the solution. Can u pl. suggest something.. how to display them properly or what API should I use for the conversion. Thanks.

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    C / C++ / MFC json help tutorial

  • Converting a UTF-8 Character in to its euuavalant Unicode Number
    V Vineet Kumar

    Hi, I need to convert a UTF8 string to its equavalant unicode number. For ex. for character ứ its unicode no. is 7913. Can anybody suggest How to do that. Regs Vinet

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    C / C++ / MFC tutorial

  • Unicode Conversion
    V Vineet Kumar

    Hi, I tried with that , but could not found the desired result. In fact the stepa which I followed are as: 1. First I got the characters in the rtf string for a character(say chinese) I typed. ex:\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fmodern\\fprq6\\fcharset134 SimSun;}}{\\colortbl ;\\red0\\green0\\blue0;}\\viewkind4\\uc1\\pard\\cf1\\lang5124\\f0\\fs20\\'cc\\'d8\\par}" This is for the character 特 2.Now I convert the character values in to equavalant unicode number, which I got for this is 29305. 3.Now I want to convert this unicode number in to equavalant UTF-8 character. Can u suggest something with this scenerio . Regs

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    C / C++ / MFC help tutorial

  • Unicode Conversion
    V Vineet Kumar

    Hi, I am working on Unicode conversion and getting a problem to convert a character in to UTF-8 format. can anybody suggest that how to do this conversion. Regs Vineet

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    C / C++ / MFC help tutorial
  • Login

  • Don't have an account? Register

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