thanks a lot. - tareq of all the things i've lost, i miss my mind the most
Tareq Ahmed Siraj
Posts
-
Handle WM_COPYDATA from inside a DLL? -
Handle WM_COPYDATA from inside a DLL?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
-
VS.NET IDE hangsHi 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
-
How do I record sound using DirectSound?Get yourself the microsoft directx 9 sdk[^] and look @ the 'CaptureSound' sample. - tareq
-
connecting to a remote mysql database from an mfc applicationFor 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
-
thanxDoes the adapter show up in your phones and modems list in control panel? - tareq
-
clipboardThe 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
-
clipboardYes... 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
-
Golden Rule in Programming...Serious Sam? works for me... :-D - tareq
-
Help URGENT!!! Need to display an image whose path is decided at run time.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
-
Help URGENT!!! Need to display an image whose path is decided at run time.Use ::LoadImage() ... look it up in MSDN. Hope this helps. - tareq
-
MFC CreteProcessShouldnt 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
-
Execute Program without waiting for terminationWhy not simple ::SellExecute()? Try this...
::ShellExecute(NULL, _T("open"), _T("c:\\windows\\notepad.exe"), _T(""), _T(""), SW_SHOW);
Hope this helps. - tareq
-
Howto Hide the tab captionsThanks for a lot for your reply... I'll go through it. - tareq
-
Howto Hide the tab captionsHow do i get the button id for a specific tab page? Thanks. - tareq
-
Howto Hide the tab captionsSorry 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
-
Howto Hide the tab captionsThanks 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
-
Howto Hide the tab captionsHi 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
-
custom static control lin vc++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
-
Hi... Great People....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