CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: skpradhan

Page 1 of 32 1 2 3 4

Search: Search took 0.31 seconds.

  1. Replies
    1
    Views
    816

    Making a control property of ArrayList

    Hi
    Please somebody help me to make a user control property of ArrayList and how to make an editor for this property.
    Example: for my user control, say i want to add a property named TextList which...
  2. Hi Paresh Thanks for the reply. Still I am not...

    Hi Paresh
    Thanks for the reply. Still I am not able t change the size of top level menu items like File,Edit etc.
    Can you please help me on that? Is it possible to resize the top level items?...
  3. Changing the size of top level menu items

    I tried to increment the size of menu items using the owner draw but could make it for submenus not the top level menu items. Can any one tell me whether its possible to resize the top-level menu...
  4. COleDataObject::GetFileData() issue for different OS

    The above function behaves differently for a clipboard format of text type. This freates a CFile object of CSharedFile in 2k and xp ahere as it creates COleStreamFile in 9x and NT. Also in 2k/xp the...
  5. Could u pls,post the code snippet where u r...

    Could u pls,post the code snippet where u r populating the tree and in which function?
  6. Replies
    1
    Views
    866

    Sample code to change the color of static...

    Sample code to change the color of static controls: use this code in OnCtrlcolor() function dependiong on your requirement:

    //Blue color for a specific control on anytype (say IDC_EDIT2 edit...
  7. Replies
    3
    Views
    778

    VT_I8 is there available in MIDL for a hyper data...

    VT_I8 is there available in MIDL for a hyper data type(__int64). I know this does not comply to automation because VB does not have any data type of 8byte int. But my requirement is for VC users ,so...
  8. Replies
    3
    Views
    778

    2-D SAFEARRAY of __int64

    I have a requirement of creating a 2 dimesional SAFEARRAY of __int64/hyper. I tried to make is using SafeArrayCreate() but could not succeed. If any body has worked on it pls send me a code snipate...
  9. Replies
    0
    Views
    512

    Using __int64 in SAFEARRAY

    Hi gurus
    1.Is it possible to create a SAFEARRAY of 200X500 elements of __int64 data type? If possible please post a sample code for this.
    2. Can I use that SAFEARRAY from VB and how?

    Thanks in...
  10. Replies
    0
    Views
    837

    Calling C dll from C#

    Hi all C# gurus
    I would like to call a library of C functions exported from a dll. I know the way to make this is to write un-managed code with DllImport attribute to write a C# wrapper function and...
  11. Replies
    5
    Views
    1,071

    Re: newline in static text

    Hi,
    Use \r\n instead of only \n for multiline statis control
    Ex. 1. prepare char *p = "xxxxx\r\n" + "yyyyyy\r\n"
    + "zzzzz"
    2. SetDlgItemText( , p )
    Regards
    santanu


    Be sure to rate answers...
  12. Re: IS IT POSSIBLE TO COMPARE THE COLOR OF A MONO BMP?????

    Hi srujan

    this is one way u can do for comparison:
    1.Create a memory DC from the opened bitmap.
    2.use CDC:GetPixel() function which returns u a COLORREF.
    3.then may be u can use...
  13. Replies
    5
    Views
    690

    Re: Edit Box size

    hi
    use SetWindowPos() function for this:
    sample code:

    CWnd *myEdit=GetDlgItem(IDC_EDIT1);
    myEdit->SetWindowPos(,,,,);

    See this SetWindowPos() in msdn for details

    Regards
  14. Replies
    1
    Views
    849

    Re: How to use the CFont

    Hi
    the first parameter of CreateFont() is for setting the font height. once u create a cFont object u cannot change the height of this object, u will have to create a new Cfont object with new...
  15. Replies
    3
    Views
    589

    Re: Help needed to a beginner

    Hi
    u can extract some part of bitmap. use LoadImage() and CopyImage() to do ur job.

    Regards
    skp

    Be sure to rate answers if it helped, to encourage them.
  16. Replies
    3
    Views
    497

    Re: Simple question, but need you help

    Hi
    Use the Resource ID attached to that edit box for enabling or disabling the edit box.
    EX: say IDC_EDIT1 is your resource Id for that edit box then,
    //to disable...
  17. Re: passing array of double to a function by reference

    Hi Tom
    thanx a lot for ur quick answre, it helped me a lot to understand Vb calling . here is my actual problem. hope u can help me to solve this problem. I m a VC programmer and just new to VB.
    ...
  18. passing array of double to a function by reference

    Hi all
    i need some help from VB programers. My requirement is how can i pass an array of double to a function by reference. please give the function defination syntax and function calling syntax...
  19. Thread: argc argv

    by skpradhan
    Replies
    3
    Views
    1,261

    Re: argc argv

    Hi
    You can use directly the
    LPTSTR GetCommandLine(VOID); function in InitInstance() function of ur application class before initialization. This will return a string which u can parse to get the...
  20. Replies
    4
    Views
    572

    Re: VC++ and Access2000

    U can use ODBC/DAO/ADO to read and write data to different databases, but corresponding database drivers should be there. Say if u are using DAO u can use the classes like...
  21. Replies
    1
    Views
    562

    Re: How to Load Bitmap

    Hi
    i am giving u the sample code to load a bitmap from .bmp file and display it in a CView derived view class.u can put this code in OnDraw() function for test.

    //load the bitmap directly from...
  22. Thread: help file

    by skpradhan
    Replies
    4
    Views
    643

    Re: help file

    "context sencitive help" checkbox in step 4 of appwizard when u making an SDI application for example.


    Be sure to rate answers if it helped, to encourage them.
  23. Thread: help file

    by skpradhan
    Replies
    4
    Views
    643

    Re: help file

    simple way is to use the appwizard option for creating help for the application and modifying the .RTF file contents generated by the appawizard. Visual c++ will compile and make the .hlp for u....
  24. Re: funtion to convert hexadecimal values of registeries to decimal (URGENT)

    Hi
    R u reading the values as strings?
    if so then use sscanf() function to read the hex values of string buffer to decimal value.
    sscanf(buffer,"%x",&intVal);

    Regards
    S.K.Pradhan


    Be sure...
  25. Replies
    2
    Views
    629

    Re: Class instance

    Hi
    Take the concept of COM reference counting implementation and maintain a counter.

    Regards
    S.K.Pradhan


    Be sure to rate answers if it helped, to encourage them.
Results 1 to 25 of 778
Page 1 of 32 1 2 3 4





Click Here to Expand Forum to Full Width

Featured