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
J

Jagdish V Bhimbha

@Jagdish V Bhimbha
About
Posts
20
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Open a Url the user has entered form a text box
    J Jagdish V Bhimbha

    Might be its happening due to ur unmanaged code...

    :rose: Jagdish Bhimbha S/W Developer :-O

    C / C++ / MFC help question

  • Open a Url the user has entered form a text box
    J Jagdish V Bhimbha

    Hi, Use the following statement in your code :

    // url is variable
    ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);

    Good Luck..:rose:

    :rose: Jagdish Bhimbha S/W Developer :-O

    C / C++ / MFC help question

  • Disable Minimize and Maximize Box
    J Jagdish V Bhimbha

    Hi Usha, The solution i gave you must be working, might be there you are doing some mistake in implementing this technique. Do u getting any error message..? Please put this code at approprite place, & with proper arguments. & sorry, i looked for other solution but failed to found..!:confused: Better Luck this Time..:rose::rose:

    :rose: Jagdish Bhimbha S/W Developer :-O

    C / C++ / MFC help

  • Disable Minimize and Maximize Box
    J Jagdish V Bhimbha

    Hi, The CWnd::OnCreate() method is used to create a window and it is usually meant to do this using its default configured features. Therefore, anything you want to display on the frame when the application displays, you can do so when creating the application. Therefore, the frame is typically used to create and display the toolbar(s), dialog bar(s), and status bar. After the frame has been created, if you want to modified something on it, you can do so after it has been created but before it is displayed to the user. To do this, you can use the PreCreateWindow() method of the CWnd class. Its syntax is: virtual void PreCreateWindow(CREATESTRUCT& cs); This method takes a reference to CREATESTRUCT class, modifies and returns it with the new characteristics. For example, you can use this method to remove the Minimize and the Maximize system buttons on the title bar as follows:

    BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
    {
    cs.style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX);
    return CFrameWnd::PreCreateWindow(cs);
    }

    Hope this help you..! Good Luck..:rose:

    :rose: Jagdish Bhimbha S/W Developer :-O

    C / C++ / MFC help

  • vc++
    J Jagdish V Bhimbha

    Hi... You looking new to Visual C++ programming..! Please have look on some following links : http://msdn.microsoft.com/en-us/library/zdbe067e(VS.80).aspx http://www1.coe.neu.edu/~ctd/ISY240/Using_VCPlusPlus.htm http://www4.carthage.edu/faculty/ewheeler/programming/VisualC++/gettting_started_visual_cpp.htm http://www.cse.ust.hk/~yjrobin/lab01/lab01.html Have Good Luck..:rose:

    :rose: Jagdish Bhimbha S/W Developer :-O

    C / C++ / MFC c++ tutorial question

  • MessageBox()
    J Jagdish V Bhimbha

    Hi, You may use like this also :

    int num;
    CString op;
    op.Format("Number : %d",num);
    AfxMessageBox(op);
    // or
    ::MessageBox(0,op,"Title",0);

    Have Good Luck.. :) :rose:

    Jagdish Bhimbha S/W Developer

    C / C++ / MFC help question

  • constant member function in Managed C++
    J Jagdish V Bhimbha

    Hi, Please try this technique,

    public ref class CMyClass
    {
    public:
    void Function(void) const;
    };

    void CMyCLass::Function() const
    {
    .
    . // Code definition
    .
    }

    Wish you Good Luck...:rose:

    Jagdish Bhimbha S/W Developer

    C / C++ / MFC c++ help tutorial

  • File should delete itself
    J Jagdish V Bhimbha

    Hi Friend, You should try this trick : There are several tricks for making programs that are in one way or another able to delete themselves, without leaving any traces in the system. One of the most wide-spread techniques, and also the one which is supposed to be one of the most platform independent (between Windows versions) is the following:

    Start the program you want to delete (EXE1).

    From this program, drop a second exe file (EXE2).

    Open a file handle to EXE2 from EXE1, using CreateFile, with the flag "FILE_FLAG_DELETE_ON_CLOSE".

    Execute EXE2 from EXE1 (e.g. with CreateProcess), causing the operating system to open another file handle to EXE2.

    Let EXE1 exit and terminate (which will implicitly cause its filehandle to EXE2 to close, leaving only the operating system's filehandle to EXE2 left open).

    EXE2 waits for EXE1 to terminate, and as soon as it detects this, it deletes EXE1 from disk.

    After successfully deleting EXE1, the job of EXE2 is complete, and it exits and terminates, causing the operating system's filehandle to it to close.

    The general concept and idea is now that EXE2 should immediately be deleted upon this closing of the last open file handle to it. This is also a seemingly correct assumption, especially when you read the entry for the "FILE_FLAG_DELETE_ON_CLOSE" flag of the CreateFile API in the Win32API reference

    Or you can visit the following link : http://www.woodmann.com/forum/archive/index.php/t-4542.html Have a Good Luck...:rose:

    Jagdish Bhimbha S/W Developer

    C / C++ / MFC help question

  • Drag and drop through group controls?
    J Jagdish V Bhimbha

    Hello.... As per my knowledge there will be some drop target ambiguity arises while u drops text on group. Check your code well for this ambiguity...! Good Luck...:rose:

    Jagdish Bhimbha S/W Developer

    C / C++ / MFC c++ question learning

  • visual styles in vista
    J Jagdish V Bhimbha

    Hi.. Please have a look on Manifest concept... All d best...:rose:

    Jagdish Bhimbha S/W Developer

    C / C++ / MFC wpf

  • Reg: System Login detail
    J Jagdish V Bhimbha

    Hello... The function CheckTokenMembership() requires following things : Header : Declared in Winbase.h; include Windows.h. Library : Use Advapi32.lib. DLL : Requires Advapi32.dll Check by including this header file. Next solution is you can you something like :

    Bool IsUserAdmin(VOID)
    {
    DWORD i;
    TCHAR infoBuf[INFO_BUFFER_SIZE];
    DWORD bufCharCount = INFO_BUFFER_SIZE;
    char admin[]="Admin" /* char admin[]="Administrator"

    // Get and display the user name.
    bufCharCount = INFO_BUFFER_SIZE;
    if( !GetUserName( infoBuf, &bufCharCount ) )
    ::MessageBox(0,"GetUserName","Can not read user name",0);
    s.Format("%s", infoBuf );

    if(strcmp(s,admin))
    return 1;
    else
    return 0;
    }

    Have Best Luck this time... :-O

    Jagdish Bhimbha S/W Developer

    C / C++ / MFC c++ tutorial

  • Reg: System Login detail
    J Jagdish V Bhimbha

    Hi friend, I am using this code in my system to identify What is computer name & currently who is using it. ///////////////////////////////////////////////////////////////////// DWORD i; TCHAR infoBuf[INFO_BUFFER_SIZE]; DWORD bufCharCount = INFO_BUFFER_SIZE; // Get and display the name of the computer. bufCharCount = INFO_BUFFER_SIZE; if( !GetComputerName( infoBuf, &bufCharCount ) ) ::MessageBox(0,"GetComputerName","Cannot computer name",0); s.Format("%s", infoBuf ); ::MessageBox(0,s,"Computer Name",0); // Get and display the user name. bufCharCount = INFO_BUFFER_SIZE; if( !GetUserName( infoBuf, &bufCharCount ) ) ::MessageBox(0,"GetUserName","Can not read user name",0); s.Format("%s", infoBuf ); ::MessageBox(0,s,"User Name",0); ///////////////////////////////////////////////////////////////////// Have Good Luck...:rose: Jagdish Bhimbha S/W Developer

    C / C++ / MFC c++ tutorial

  • How do I understand , my article submitted ?
    J Jagdish V Bhimbha

    Hi, Just click on your name, it will show all your profile. Here it shows that you submitted one article... Checkout... :)

    Jagdish Bhimbha S/W Developer

    IT & Infrastructure question

  • Can there be web links in Internet Explorer history without visiting those?
    J Jagdish V Bhimbha

    Hi, Thanks for giving details. Your system must have either spyware/virus attack or some one else using it during ur absense. Scan ur system with latest antivirus & antispyware. And if not then monitor ur system access. :rose:

    Jagdish Bhimbha S/W Developer

    IT & Infrastructure help question

  • Can there be web links in Internet Explorer history without visiting those?
    J Jagdish V Bhimbha

    Hi, This could be due to redirection... If you noticed then often the webhosters makes their group and distributes links for similar content. so here might be your control was redirected to any unknown site. Is there 2-3 links like that or u getting more links..? If more than this then u should concern on ur firewall security. Have good Luck...:rose:

    Jagdish Bhimbha S/W Engineer

    IT & Infrastructure help question

  • Set a "Title" and "Icon" for a certain window in taskbar ! [modified]
    J Jagdish V Bhimbha

    Hi... Rather than using WITHOUT titlebar, just try to set BorderStyle = NULL. It will show icon & title in taskbar... Good Luck...:rose:

    Jagdish Bhimbha S/W Engineer

    C / C++ / MFC help question

  • Open file
    J Jagdish V Bhimbha

    Hi... Have look on this link : http://www.developerfusion.co.uk/show/9/2/ Might thats what u want... Good Luck...:rose:

    Jagdish Bhimbha S/W Engineer

    C / C++ / MFC question

  • write a complete program for this one in Visual C++
    J Jagdish V Bhimbha

    Try @ www.rentacoder.com www.getfreelancer.com www.getacoder.com etc... If still unable then directly contact me... :-D Good luck...:rose:

    Jagdish Bhimbha S/W Engineer

    C / C++ / MFC c++ css

  • Problems with screen redrawing [modified]
    J Jagdish V Bhimbha

    Take help of UpdateData(FALSE); I think thats only missing in ur code... Have good luck...! :)

    Jagdish Bhimbha S/W Engineer

    C / C++ / MFC debugging help question code-review

  • How to call .exe file ?
    J Jagdish V Bhimbha

    http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx http://www.developerfusion.co.uk/show/9/2/ http://msdn.microsoft.com/en-us/library/bb762154.aspx Best suitable : SHELLEXECUTEINFO info; memset(&info, 0, sizeof(SHELLEXECUTEINFO)); info.cbSize = sizeof(SHELLEXECUTEINFO); info.fMask = SEE_MASK_FLAG_NO_UI; info.lpVerb = _T ("open"); info.lpFile = sLink; // File Path... info.nShow = SW_SHOW; return :hellExecuteEx( &info ); Welcome in Advance... :-D

    Jagdish Bhimbha

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