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

Search:

Type: Posts; User: BitNinja

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    3,236

    Re: cast from void* to const char*

    You can use

    const_cast<char> (expression)



    char chr[10] ;
    const char * bhr = const_char<char*>(chr);
  2. Replies
    2
    Views
    906

    Re: Automatically Opening a File

    Hi,

    I think you should read this before posting. It will increase chance of repliers.

    http://www.codeguru.com/forum/misc.php?do=bbcode#url

    Good luck
  3. Replies
    3
    Views
    2,081

    Re: Visual Studio - saving debug state

    Yes you can.It automatically save in HTML document.
    You have to go look in your project folder and there is only one HTML document
    (sometimes it is shown in Internet Explorer name)
  4. Replies
    3
    Views
    1,253

    Re: nested if-else or switch case

    Only If and else if are OK




    unsigned int input;
    double result;

    if (input < 16 ){
    result = 0.38;
  5. Replies
    3
    Views
    8,370

    Re: Recompiling Object File Library LIB

    Can I see you code ?
  6. Replies
    2
    Views
    6,205

    Re: [MFC] Setting focus to a child dialog

    Try DoModal()



    CDialog Dlg(IDD_TEXTURE, NULL);
    DLGTEMPLATE DlgTemPlate;

    DlgTemplate.style = DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS;
    Dlg.CreateIndirect( DlgTemplate, NULL);
  7. Replies
    6
    Views
    1,169

    Re: doubt in DrawText()

    This should help

    http://msdn.microsoft.com/en-us/magazine/cc188910.aspx
  8. Replies
    9
    Views
    1,090

    Re: Can anybody figure this out for me please?

    Just a suggestion, you should reserve array with default value 0



    vector<double> u(21);

    for (int i = 0; i < 21; i++){
    u[i] = i*0.1 -1;
    cout << u[i] << endl;
    }
  9. Thread: LoadImage()

    by BitNinja
    Replies
    17
    Views
    49,482

    Re: LoadImage()

    You can check size, pixel and byte from BITMAP variable

    [code]
    typedef struct tag BITMAP{
    LONG bmType;
    LONG bmWidth;
    LONG bmHeight;
    LONG bmWidthBytes;
    WORD bmPlanes;
    WORD bmBitsPixel;
  10. Replies
    5
    Views
    5,173

    Re: Help to get/set workgroup in Win2K/NT

    I think ezway did the right thing.
Results 1 to 10 of 10





Click Here to Expand Forum to Full Width

Featured