|
Dear All,
I am developing an application in VC++ Version 6.0 for Windows
2000/XP and want to have following functionality in it :
"Whenever the user right clicks on any drive, a menu is opened with
various options,and one of them is to Format the drive.I want to
replace the format window dialog box with my own custom dialog box."
So, is it possible to replace the windows format dialog box(which
comes when we try formatting a drive using right click) with our own
format box???
Is this functionality of windows is in form of a dll ? If it is so,
then i suppose we can replace that dll. (A case i know is that like
gina.dll contains the window that appears upon ctrl+alt+del and we can
replace this dll with our own). But i am not very clear on this issue.
Please suggest!
Regards,
Rohit
|
|
|
|
|
The format dlg is displayed by the API SHFormatDrive() , so in order to change that you'll need to hook that API. This is more complex than a simple shell extension.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
Dear all,
Question - I want to change the entry point of my program to some "MyFunction". I know that, it can be done by taking project Settings, Link tab, then Input section and specify the entry point.
But my requirement is to done it by code using any #pragma or any other preprocessor like that. Please help me.
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
#pragma comment(linker, /entry:"MyFunction")
Bikram Singh
I believe we should all pay our tax with a smile. I tried - but they wanted cash.
|
|
|
|
|
Dear bikram,
Thanks a lot.
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
Hello Sir,
really i tried that->
#pragma comment(linker, /entry:"MyFunction")
but sad i didn't able to work it out.
pls help me in this.
thanks
-----------------------------
"I Think It will Work"
Formerly Known As "Alok The Programmer" at CP
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Unfortunately, that doesn't work. According to the MSDN, you can only use the /DEFAULTLIB, /EXPORT, /MERGE, /INCLUDE, and /SECTION linker options in a #pragma comment(linker,...) .
Software Zen: delete this;
|
|
|
|
|
hello i am working on a little information database for a game a friend of mine plays well everything is working smoothly but , i have been trying to make it so that when they get new information they can add it to a combobox through an editbox .. and the combobox will hold the information in the dropdown .. but i cant seem to get anything..
thank you for your time
|
|
|
|
|
nm i finaly got it needs a little tweaking but will have it shortly
thank you for your time
"Effort within the mind further limits the mind, because effort implies struggle towards a goal and when you have a goal, a purpose, an end in view, you have placed a limit on the mind"
|
|
|
|
|
hello,
i want to find the cpu usage time of a process.
i tried to use NtQuerySystemInformation in
ntdll.dll.
the syntax..
NTSTATUS NtQuerySystemInformation(
SYSTEM_INFORMATION_CLASS SystemInformationClass,
PVOID SystemInformation,
ULONG SystemInformationLength,
PULONG ReturnLength
);
i declared a pointer to function (the above func)
and tried to call it dynamically by using
LoadLibrary & GetProcAddress....
but, the program is giving a compilation error:
saying that -
NTSTATUS & SYSTEM_INFORMATION_CLASS are undeclared identifiers...
can anyone please help...
thank you..
|
|
|
|
|
|
I'm working on Shell Programming..
What I wanna know is how to get system icon index by using IShellFolder interface..
When I worked with SHGetFileInfo, I could get the index by reteiving iIcon value in SHFILEINFO structure which is retured from SHGetFileInfo function..
but even though I got the IExtractIcon pointer from IShellFolder interface,
I couldn't find any functions or flags in IExtractIcon interface..
Does anyone know info about this.?
ps. sorry for my poor english..
Thanks in advance..
|
|
|
|
|
long StrFind( LPCTSTR lpExpression, ULONG nStart, LPCTSTR lpFind )
{
CONST ULONG lpFindLength = strlen( lpFind );
ULONG nPos = nStart;
TCHAR lpTemp[lpFindLength+1];
...
ok, i thought using CONST for lpFindLength
would stop that annoying "expected constant expression" error, but i guess not,
so does anyone know how to solve this problem, or am i just going to have define lpTemp like this?
TCHAR lpTemp[512];
|
|
|
|
|
TCHAR lpTemp = new TCHAR[lpFindLength + 1]; Just be sure to delete[] it when you are done.
The compiler can not reserve stack space for your array if it does not know at compile time how big your array is, that is why you get the error.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
i have a project which being planed to pretent API HOOK by other programs.
for instance. I want to use the WINAPI OpenProcess function. But it is easily to Hook by other program by GetModulHandle("Kernel32.dll")...........
so i changed the file name of the "Kernel32.dll" to "myprocess.dll" and put it in my project and i want to use the OpenProcess function in "myprocess.dll" but not in the "Kernel32.dll" anymore
anyone who knows how to do it?
many thanks
|
|
|
|
|
I've found a lot of documentation regarding how to add a sink interface for ActiveX controls. However, I'm having difficulty finding a good definition of what exactly a sink interface is.
I'm a beginning programmer. I'm currently reviewing some technical documentation at work and I need to have a clear understanding of what a sink interface is.
Thanks in advance!
Ian
|
|
|
|
|
Can someone send me some sample code to display uninstalled fonts? Some thing like the 'The Font Thing'
Also, how to dump the displayed font to an image file (jpg/gif/bmp) (displayed text in an image file)
Thanks
pgeorge64@yahoo.com
|
|
|
|
|
Temporarily load the font using AddFontResourceEx(). The font is now installed in the system for the current session. The next time the system starts, this font wont be loaded automatically. You can also use the RemoveFontResourceEx() function to unload a font.
Bikram Singh
I believe we should all pay our tax with a smile. I tried - but they wanted cash.
|
|
|
|
|
How can i change the Color of text being displayed in a CStatic control ?
|
|
|
|
|
Hey
Can we Creat Threads in DLL???
Shailesh
|
|
|
|
|
Yes, you can. i do this all the time. I use a thread pool created in a dll in my main application.
John
|
|
|
|
|
Hello John
I am creating a Win32DLL in which i am passing the address of a function like
extern "C" __declspec(dllexport) BOOL ReadCard(char *pData)
{
if(g_hPort == NULL)
{
strcpy(pData,"COM port is not opened");
return false;
}
g_hThreadRead = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)MyMSR_PortReadThreadMgr, 0, 0,&dwThreadID);
return true;
}
But this thread is created but not executing the functions. I have declared the function like
DWORD WINAPI MyMSR_PortReadThreadMgr(LPVOID param)
{
}
But it is not going to this function can you suggest me some thing
Thanks in advance
Shailesh
CeateThread(
|
|
|
|
|
aman2006 wrote:
But this thread is created
How did you check this?
aman2006 wrote:
But it is not going to this function
And this ?
Code seems fine to me..
Bikram Singh
I believe we should all pay our tax with a smile. I tried - but they wanted cash.
|
|
|
|
|
I am creating a view in a splitter which has a titled opengl scene, but I can't fix the problem of repainting the window when parts (the text..) are obscured.
Note: I want the window text to be separate from the opengl rendered scene.
Right now, I am drawing the text using DrawText after the scene is rendered. Unfortunately, when the text is covered it does not repaint in the window. I thought the best solution would be to use a virtual window, but I have had problems with that. At first I tried to just store the title text in the virtual window and paint it on the opengl scene (since the opengl seems to have no repainting issues), but that did not work. My other thought was to put the opengl scene and the text into a virtual window, but I'm not sure how to draw the opengl scene to a virtual window. Is there a "proper" way to solve my problem? Any help or links to helpful pages would be appreciated. Thanks.
|
|
|
|
|
i'm writing a program that reduces fractions...the only problem is i don't know how to do this...help please
-b
|
|
|
|