|
Ya, have linked necessary libraris
ntoskrnl.lib hal.lib ,
Please help.
Thanks
|
|
|
|
|
rajeevktripathi wrote: Ya, have linked necessary libraris
ntoskrnl.lib hal.lib ,
You are missing something! Do check again for the required libraries.
Nibu thomas
Software Developer
|
|
|
|
|
hai everyone
i would like to know how can have different colors for the items present in a list control
|
|
|
|
|
|
Whitesky gave you a good link. But for starters this[^] one by Michael will help you a lot.
Nibu thomas
Software Developer
|
|
|
|
|
Friends,
When we create a PropertySheet, the tabs appear on the top. I want to show tabs at the bottom just like tabs of Visual Studio workspace window. How can i do so ?
Imtiaz
|
|
|
|
|
u can get the tabcontrol of a property page using GetTabControl()..
Then just set the TCS_BOTTOM style
m_GetTabControl()->ModifyStyle( 0, TCS_BOTTOM );
nave
|
|
|
|
|
It worked (y) Thanks...
Imtiaz
|
|
|
|
|
Hi,
Use TCS_BOTTOM style. This style is not supported if you use ComCtl32.dll version 6 (Refer MSDN).
Adios,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
hai everybody
I have a problem in retrieving the size of the file.i have to monitor the directory and i have to show the filr name ,file size and date and time of file which is monitored.here i want to know how can i retrieve the size of the file.is there any function which can be used to retrieve that one.
If any body knows help me to get it done.
|
|
|
|
|
keerthikaaa wrote: is there any function which can be used to retrieve that one.
GetFileSize()
nave
|
|
|
|
|
Do something like that,
int fh = _open("myfile.txt", _O_APPEND , _S_IREAD | _S_IWRITE );<br />
int filesize = _filelength(fh);<br />
<br />
if (filesize == 0)<br />
{do something}
This requires following header files
1. io.h
2. fcntl.h
3. sys\stat.h
Good luck
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
An other approach is to use
FindFirstFile, and then the structure WIN32_FIND_DATA is filled with the file size as follows:
The size of the file is equal to (nFileSizeHigh * (MAXDWORD+1)) + nFileSizeLow.
both nFileSizeHigh and nFileSizeLow are members of the structure WIN32_FIND_DATA.
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
This is the better method, because the file should be opened in those solution sent by other guys.
- NS -
|
|
|
|
|
Hello
I want more than one image in a single cell of a list control (Report view ). is there any direct method.
I tried with a custom class derived from CListCtrl but sizing the pictures to fit into the cell is the problem .
I am selecting a row by changing the bhcolor of that particular row. If i place an image on a cell in that row the picture is not appearing transparant. ie, the selection background is not displaying for that image. How can I over come this ?
Thanks in advance
Sandeep A.C
Sanc
|
|
|
|
|
|
Sandeep A.C wrote: I want more than one image in a single cell of a list control (Report view ).
There is a way...
1. First create a memory dc and draw the three bitmaps to the dc...
2. Thake the current bitmap from the memory dc..
3. Add that bitmap to the Image list...( I think u have to create the image list with a width equal to the combined with of the three images)
4. Set the image to the column as usuall
Sandeep A.C wrote: the selection background is not displaying for that image. How can I over come this ?
for this u have to draw the image by userself.. u can use CImageList::DrawIndirect
nave
|
|
|
|
|
can u plz send a mail to
sancres_memail@myway.com
I will explain my problem in detail
Sandeep A.C
Sanc
|
|
|
|
|
Plz see ur inbox
Sandeep A.C
Sanc
|
|
|
|
|
ok i will try to make a sample application and send it to u..
but not soon..May be tommorow..
nave
|
|
|
|
|
Thank You
Thank you very much
SAndeep A.C
Sanc
|
|
|
|
|
The following code is written in OncLose Function.
void CMainFrame::OnClose()
{
m_pFMApplicationv7->Release();
m_pFMApplicationv7 = NULL;
CoUninitialize();
CFrameWnd::OnClose();
}
m_pFMApplicationv7 is a Interface Pointer of COM Object which is created using CoCreateInstance.The COM server is written in .NET-C#.Client is MFC.
When I close the application I got the following excepton.
Unhandled Exception in CFDlink.exe (KERNEL32.DLL):0XE0434F4D) : (NO NAME)
Kindly help me to resolve this issue.
Regards
Lavate Mallikarjun Avanna
Flowmaster India Pvt. Ltd.
-- modified at 0:41 Wednesday 26th April, 2006
|
|
|
|
|
Click on retry and debug. Take a look at the Call stack to find out what's causing this exception.
Nibu thomas
Software Developer
|
|
|
|
|
Hi Nibu,
I had done the debug I found at following location in Disassembly it throws the exception.
77D4B517 CALL 77D494A4.
In the call stack at the following location it throws the exception.
USER32!77d4b517().
Let me know what is the actual problem after viewing the above lines.
Regards
Mallikarjun
-- modified at 1:02 Wednesday 26th April, 2006
|
|
|
|
|
Take a close look at the call stack to see if it lists any of your functions or any of the functions that you have called.
Nibu thomas
Software Developer
|
|
|
|