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
R

ramana g

@ramana g
About
Posts
35
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Regarding IntelliTrace equivalent tool in C++
    R ramana g

    Hi All, My C++ console application is crashing randomly. I heard about a Visual Studio 2010(Ultimate) version's feature "IntelliTrace". But, sad part is that IntelliTrace in VS2010 is not available for debugging C++ applications. Does anybody know about any debugger which has similar feature? Or any suggestions about how to approach to solve this kind of random crash problems? Ramana G

    C / C++ / MFC csharp c++ visual-studio debugging tutorial

  • Unhandled exception
    R ramana g

    If you are calling DLL functions, check whether you are passing correct parameters, if any?

    C / C++ / MFC tutorial question

  • AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage
    R ramana g

    I think you are creating a worker thread. As per my knowledge, you may need to create a UI thread inorder to post messages to the new thread. See the other version of AfxBeginThread function.

    C / C++ / MFC debugging help question

  • CDaoRecordset Problem..
    R ramana g

    ORDER BY can be achieved by setting the COLUMN_NAME by which you want to sort the records to the "m_strSort" member of the CDaoRecordset class.

    C / C++ / MFC help database

  • Can we use registry for..
    R ramana g

    Hi all, Is it ok if we write thousands of key-value entries into registry? How it will effect the performance of the system? Please suggest me.. (i know, this question is not related to this forum, but, i dont know where can i get exact information about this. i googled before posting the message to this forum, but, could not get proper information :( )

    C / C++ / MFC question windows-admin performance

  • How can i make a application which can run on mac/linux/windows?
    R ramana g

    simple is use Java :)

    C / C++ / MFC question c++ asp-net linux help

  • Want struct parameter by default set to NULL
    R ramana g

    i used a pointer to class as default parameter in c++. i dont know about c

    C / C++ / MFC

  • Want struct parameter by default set to NULL
    R ramana g

    default parameter?? search for "default parameter"

    C / C++ / MFC

  • Singleton using mutex for windows application (exe)
    R ramana g

    you can add some code like this... in your application initinstance HANDLE hMutex = CreateMutex( NULL, TRUE, "MyMutex" ); if( GetLastError() == ERROR_ALREADY_EXISTS ) {//application is already running. dont proceed further CloseHandle( hMutex ); return FALSE; }

    C / C++ / MFC tutorial question

  • Query about "Fibers"
    R ramana g

    the link answered all my questions thank you :)

    C / C++ / MFC question database tutorial

  • Query about "Fibers"
    R ramana g

    Hi All I heard the term "Fiber" for the first time. What is Fiber? Where exactly it is used (any example)? Is it a good technique to use Fibers in my program? Please provide any related links Thank you.

    C / C++ / MFC question database tutorial

  • threads
    R ramana g

    May be you can use something like this... DWORD dwMainThreadId = 0; DWORD dwProcessId = 0; dwMainThreadId = GetWindowThreadProcessId( hMainWnd, &dwProcessId); if( dwMainThreadId == GetCurrentThreadId() ) { //Main Thread } else { //Thread specialization code } I have not tested this snippet.

    C / C++ / MFC question

  • dll problem
    R ramana g

    To debug your DLL, Set DLL project as active and under Project->Settings->Executable for Debug session browse the exe which is using your DLL.

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

  • How to add Socket support
    R ramana g

    Use WinSock API (Win32APIs), and write some wrapper classes around SOCKET handle. Use a worker thread to receive data, Parse received data and frame the MESSAGE, which you use to communicate over network. MESSAGE can be something like... struct MESSAGE{ int nMsgId; //To describe data BOOL boolFlag; //Req / Res BYTE *pData; //Actual Data //Some more fields depending on your requirement ... ... }; i think this is enough to start with. You can explore and learn as you progress.

    C / C++ / MFC sysadmin help tutorial question

  • How to add Socket support
    R ramana g

    Before using CSocket read this... http://tangentsoft.net/wskfaq/articles/csocket.html[^]

    C / C++ / MFC sysadmin help tutorial question

  • Method to get file path
    R ramana g

    Override the CDocument::OnOpenDocument(LPCTSTR lpszPathName) function. The arguement contains the File Name which is selected in Open dialog

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

  • Is it okay to cast from int to unsigned char *?
    R ramana g

    Another way is... int nNum = 10; char Data[4] = {0}; memcpy(&Data, &nNum, 4);

    C / C++ / MFC data-structures question

  • Strange string problem ...
    R ramana g

    "the debugger shows some garbage at the end, since the string is not 0 terminated" as Pallini told, this what is happening in your case. you better increase your buffer length to 17 and check again, then the debugger shows the string properly.

    C / C++ / MFC c++ performance help

  • Query about Tray Icon
    R ramana g

    thank you David :)

    C / C++ / MFC database linux tutorial question

  • Query about Tray Icon
    R ramana g

    Hi all, I have developed a dialog based application. In CMyDialog::OnInitDialog() i wrote code to add TrayIcon. HICON hIcon = NULL; m_NotifyIconData.cbSize = sizeof(NOTIFYICONDATA); m_NotifyIconData.hWnd = m_hWnd; m_NotifyIconData.uID = IDR_MAINFRAME; m_NotifyIconData.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; m_NotifyIconData.uCallbackMessage = ID_TRAY_MESSAGE; //WM_USER + 1 hIcon = (HICON) LoadIcon(AfxGetInstanceHandl(),MAKEINTRESOURCE (IDR_MAINFRAME)); m_NotifyIconData.hIcon = hIcon; strcpy(m_NotifyIconData.szTip, "My Tray Icon"); Shell_NotifyIcon(NIM_ADD, &m_NotifyIconData); if (hIcon) DestroyIcon(hIcon); It successfully added Tray Icon to the Notification area. My sample application is running well. But, when i kill windows "explorer.exe" process from task manager and start "explorer" again, TrayIcon is missing in Notification area. I want Tray icon to be added again in this scenario. How to do this? Thank you...

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