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
P

Priya_Sundar

@Priya_Sundar
About
Posts
87
Topics
32
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Different outputs in vc6 & vs2008 with same code(typecasting). Help
    P Priya_Sundar

    Is there any similar solution as for c# - http://wkfry.spaces.live.com/blog/cns!BF2CFFE0D35B3B70!233.entry[^]

    Priya Sundar

    C / C++ / MFC help tutorial question

  • Different outputs in vc6 & vs2008 with same code(typecasting). Help
    P Priya_Sundar

    []https://connect.microsoft.com/VisualStudio/feedback/details/98977/rtcc-fails-to-catch-overflows-in-double-integer-conversions?wa=wsignin1.0#tabs[^]

    Priya Sundar

    C / C++ / MFC help tutorial question

  • Different outputs in vc6 & vs2008 with same code(typecasting). Help
    P Priya_Sundar

    Basically I have huge old code with the way vc6 works. We then migrated it to vs2008. So the same old code seems to produce different results. So we are looking for some solution.

    Priya Sundar

    C / C++ / MFC help tutorial question

  • Different outputs in vc6 & vs2008 with same code(typecasting). Help
    P Priya_Sundar

    Hi, Below is the code for which i get different outputs when compiled in vc6 and vs2008. Why is it happening? Any comments will be helpful.

    double x2 = 4294967036;
    
    int i = 0;
    
    i=(int)x2;
    
    CString str;
    
    str.Format(\_T("%d == %d"),i,INT\_MAX);
    
    AfxMessageBox(str); 
    

    Output in vc6: -260 == 2147483647 Output in VS2008: -2147483648 == 2147483647 I can see that as the value is greater than max limit, its trying to display the max value. But I guess the typecasting is not exactly working in VS2008. How to make the typecasting work?

    Priya Sundar

    C / C++ / MFC help tutorial question

  • [RESOLVED]using enum in #if preprocessor directive [modified]
    P Priya_Sundar

    Thanks All... by defining it as 0 and 1 its resolved.

    Priya Sundar

    C / C++ / MFC help

  • [RESOLVED]using enum in #if preprocessor directive [modified]
    P Priya_Sundar

    Hi, Based on the value 'SELECTED' I am trying to do some statements. The following code doesnt work for the two values of 'SELECTED'.

    typedef enum{
    APPLE =0,
    ORANGE =1
    }FRUITS;

    #define SELECTED APPLE

    #if SELECTED == 1
    AfxMessageBox("orange");
    #else
    AfxMessageBox("apple");
    #endif

    Kindly help.

    Priya Sundar

    modified on Tuesday, May 19, 2009 6:04 AM

    C / C++ / MFC help

  • Having a generic function GetProcAddress for both unicode and ascii builds - fails in release mode
    P Priya_Sundar

    Hi, Still it is not working after using T2A(). And fyi I am compiling my application(vc6) in UNICODE! Could you please show me your function call? The below is my function call:

    CString CompletePathOfDll ="E:\\sample.dll";
    HINSTANCE DllHandle = LoadLibrary(CompletePathOfDll);//loads the dll successfully

    if (DllHandle != NULL)
    {
    int IsCorrectDll=(int)GetProcAddress1(DllHandle ,TEXT("Get_Data_Function"));
    if(IsCorrectDll>0)
    {
    //do something
    }
    }

    Thanks.

    Priya Sundar

    C / C++ / MFC c++ help com hardware debugging

  • Having a generic function GetProcAddress for both unicode and ascii builds - fails in release mode
    P Priya_Sundar

    Hi All, I am having a common code snippet to be compiled in VC6 and in Embedded vc++(CE). Right now i am working with vc6 part.

    void* CNewClass::GetProcAddress1(HMODULE hModule, LPCTSTR lpFuncName)
    {
    USES_CONVERSION;//for ATL, to use A2W declare this first

    #ifdef \_WINCE	//for wince
    	LPCWSTR lpUnicodeFuncName = A2W( lpFuncName );
    	return(GetProcAddress(hModule, lpUnicodeFuncName));
    #else // for vc6
    	LPCSTR lpAsciiFuncName = (LPCSTR)W2A( lpFuncName );
    	return (GetProcAddress(hModule, lpAsciiFuncName));
    #endif
    

    }

    Problem: This function (GetProcAddress) returns 0/fails in release mode. It works fine in debug mode. General Info: The function GetProcAddress resolves to GetProcAddressA or GetProcAddressW based on the build(ascii or unicode) in EVC++ whereas in vc6, it is GetProcAddress only (simlar to GetProcAddressA with LPCSTR as second parameter). Also just FYI: http://blog.voidnish.com/?p=70[^] I tried lot of ways to typecastings.. but didnot work. Please help.

    Priya Sundar

    C / C++ / MFC c++ help com hardware debugging

  • CascadeWindows and TileWindows
    P Priya_Sundar

    Hi, Finally were you able to find the solution. If yes please do post the same.

    Priya Sundar

    C / C++ / MFC design help tutorial question learning

  • DrawText function to align mulitipile lines of text vertically and horizontally
    P Priya_Sundar

    Hi, Thanks. I could justify my text now both horizontally and verically. The modificaiton that needs to be done in the above code to justify the text in the required rectangle is, just replace the flags in the last drawtext function by : DT_CENTER | DT_VCENTER | DT_NOCLIP.

    Priya Sundar

    C / C++ / MFC css question

  • DrawText function to align mulitipile lines of text vertically and horizontally
    P Priya_Sundar

    Hi, I want to know whether it is possible to align multiple lines of text vertically and horizontally to a rectangle using the funtion DrawText. If yes, please let me know for what combination of flags, the DrawText would produce the required output. FYI flags in that funtion: DT_CENTER - Centers text horizontally in the rectangle DT_VCENTER - Centers text vertically. This value is used only with the DT_SINGLELINE value, where as my text is multiple line text. Also there is this, DT_CALCRECT - Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the lpRect parameter and extends the base of the rectangle to bound the last line of text. If the largest word is wider than the rectangle, the width is expanded. If the text is less than the width of the rectangle, the width is reduced. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. May be I need to calculate and position text myself? If yes how?

    Priya Sundar

    modified on Friday, January 16, 2009 1:53 AM

    C / C++ / MFC css question

  • telnet without command prompt???
    P Priya_Sundar

    Hi, I need to develop an application which would connect me to a telnet server for only one command DIR and display the directories in a tree view. Here I am not supposed to use the command prompt window. All the programs including Puttyhttp://en.wikipedia.org/wiki/PuTTY[^].. open up a command prompt when trying to connect to a telnet server. Could you please help me up with some sample articles.. or what to search for..

    Priya Sundar

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

  • PrintPreview of a CImage
    P Priya_Sundar

    Hi All, If i try to print or preview print, the image gets tilted vertically. I have set the mapping modes all properly. I think there is a problem some where else. And fyi - i use CImage Class and BitBlt function with SRCCOPY flag to display my image. And my mapping mode is MM_LOENGLISH. Kindly help!

    Priya Sundar

    C / C++ / MFC help

  • How to send data between PC usb port to a WinCE usb port?
    P Priya_Sundar

    I want to transfer some data to the WinCE using USB. I have a USB cable's one end connected to my PC running a VC++6.0 Application and to the WinCE.

    Priya Sundar

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

  • How to send data between PC usb port to a WinCE usb port?
    P Priya_Sundar

    Hi All, I need to write a program in VC++/MFC that can send data between PC usb port to a WinCE usb port? Where to start?? Any help??? However i have gone through the following links: http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/972aa2e9-d235-4518-923b-9c630a44b1d1/[^] http://www.helpshare.com/qhome.asp?qid=1986[^]

    Priya Sundar

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

  • Hide/Remove the Application Icon in the Title bar icon for a dialog with Border - Resizing.
    P Priya_Sundar

    Good suggestion! Thanks. But in this case I need to allign the title bar text to the right of the dialog. I am not sure how to do this! Any suggestion for this?

    Priya Sundar

    C / C++ / MFC tutorial question

  • Hierachy Chart for MFC8.0?
    P Priya_Sundar

    Hi All, I need the link to the Hierachy chart for MFC8.0. I tried to google and searched in MSDN also. But couldnt find it. Please help!

    Priya Sundar

    C / C++ / MFC help question

  • Comparison between MFC6.0 and MFC8.0
    P Priya_Sundar

    Hi All, Can anyone tell me some links that tell the differences or comparision between MFC6 and MFC8? I tried to google, but couldnt find it. Kindly help!

    Priya Sundar

    C / C++ / MFC help question

  • Hide/Remove the Application Icon in the Title bar icon for a dialog with Border - Resizing.
    P Priya_Sundar

    This way if i set to NULL, i get a blank command icon displayed in the Title of the dialog. However, in the taskbar still the icon is present. I dont want the icon or even like a blank command type of icon displayed on the Dialog title. So please suggest some other way.

    Priya Sundar

    C / C++ / MFC tutorial question

  • Hide/Remove the Application Icon in the Title bar icon for a dialog with Border - Resizing.
    P Priya_Sundar

    Hi All, I have a new dialog based project, in which for the dialog I have set the following resizing property - Style: Popup Border: Resizing. Now when I execute the application, I dont want the application icon to be displayed in the Title bar of the Dialog. Can you tell me how to remove that icon? Thanks.

    Priya Sundar

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