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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

T RATHA KRISHNAN

@T RATHA KRISHNAN
About
Posts
380
Topics
156
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to Clear this Error
    T T RATHA KRISHNAN

    Try to include this

    at the top(before any other headers.

    C / C++ / MFC help tutorial

  • Retrieving GUID from installation
    T T RATHA KRISHNAN

    Hi! I've created InnoSetup output files for a VB application a long time ago. I lost the script files(.iss files). But I've the output files(Setup files). Is it possible to install the setup and retrieve the GUID(AppId) from the installation? How?

    Visual Basic tools question workspace

  • what is the maximum combination for generate random string of given length?
    T T RATHA KRISHNAN

    If order is important you have to use "Permutation". Otherwise you have to use "Combination". You have to select 4 characters out of the 36 characters. 36c4 is what you need. 36!/32!*4! is the way to calculate if my memory is good.

    C / C++ / MFC question data-structures help lounge

  • How to communicate with server in vc++?
    T T RATHA KRISHNAN

    Le@rner wrote:

    can i use POST method for this operation and function?

    I didn't fully understand your question. You can call open() function with "POST" as first parameter and the url or IP address of ur server as second parameter. Please go through the link I've given. It contains code that can be used as such if you are working with a VC++/MFC or a Win32 project.

    C / C++ / MFC question c++ sysadmin help tutorial

  • How to communicate with server in vc++?
    T T RATHA KRISHNAN

    Hi! It depends on how you want to send the info to your server(whether it's in XML format or some other format). If it's XML use IXMLHTTPRequestPtr::open() to connect with the server and IXMLHTTPRequestPtr::send() to send ur XML content to the server. IXMLHTTPRequestPtr::responseText; to get the response from server. Some body has already posted the whole code for this at the XML/XSL forum. See the reply of pix_programmer.Link below: http://www.codeproject.com/Messages/427887/Failed-to-CreateInstance-while-using-IXMLHttpReque.aspx[^]

    C / C++ / MFC question c++ sysadmin help tutorial

  • Localization and form size [modified]
    T T RATHA KRISHNAN

    Hi! Thanks for the reply. Setting the font is not enough to display Chinese Text over Title Bar of the form(Caption of the Form). Every language Text is displayed properly else where except the Caption of the Form. What to do to dispaly Chinese Text over the caption of the form?

    Windows Forms graphics help question

  • Localization and form size [modified]
    T T RATHA KRISHNAN

    Hi! I've localized my application to languages like English_US,Chinese_Simplified,Chinese_Traditional,Thai,Greek,Spanish,Japanese. I've added these languages to a list box. I've get currently selected from the list and uses it to get the culture info. I've also set different font's for the form according to the list selection(Why because languages like Chines,Japanese and Korean were not displayed with out the corresponding font). Here's the code:

    switch(listIndex)
    {
    case 0:
    cultureCode = "en-US"; //Culture code for English US
    this->Font = System::Drawing::Font(L"Microsoft Sans Serif",8);
    break;
    case 1:
    cultureCode = "zh-CN"; //Culture code for Chinese_Simplified
    this->Font = System::Drawing::Font(L"Simsun",8);
    break;
    case 2:
    cultureCode = "fr-FR" //Culture code for French
    this->Font = System::Drawing::Font(L"Verdana",8);
    break;
    default:
    }
    System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("cultureCode");
    System.Threading.Thread.CurrentThread.CurrentCulture = ci;
    System.Threading.Thread.CurrentThread.CurrentUICulture = ci;

    My problem is: (i) size of my form shrinks when I select any language other than English. This doesn't happen always. If I set the font through code as above, the size of the form shrinks. If I didn't set the font through code, Chinese,Japanese and Korean languages can't be displayed. What to do to display these languages as well as to keep the form size constant? (ii) Which font is required to display Korean language?

    modified on Thursday, March 31, 2011 1:19 PM

    Windows Forms graphics help question

  • Displaying Chinese Characters
    T T RATHA KRISHNAN

    Hi! I've set the Text to my label from an XML file. I need to set a chinese word to a label. Here is my XML file contents:

    <?xml version="1.0" encoding="UTF-8" ?>
    <Remember>游戏目的是使两手牌的点数越比庄家接近</Remember>

    The chinese word is for test purpose only(may not be meaningful word). Here is my code for reading this tag and setting the text to a label.

    		 XmlDocument ^ Config = gcnew XmlDocument;
    	
    		 if(System::IO::File::Exists("Config.xml"))
    		 {
    			 Config->Load("Config.xml");
    		 }
    		 XPathNavigator ^ nav = Config->CreateNavigator();
    		 XPathNodeIterator ^ iter;
                         iter = nav->Select("download/Remember");
    		 while(iter->MoveNext())
    		 {
    			 System::String ^ ConfigText = iter->Current->Value;
    			 ConfigText->Trim();
    		 }
    		 System::Runtime::InteropServices::Marshal::StringToHGlobalUni(ConfigText);
    		 m\_pRemember->Text = ConfigText;
    

    While I execute the program only boxes are displayed in place of the chinese characters. If I open the XML file in a browser, the chinese characters are displayed. What else to do to display the chinese language?

    Managed C++/CLI xml question announcement

  • Equivqlent of MSXML.XMLHTTPRequest
    T T RATHA KRISHNAN

    Hi! I used the following code. It only prints "OK". But I want to send an XML text to the server and also downlod from the server. This is the code: WebRequest^ request = WebRequest::Create( "https://live.play368.com/cgibin/EClientIntegration" ); request->Credentials = CredentialCache::DefaultCredentials; HttpWebResponse^ response = dynamic_cast<HttpWebResponse^>(request->GetResponse()); Console::WriteLine( response->StatusDescription ); System::String^ Dsc = response->StatusDescription; Stream^ dataStream = response->GetResponseStream(); StreamReader^ reader = gcnew StreamReader( dataStream ); String^ responseFromServer = reader->ReadToEnd(); Console::WriteLine( responseFromServer ); reader->Close(); dataStream->Close(); response->Close(); What else need to be done to send XML text to the server and download from server?

    Managed C++/CLI c++ sysadmin xml tutorial question

  • Equivqlent of MSXML.XMLHTTPRequest
    T T RATHA KRISHNAN

    Hi! Is there an equivalent for MSXML.XMLHTTPRequest(VB) in C++/CLI? I've to send an XML Text to a server. How to do this using C++/CLI?

    Managed C++/CLI c++ sysadmin xml tutorial question

  • Reading an XML file
    T T RATHA KRISHNAN

    Hi! My XML file contains the following:

    I've to read from the program(C++/CLI), the value of the tag <Updated_date> which is inside the tag <Updateexe>. How to do this in C++/CLI?

    Managed C++/CLI c++ xml tutorial question

  • Spliting a String in C++/CLI
    T T RATHA KRISHNAN

    Hi! I used the following code to get a line from the file(and then I will split it into parts).

    System::IO::StreamReader reader("test.ini", System::IO::FileMode::Open);
    System::String^ line = reader.ReadLine();
    

    But I got the following error: error C2664: 'System::IO::StreamReader::StreamReader(System::IO::Stream ^,bool)' : cannot convert parameter 1 from 'const char [17]' to 'System::IO::Stream ^' Reason: cannot convert from 'const char *' to 'System::IO::Stream ^' No user-defined-conversion operator available, or Cannot convert an unmanaged type to a managed type How to get rid of this error?

    Managed C++/CLI c++ tutorial question

  • Spliting a String in C++/CLI
    T T RATHA KRISHNAN

    Hi! I've a file called test.ini. The contents of this file is: PreviousCheck =true LID =ratha PWD =rtrrules I've to read the file and assign each value after the equal(=) sign to three System::String^ variables. I don't want the text preceding the equal sign(i.e PreviousCheck =,LID = and PWD = all I don't want). How to do this in C++/CLI?

    Managed C++/CLI c++ tutorial question

  • Multi Language Support
    T T RATHA KRISHNAN

    Hi! Is it possible to MultiLanguage Support Facility(e.g English,Chinese and Korean) with VC++? Can any body point me the direction

    C / C++ / MFC c++ question

  • Checking Internet Connection
    T T RATHA KRISHNAN

    After I included "windows.h", all the errors vanished. Thanks alot.

    C / C++ / MFC c++ tutorial question

  • Checking Internet Connection
    T T RATHA KRISHNAN

    Member 3922639 wrote:

    #include #pragma comment(lib,"Wininet.lib")

    If I include the above code, I got 283 errors, all in the Wininet.h file(Syntax errors, missing type specifier errors and error C2378: 'HINTERNET' : redefinition; symbol cannot be overloaded with a typedef). Where shall I get the Wininet.h file? Do I have to Download and install Windows SDK to solve all these errors?

    C / C++ / MFC c++ tutorial question

  • Checking Internet Connection
    T T RATHA KRISHNAN

    Hi! It's told that minimum supported client and server as Windows 2000 Professional and Windows 2000 Server. Will it work with Windows XP? Do I have to download the following to my Solution path? Wininet.h Wininet.lib Wininet.dll

    C / C++ / MFC c++ tutorial question

  • Checking Internet Connection
    T T RATHA KRISHNAN

    Hi! Thanks for your reply. I used the following code and get these two errors:

    bool connectionStatus = InternetGetConnectedState(INTERNET_CONNECTION_OFFLINE,0);

    Errors: d:\downloadversion\downloadversion\Form1.h(31) : error C2065: 'INTERNET_CONNECTION_OFFLINE' : undeclared identifier d:\downloadversion\downloadversion\Form1.h(31) : error C3861: 'InternetGetConnectedState': identifier not found I'm using Windows Forms.

    C / C++ / MFC c++ tutorial question

  • Checking Internet Connection
    T T RATHA KRISHNAN

    Hi! I've to check whether my System is connected to the net. How to check the Internet connectivity with VC++? I'm using Windows XP.

    C / C++ / MFC c++ tutorial question

  • Array of images
    T T RATHA KRISHNAN

    Hi! I've ten images. I've stored them in an array. For evey 6 seconds I've to load each image. i.e initially, I've to load the first image. After 6 seconds, I've to load the second image. After 12 seconds, I've to load the third image etc. How to do this?

    C / C++ / MFC data-structures tutorial 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