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
T

Tareq Ahmed Siraj

@Tareq Ahmed Siraj
About
Posts
22
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Handle WM_COPYDATA from inside a DLL?
    T Tareq Ahmed Siraj

    thanks a lot. - tareq of all the things i've lost, i miss my mind the most

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

  • Handle WM_COPYDATA from inside a DLL?
    T Tareq Ahmed Siraj

    Hi evey1, I am working on a dll addon for an app1 where i need to retrieve some info from app2. but the app2 sdk allows only to collect data via WM_COPYDATA (it will send you to your window). Now, if I were to make a separate application for this, I would just collect the data from my WindowProc. But here I have to do this from a dll. Also I understand there is no HWND for a dll. One work around this problem i am thinking of is to create a hidden window from the dll and use its windowproc to handle WM_COPYDATA. But is there any other easier way to do this? I am not using MFC but might consider using MFC if this can be done easily. Thanks in advance ppl. - tareq of all the things i've lost, i miss my mind the most

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

  • VS.NET IDE hangs
    T Tareq Ahmed Siraj

    Hi all, got a weird issue... got my new laptop and was installing VS.NET 2003 on it... but after a successful install, when i run the ide, it starts very slow (after almost 3/4 mins). Also when i create a new project, it takes similar time ... i looked at task manager, it shows all processes normal. I'm running Windows XP SP2 /w all the latest updates. Any idea why this is happening? Thanks in advance ppl... - tareq of all the things i've lost, i miss my mind the most

    Visual Studio visual-studio csharp help question

  • How do I record sound using DirectSound?
    T Tareq Ahmed Siraj

    Get yourself the microsoft directx 9 sdk[^] and look @ the 'CaptureSound' sample. - tareq

    C / C++ / MFC question graphics game-dev

  • connecting to a remote mysql database from an mfc application
    T Tareq Ahmed Siraj

    For remote connections, i think you need to add your remote ip to the mysql database table (dont exactly remember which one... check the manual). If it worked for localhost, it should also work for remote host after you have the permission for the remote ip. Hope this helps. - tareq

    C / C++ / MFC c++ database mysql com tutorial

  • thanx
    T Tareq Ahmed Siraj

    Does the adapter show up in your phones and modems list in control panel? - tareq

    C / C++ / MFC

  • clipboard
    T Tareq Ahmed Siraj

    The easiest way to find out what header/lib to use, look up the function in MSDN and at the bottom you'll find function information. Hope this helps. - tareq

    C / C++ / MFC c++ tutorial learning

  • clipboard
    T Tareq Ahmed Siraj

    Yes... read the image file (look for hints and code in the forum and articles) and then use ::SetClipboardData() (look it up in MSDN ... there is also an example there.). Hope this helps. - tareq

    C / C++ / MFC c++ tutorial learning

  • Golden Rule in Programming...
    T Tareq Ahmed Siraj

    Serious Sam? works for me... :-D - tareq

    C / C++ / MFC help question

  • Help URGENT!!! Need to display an image whose path is decided at run time.
    T Tareq Ahmed Siraj

    Assuming youre using MFC ... use the following code...

    HBITMAP bmp = (HBITMAP)::LoadImage(::GetModuleHandle(0), _T("Coffee.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
    CBitmap* pBitmap = CBitmap::FromHandle(bmp);
    CPaintDC dc(this);
    CDC memDc;
    memDc.CreateCompatibleDC(&dc);
    CBitmap* pMemBmp = memDc.SelectObject(pBitmap);
    dc.BitBlt(0,0,200,200,&memDc,0,0,SRCCOPY); //put your image width,height for the 3rd and 4th param
    
    memDc.SelectObject(pMemBmp);
    ::DeleteObject(bmp);
    

    - tareq

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

  • Help URGENT!!! Need to display an image whose path is decided at run time.
    T Tareq Ahmed Siraj

    Use ::LoadImage() ... look it up in MSDN. Hope this helps. - tareq

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

  • MFC CreteProcess
    T Tareq Ahmed Siraj

    Shouldnt this be something like....

    CreateProcess("C:\\Program Files\\Microsoft Visual Studio\\Common\\MSDev98\\Bin\\msdev.exe",NULL,NULL,NULL,TRUE,DEBUG_PROCESS
    ,NULL,NULL,NULL,NULL)
    

    Hope this helps. - tareq

    C / C++ / MFC csharp c++ visual-studio question

  • Execute Program without waiting for termination
    T Tareq Ahmed Siraj

    Why not simple ::SellExecute()? Try this...

    ::ShellExecute(NULL, _T("open"), _T("c:\\windows\\notepad.exe"), _T(""), _T(""), SW_SHOW);
    

    Hope this helps. - tareq

    C / C++ / MFC

  • Howto Hide the tab captions
    T Tareq Ahmed Siraj

    Thanks for a lot for your reply... I'll go through it. - tareq

    C / C++ / MFC

  • Howto Hide the tab captions
    T Tareq Ahmed Siraj

    How do i get the button id for a specific tab page? Thanks. - tareq

    C / C++ / MFC

  • Howto Hide the tab captions
    T Tareq Ahmed Siraj

    Sorry about the misunderstanding i've created. Let me be more specific. I havent done much programming with tab controls... I have a MFC tab control. I've got rid of the borders by setting the tab style to buttons. Now i have the tabs with buttons associated with them. Now i dont want even the buttons to be there. I want to control the tabs using SetCurSel()... no button clicks. Thanks in advance. - tareq

    C / C++ / MFC

  • Howto Hide the tab captions
    T Tareq Ahmed Siraj

    Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq

    C / C++ / MFC

  • Howto Hide the tab captions
    T Tareq Ahmed Siraj

    Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq

    C / C++ / MFC

  • custom static control lin vc++
    T Tareq Ahmed Siraj

    For painting the bitmap into your static, use

    CPaintDC dc(this);
    CDC MemDc;
    CRect rcClient;
    GetClientRect(&rcClient);
    MemDc.CreateCompatibleDC(this->GetDC());
    CBitmap* pMemBitmap = MemDc.SelectObject(&m_Bitmap); //m_Bitmap is the handle to your bitmap
    if (pMemBitmap)
       dc.BitBlt(0, 0, rcClient.right, rcClient.bottom, &MemDc, 0, 0, SRCCOPY);
    MemDc.SelectObject(pMemBitmap);
    

    Sorry cant help you with the scrollbar thing... hope this helps. - tareq

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

  • Hi... Great People....
    T Tareq Ahmed Siraj

    Look for CCommandLineInfo for the MFC way in the MSDN docs ... You can also use ::GetCommandLine() Win32 API for the passed command line. Hope this helps. - tareq

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