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

Suyash

@Suyash
About
Posts
15
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting the IE cache entry of the image displayed in the IE
    S Suyash

    Hello All, I have an MFC application. In my application I create an instance of IE, and browse to some link, say "www.Adserver.com". After hitting to this link, I always receive an image from the "www.Adserver.com", I will get different image everytime I hit this URL. I need to display this image on one of my dialog in my application, hence I need the handle to URLCacheEntry maintained by window for IE. To get this handle I can use the function GetUrlCacheEntryInfo( IN LPCSTR lpszUrlName,...); however the input parameter to this function "IN LPCSTR lpszUrlName" is something I need to extract from the running instance of IE, which is displaying this image. We can assume that always there will be a single image displayed in IE. Thanks in advance for your replies. Suyash

    C / C++ / MFC c++ com

  • IE control painting issue. - Urgent.
    S Suyash

    Hello, I have a Dialog, where in I show some text and draw some images using DrawText() and Draw(..) functions respectively. Now I need to introduce an IEControl on this dialog. I wish the IE control to behave as if, its the background of my dialog, i.e. when I draw text on my main dialog, some part of the text is present on the main dialog and some part of the text spills over the IE control(this behavior is desired.) however, I wish to show my text in the foreground and the IE control to be on the background. However windows is not providing any APIs for definind Z-Order for a child window and the text out on the dialog. Any pointers in this regard will be highly appreciated. Thanks Suyash

    C / C++ / MFC help

  • How to check if the DLL is Unicode or Ansi?
    S Suyash

    Given a dll, is there any Windows API or any utility, that can determine, if the DLL supports unicode strings or Ansi strings. Thanks! Suyash

    C / C++ / MFC tools json tutorial question

  • Unicode Application with MSLU on Windows ME ????
    S Suyash

    I have unicode application developed on Win XP. I am trying to run it on Window98/ME. I could run the application successfully on Windows 98, by building my application with MSLU libraries. However when I try to run it on Windows ME, its crashing with the error that .exe is crashed in MFC42Lu.dll. We have even tried to build the MSLU libraries and dlls on Win ME OS itself and use the same. However Unicode application will not start. Do we need to do any particular modification in my application to get it run on Win ME? Any Sample unicode application that runs on ME? Any clues in this regard will be highly appreciated. Thanks - Suyash

    C / C++ / MFC help question

  • Intelligent control resizing.
    S Suyash

    Hi Sarath, Thanks, its of great help, in particular http://www.codeproject.com/useritems/SizingDialog.asp, Though it doesn't solve my problem completely, i can re-use it. However I still feel there should be some utility developed particularly for my problem, as its very generic requirement for multilingual application if we do not wish to maintain seperate resource dlls. Anyways, Thanks much. Regards Suyash

    C / C++ / MFC c++ design tools learning

  • Intelligent control resizing.
    S Suyash

    Hello, I have a application UI developed using MFC, however the contents of the controls i.e. strings that needs to be displyed on the various controls(static texts, buttons, lilst boxes etc.) on the dialog boxes are determined at run time. So I need a Intelligent control resizing and positioning utility so that asthetics of the dialog box is maintained when one or the other control is stretched from its statically designed area. This utility is also required for other purpose : I wish to internationalize my application and I do not want to maintain seperate resource DLL for each language supported by my application. Any pointers or clues in this direction will be helpfull. Thanks Suyash

    C / C++ / MFC c++ design tools learning

  • problem with .exp and .lib file generation path.
    S Suyash

    I am doing exactly the same thing as you suggested, however its not working out:(.

    C / C++ / MFC help c++ announcement

  • problem with .exp and .lib file generation path.
    S Suyash

    I have a simple MFC Appwizard exe application. I specify the "Release" directory for intermediate files and output files. However I specify altogether different directory,say "OutPut", for output .exe file. and I want that only .exe file should be be generated in this directory. However I observe that .exp file and .lib file are also generated at the same location as the .exe file. I could not find any option in project settings for specifying the path for .exp and .lib file. This problem doesn't arise if its Appwizard dll. How can one solve this issue. Thanks! Suyash

    C / C++ / MFC help c++ announcement

  • CEdit -> show messages in all languages.
    S Suyash

    Arti, I tried CRichEdit Control. by default it doesn't support unicode. l_pWnd->Create( _T( "RichEdit20W" ), NULL, in_dwStyle, in_rcRect, in_pParentWnd, in_nID ); please note "RichEdit20W" which makes the CRichEditControl unicode enabled, by default its "RichEdit" hope it helps. regards suyash

    C / C++ / MFC question

  • CEdit -> show messages in all languages.
    S Suyash

    I need to enable a a single CEdit control to show messages from all the languages english, chinese, german, hindi etc, in other terms I wish to make edit control unicode enabled. 1. I create a unicode text(.txt) file, and enter characters from German language like "ÖÄß" etc, and few characters from hindi language "सवबहठ". 2. I read this file using CStdio class, and try to print these characters in my edit control, however i find that string shown on the edit control is "ÖÄß?????". What am I missing ? what could be done to make it work correctly. Do I need to find a font which supports all the languages in the world and assign this font to my edit control ? Thanks in advance! Regards Suyash

    C / C++ / MFC question

  • How to restrict edit control to accept only english language characters
    S Suyash

    DavidCrow wrote:

    Is that useful? Wouldn't that be irritating to the Chinese user?

    Hello All, Thanks for your replies and suggestion to the given problem, I would try to apply ES_NOIME solution as suggested. Regarding this requirement, actually we do have a poker table client, wherein various players from various contries(usa, china etc. etc.) will be able to play on the same table. Each player may have his/her own different language version of our software. However we also provide a chat facility, its all lobby chat, and personal chat is allowed. and its possible that 2 chinese player, if allowed to chat in chinese language(which other players may not know), can collude and cheat other players, so thats the reason we wish to restrict the chat input window to support only the english characters. Though we understand that there is no way to prohibit languages that uses english character set, like german. Thanks again! Regards Suyash

    C / C++ / MFC tutorial question

  • How to restrict edit control to accept only english language characters
    S Suyash

    Do we have any way to restrict the edit control to only support accepting english characters/numbers?. If we make a simple edit control i.e. non-rich edit control, is it dependent on the target system and the keyboard settings that edit control accepts the character, for eg. if we create a simple edit control, and run our application on chinese system, would the user be able to type in chinese characters in to this control, if yes, is there any way to force the user to enter the text only in english language irrespective of his system language. Thanks for you responses in advance! Regards Suyash

    C / C++ / MFC tutorial question

  • Overriding Functions with variable argument list.
    S Suyash

    I had a understanding that overriding the the function with variable argument list will result in to ambiguity. However when i tried to compile and run following code on VC++ 6.0, its working as expected : ///////////////////////////////////// void Func1( int i, ... ) //Lets refer it as Func1VariableArg { // do something. } void Func1( int i, int j) //Lets refer it as Func1FixedArg { // Do something. } class A { }; int main(int argc, char* argv[]) { Func1(1, 1); // Func1FixedArg is called as expected. Func1(1, "1"); // Func1VariableArg is called as expected. A a; Func1(1, a); // Func1VariableArg is called as expected. // This is the spoil spot Func1(1, 1.0)// here we would expect Func1VariableArg to //be called as second argument is double, however compiler // implicitely typecasts it to int and calls the Func1FixedArg. // however a warning for the same is issued at complie time. return 0; } ///////////////////////////////////// Some one has any comments about this practice. Do we have any issues in this practice ?, any comments from C++ language specifications on this. Thanks - Suyash

    C / C++ / MFC c++ question

  • Newline "\n" - how to store and retrive on a single line in text file.
    S Suyash

    Thanks for your suggestion Michael. As you suggested I am currently doing it as - str.Replace(CString("\\n"),CString("\n")); simillarly for \", \a,\b etc etc. Shouldn't there be any generic way to handle all the escape sequences? - Suyash

    IT & Infrastructure database help tutorial

  • Newline "\n" - how to store and retrive on a single line in text file.
    S Suyash

    Hello, Let me briefly explain the scenario before putting up my query. For internationalization purposes, we store all our strings in a text file. for some reasons we dont use the string tables. and a single string may contain one or more "\n". When I try to load a string form the text file in to CString variable, its not recognizing "\n" specified in the text file as newline character but as if "\\n" is specified. I hope the issue is clear. Your comments in this regard would be highly appreciated. Thanks in advance! Suyash

    IT & Infrastructure database 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