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
C

charu123

@charu123
About
Posts
28
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MFC tray icon(please help)
    C charu123

    Hi, I have written a program to add an icon in the system tray. But i want the icon to remain in the systray even after i exit the application and the application should start on clicking the icon. how can i do that? Thanks U get wht u Give

    C / C++ / MFC question c++ help

  • MFC tray icon
    C charu123

    Hi, I have an application where an icon is created in the systray when the program is executed . On click of the icon the apllication is launched again. What i want is tht when the program is executed only the systray icon is shown n the dialog box is not launched. only when i click on the icon the dialog box should be launched.. I am calling the functions to show the icon in the initdialog function, How do i hide the dialog box so tht it doesnt pop up till i clickon the icon in the systray. Please someone help me out wid this. thanks U get wht u Give

    C / C++ / MFC c++ help question

  • MFC DLL's
    C charu123

    Hi, I want to create a DLL which puts and icon in the taskbar on click of tht icon an exe is run. I wrote the following code. The Compiler is not recognising the VERIFY Macro and AfxGetInstanceHandle method. This code might be wrong becoz i ma jus trying . Could someone help me out with this. #include #include #include "example.h" #define MYWM_NOTIFYICON (WM_USER+2) BOOL WINAPI DllMain (HINSTANCE hinstDLL, // handle to the DLL module DWORD fdwReason, // reason for calling function LPVOID lpvReserved) // reserved { return TRUE; } EXPORT void WINAPI Systray () { // CString sTip(_T("System Configuration")); DWORD dwMessage=NIM_ADD; NOTIFYICONDATA tnd; HWND m_hWnd; tnd.cbSize = sizeof(NOTIFYICONDATA); tnd.hWnd = m_hWnd; tnd.uID = IDR_TRAYICON; tnd.uFlags = NIF_MESSAGE|NIF_ICON; tnd.uCallbackMessage = MYWM_NOTIFYICON; VERIFY( tnd.hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE (IDR_TRAYICON)) ); tnd.uFlags = NIF_MESSAGE|NIF_ICON|NIF_TIP; //lstrcpyn(tnd.szTip, (LPCTSTR)sTip, sizeof(tnd.szTip)/sizeof(tnd.szTip[0]) ); Shell_NotifyIcon(dwMessage, &tnd); if(dwMessage == MYWM_NOTIFYICON) { if((LPARAM)tnd.uCallbackMessage==WM_LBUTTONDBLCLK) { if((WPARAM)tnd.uCallbackMessage==IDR_TRAYICON) { ShellExecute(NULL, "open", "http://www.brigsoft.com/", NULL, "", SW_SHOW); } } } } Thanks U get wht u Give

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

  • VC++ &Installshield(urgent)
    C charu123

    Hi, I create an installer package in which i can give shortcuts to come in the programs menu or desktop. I am using IDE8.0 however i want to place an icon in the task bar which when clicked run's the application. How can i implement this. Also how to give an uninstall option which will remove it from the Add/Remove program folder. Thanks U get wht u Give

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

  • IPX Address
    C charu123

    hi In this function wht value do i pas fos s int getsockopt( SOCKET s, int level, int optname, char* optval, int* optlen ); U get wht u Give

    C / C++ / MFC json tutorial

  • IPX Address
    C charu123

    hi, COuld someone tell me how to get the IPX Address. I tried to use GetAdapterInfo but for some reason the api is not getting recodnised though have have included the header file and given the path in the project settings. maybe somebody could point out the reason for the ehader not being recognised. Thanks U get wht u Give

    C / C++ / MFC json tutorial

  • MFC System Information
    C charu123

    hi david, I ma getting the following error " the instruction at a memory location reference memory at . the memory could not be written." Could u point out where I am going wrong. char b[1000],a[1000],file[1000]="trial.html"; char path[1000]="C:\\Documents and Settings\\bhoomika.WIPHP_DOMAIN\\Desktop"; //CString a; LPTSTR data; data=(char*)malloc(1000); VS_FIXEDFILEINFO *pFileInfo; UINT BufLen; FindExecutable(file,path,data); DWORD dwHandle, dwLen; dwLen = GetFileVersionInfoSize (data, &dwHandle); LPTSTR lpData; lpData=(char*)malloc(sizeof(BUF)); if (!GetFileVersionInfo (data, dwHandle, dwLen, lpData)) { free (lpData); lpData = NULL; AfxMessageBox ("VersionInfo: not found\n"); } if (!VerQueryValue(lpData,"\\",(LPVOID*) &pFileInfo,(PUINT) &BufLen)) { printf ("VersionInfo: not found\n"); } else { sprintf (a,"MajorVersion: %d", HIWORD(pFileInfo->dwProductVersionMS)); m_ctrlBrowser.SetWindowText(a); sprintf (b,"MinorVersion: %d\n",LOWORD(pFileInfo->wProductVersionMS)); } free(data); return TRUE; Thanks For all the help. U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • MFC System Information
    C charu123

    I am getting an error sayin The data area passed to a system call is too small. theSIZE i have declared is 5000. please tell m ewhr i am going wrong in this code snippet. char DevName[100]; sprintf(DevName,"%s",(LPCTSTR)dlg.GetDeviceName()); HANDLE phPrinter=NULL; DWORD dwBytesNeeded; PRINTER_INFO_2 *pst; BYTE pPrinter; DWORD sizeReq=SIZE; OpenPrinter(DevName,&phPrinter,NULL); GetPrinter(phPrinter, 2, &pPrinter, sizeReq, &dwBytesNeeded); pst=(PRINTER_INFO_2 *)malloc(dwBytesNeeded); char j[SIZE]; sprintf(j,"%l",pst->AveragePPM); U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • MFC System Information
    C charu123

    I am getting an error sayin The data area passed to a system call is too small. theSIZE i have declared is 5000. please tell m ewhr i am going wrong in this code snippet. char DevName[100]; sprintf(DevName,"%s",(LPCTSTR)dlg.GetDeviceName()); HANDLE phPrinter=NULL; DWORD dwBytesNeeded; PRINTER_INFO_2 *pst; BYTE pPrinter; DWORD sizeReq=SIZE; OpenPrinter(DevName,&phPrinter,NULL); GetPrinter(phPrinter, 2, &pPrinter, sizeReq, &dwBytesNeeded); pst=(PRINTER_INFO_2 *)malloc(dwBytesNeeded); char j[SIZE]; sprintf(j,"%l",pst->AveragePPM); U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • MFC System Information
    C charu123

    I am not able to implement GetAdaptersInfo becoz it is not recognizing some header files. Is there any other way i can implement it. Probably read from some file etc. Can u tell me how to get CPU speed. Thanks U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • MFC System Information
    C charu123

    Hi I am having some problem... please see this code and tell me whr I am going wrong. LPTSTR lptstrFilename; char buffer[BUF]="C:\\Program Files\\Internet Explorer\\iexplore.exe"; lptstrFilename = (char *) malloc( sizeof(BUF) ); strcpy(lptstrFilename,buffer); DWORD dwHandle=NULL; DWORD lpdwHandle= -1; DWORD dwLen=0; void *lpData; dwLen= GetFileVersionInfoSize(lptstrFilename,&lpdwHandle); lpData = malloc(dwLen); DWORD dwError = GetLastError(); BOOL bRet = GetFileVersionInfo(lptstrFilename,NULL,dwLen,&lpData); PUINT lplpBuffer; PUINT puLen; VerQueryValue(lpData, TEXT("\\VarFileInfo\\Translation"), &lpBuffer, &dwBytes); I am getting an error when i reach the VerQueryValue. Can u please point out the mistake. U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • MFC System Information
    C charu123

    Thanks for the info. I am having a little probs figuring out how to use SystemParametersInfo. I also need help with: DEFAULT PRINTER: ServerName: PrinterName: ShareName: PortName: DriverName: Description: Location: Processor: Processor param: DataType: Status: Current jobs: 0 Current printing speed: Print to the following port: thanks U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • MFC System Information
    C charu123

    hi, Could someone Please tell me how to retrieve the following information to print in the dialog box. Ethernet: NIC Address: IP Address: Modems installed: Browser Information: Version: Start page: Viewing Security: NetClient: Network Protocols: III. DIRECTORIES Temp Directory: IV. DISK INFORMATION Drive C: Fixed Disk Volume Name: Volume Serial: Total Space: Free Space: V. DISPLAY Display Adapter: Display Resolution: Display Colors: thanks U get wht u Give

    C / C++ / MFC c++ sysadmin security tutorial announcement

  • InstallShield
    C charu123

    Hi, Can somebody tell me about writing custom actions in IDE8.0 . any article on it would help ............ thanks:) U get wht u Give

    C / C++ / MFC help

  • MFC ini Files
    C charu123

    I managed to do the writing n reading using loop. Thanks all. U get wht u Give

    C / C++ / MFC c++ tutorial

  • MFC ini Files
    C charu123

    hi, Can somebody tell me how to go about writing data from the controls to ini files. I know tht i can use WritePrivateProfileString function but i wanted to know what intializations i will be required to do as in creating a section etc before i can follow the synatx of writing into an ini file. Also i wanted to know how I can store multiple values for a control(combo box) into the same key using a loop or count. thanks U get wht u Give

    C / C++ / MFC c++ tutorial

  • MFC
    C charu123

    I got it Thanks U get wht u Give

    C / C++ / MFC c++ question

  • MFC
    C charu123

    Hi, How can i save the values which are entered in the dialogs say an edit button. also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. Thanks U get wht u Give

    C / C++ / MFC c++ question

  • MFC Dialog
    C charu123

    Hi, I have two radio buttons. onselecting one of the choices i want another text box to get enabled or become visible. how can i implement either of these actions ? Thanks U get wht u Give

    C / C++ / MFC question c++

  • MFC Dilogs
    C charu123

    HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give

    C / C++ / MFC question c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups