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
K

Karthik Kalyanasundaram

@Karthik Kalyanasundaram
About
Posts
33
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What is the initial value of ViewPerspective after loading image using LeadTools?
    K Karthik Kalyanasundaram

    When loading images using LeadTools API, what would be the initial value of ViewPerspective?

    BITMAPHANDLE LeadBitmap2;
    L_INT nRet = L_ConvertFromDIB(&LeadBitmap2, sizeof(BITMAPHANDLE), (BITMAPINFO*)pucTestBuffer, pDIBits);

    LeadBitmap2.ViewPerspective is BOTTOM_LEFT. Will it be always BOTTOM_LEFT when loading images? LeadTool documentation doesn't say anything about this.

    Do more work Make more mistakes Learn more things

    C / C++ / MFC question json

  • Convert string array from C# to C++ ?
    K Karthik Kalyanasundaram

    Please check this link Interoperation: C# and native Win32 C++ code; arrays of strings[^]

    Do more work Make more mistakes Learn more things

    Managed C++/CLI question csharp c++ graphics data-structures

  • How to use Internal , Protected Internal across Assemblies..
    K Karthik Kalyanasundaram

    Have a look at InternalsVisibleToAttribute http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.aspx[^] This may help you. Decorate your Assembly1 with InternalsVisibleTo("Assembly2") and try to use the types in Assembly1 in Assembly2.

    Do more work Make more mistakes Learn more things

    C# tutorial

  • How to submit just a class name as a parameter of a method?
    K Karthik Kalyanasundaram

    I think, the Type class in .NET will help you. You can pass the type of the class to your function and create instances using Reflection.

    class YourClass
    {
    ......
    }

    .....

    public void YourMethod(Type type) { // do your stuffs here.. // you can use Reflection to create the instance. } public void AnotherMethod() { YourMethod(typeof(YourClass)); }

    Do more work Make more mistakes Learn more things

    C# question tutorial

  • Native Image not found help
    K Karthik Kalyanasundaram

    You can try out this. In Server, 1. Read the image from the file. 2. Save the image onto a MemoryStream object. 3. Get the buffer from the MemoryStream using GetBuffer() method, this method will return the bytes from the memory stream. Now you send this byte array to the client. Now In Client, 1. Create new MemoryStream object and write the byte array received from server onto the MemoryStream. 2. Create new Image object from the MemoryStream using Image.FromStream() method and use this image object in the PictureBox.

    Do more work Make more mistakes Learn more things

    C# help question c++ sysadmin

  • macro function compiles error,can anybody explain why?3x!
    K Karthik Kalyanasundaram

    Try using this

    #define ABSOLUTE(a) (((a) > 0) ?(a) : -(a))
    

    Do more work Make more mistakes Learn more things

    C / C++ / MFC help question

  • Create a diagram
    K Karthik Kalyanasundaram

    This link may help you

    Do more work Make more mistakes Learn more things

    C# csharp asp-net security question

  • How Can i Copy Object?!
    K Karthik Kalyanasundaram

    You can create an exact copy of the object using Clone() method if that type implements ICloneable interface

    Do more work Make more mistakes Learn more things

    C# question csharp help

  • Increasing font size of text in static text box
    K Karthik Kalyanasundaram

    I assume that you are mentioning about changing the font size of the STATIC control. You can simply use SetFont() function on the Static controls.

         CFont font;
    font.CreateFont( 50, 0, 0, 0, FW\_BOLD, 0, 0, 0, 0, 0, 0, 0, 0, \_T("Times New Roman") );
    CWnd\* pWnd = GetDlgItem( IDC\_STATIC1 );
    if( pWnd )
    {
    	pWnd->SetFont( &font );
    	font.Detach();
    }
    

    Do more work Make more mistakes Learn more things

    modified on Saturday, June 28, 2008 12:15 PM

    C / C++ / MFC tutorial

  • Event Handling for Dynamically created ListBox
    K Karthik Kalyanasundaram

    Handling events of dynamically created controls are not that hard. It should work. Please ensure that IDC_PREVIEW_LIST is #define-d in some header file and included in this source file.

    Do more work Make more mistakes Learn more things

    C / C++ / MFC tutorial

  • What is it called when your class has a root collection and how do you do it in C#?
    K Karthik Kalyanasundaram

    I think C# Indexers can help you. Please check this link to know more about Indexers Indexer In C#[^]

    Software - Bundle of bugs covered with features.

    C# question csharp

  • DataRow question
    K Karthik Kalyanasundaram

    In C# method calls should have parathesis/()... You will get used to it very soon :)

    strLastServer = drowData["ServerName"].ToString();

    Software - Bundle of bugs covered with features.

    C# csharp question help

  • checking an object is compatible with another object
    K Karthik Kalyanasundaram

    Please try with the code given below.

    bool CheckConfigVariable(object variable, Type expectedType)
    {
    if (variable.GetType() == expectedType)
    {
    return true;
    }
    return false;
    }

    Software - Bundle of bugs covered with features.

    C# question

  • Why Won't My MainForm Focus/Activate?
    K Karthik Kalyanasundaram

    Can you try with this.WindowState = FormWindowState.Normal

    Software - Bundle of bugs covered with features.

    C# question help

  • Changing Window Title in Taskbar.
    K Karthik Kalyanasundaram

    Hello All, How can I change window title shown as tool tip text in the Taskbar using MFC. With Thanks, Karthik.

    Software - Bundle of bugs covered with features.

    C / C++ / MFC c++ question

  • collection
    K Karthik Kalyanasundaram

    You can try using foreach loop over this collection.

    C# question data-structures

  • dot net remoting problem
    K Karthik Kalyanasundaram

    Sorry Dude, I am not that good at WebServices eventhough I had developed some webservices using PHP5. As far as I know, Webservices are state-less, what I think is you need to make ur classes serializable and return that instances of that classes from webservice method.

    C#

  • dot net remoting problem
    K Karthik Kalyanasundaram

    Here you can do two things to solve this issue. One thing is that you can add the Sales dll in ur client app, but you don't need that fix. Another thing is that you can make the class Items derive from MarhsalByRef and make the return value of getitems() return list of Idomain. The way you have done requires serialization of classes Items, CD, Books and Medicine objects in the list from server side, and require deserialization at client side, to deserialize it at client side requires the Sales.dll there.

    C#

  • Argument issues
    K Karthik Kalyanasundaram

    You need to use, int index = attribute_List.LastIndexOf(",",attribute_List.Length - 1,attribute_List.Length); Reason: LastIndexOf() method searches for the given string from right to left, so you need to specify the second parameter, ie. the startIndex from right to left. Hope the thing is clear.

    C# data-structures

  • How to use "cout" in a c++ dll in C# [modified]
    K Karthik Kalyanasundaram

    Can you explain your real issue??

    C# csharp c++ 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