|
why you use HBITMAP hSourceBitmap you can use m_Bit.m_hObject and i think you dont need to hbitmap handle
|
|
|
|
|
|
How can i hide a procees showing itself in processes list in windows xp.
is it possible.??
|
|
|
|
|
Why would you want to?
100% natural. No superstitious additives.
|
|
|
|
|
I need this for a project that project requires that program will run as service and service listening to some port. it can run any other application using some commands. and new processes that are started through service shud not be seen in processes list
i just want to know is it possible to hide a process from processes list.
|
|
|
|
|
AFAIK, that is not possible, unless you write some kernel extension. This is what rootkits normally do, and is not considered "kosher". It's also a bad idea to hide processes like that, in case you need to kill a process manually.
Why the tough restriction on process visibility, if I may ask?
--
100% natural. No superstitious additives.
|
|
|
|
|
You souldn't want to; unless you're a virus writer or some such.
Steve
|
|
|
|
|
you asked like here[^] I believe thats not good
|
|
|
|
|
Hi
How can I access public variables of CChildFrame and CMyApp from my CView?
Or:
How to access CChildFrame and CMyApp from any other class?
I tried:
<br />
CMyApp theApp;<br />
theApp.public_data = ...;<br />
but this is not working.
Please HELP me
CU Timen
|
|
|
|
|
|
hi all
i have a mfc dialog application in Visual Studio 2005.
How to limit it to one instance ?
thank you.
|
|
|
|
|
Hi
A common way to handle one instance is using an identifier
<br />
BOOL CMyApp::InitInstance()<br />
{<br />
HANDLE hMutex = CreateMutex (NULL, TRUE, "MY APP IDENTIFICATION");<br />
if (GetLastError() == ERROR_ALREADY_EXISTS)<br />
{<br />
AfxMessageBox("Alreay running!");<br />
return FALSE;<br />
}<br />
if(hMutex) ReleaseMutex (hMutex);<br />
...<br />
}<br />
CU Timen
|
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
|
Hi,
We have a C++ service that needs to scan the filesystem and report back an inventory. Some filenames are in Hebrew.
Our project is currently Multibyte, we use CString and CFileFind, and the Hebrew characters are shown as '???'.
Can someone explain if we MUST switch to UNICODE or is there some way to make it work in MBCS ? I was under the impression MBCS also supported other languages. I see I can use CStringW to hold Hebrew chars, but CFileFind still returns '?' characters... Is there a way to define UNICODE locally only for a certain class ? I tried, but CString still isn't UNICODE since afxwin.h is included in the precompiled header.
The problem is switching to UNICODE causes a ton of errors all over the place, and in some classes we downloaded from the web, which used CHAR in some places instead of TCHAR.
I'll appreciate any advice,
Ben
|
|
|
|
|
SBCS and MBCS only work if you know which code page you are working in. You should do this application in UNICODE.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
with win32 ...
any one have example ...
|
|
|
|
|
Hi
Is it possible to get Admin rights for the process...If not possible, is there any api call for executing "RunAs " command ie, run a command with different user credentials...
Please suggest me how to get admin rights for the non-admin user...
Best regards,
nag.
|
|
|
|
|
|
Is it possiable to debug a dll?
How to do it. can any one help me with links.
Thanks.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
G Haranadh wrote: to debug a dll?
Not quite sure but
1) DLL has to be a debug-build one.
2) Debugger has to locate the .pdb file which came from building the DLL.
3) Source code (not sure)...
Maxwell Chen
|
|
|
|
|
Yes - those three things are all needed. Another thing needed is an application to host the DLL and "exercise" its exported functions, classes, and resources.
What I usually do when I am debugging a DLL is make it a subproject of the app's solution. I find that it becomes easier to make changes and rebuild both the app and the library when I do this.
|
|
|
|
|
I manage my project this way:
[Folder hierarchy]
<br />
.\exe\<br />
.\dll_a\<br />
.\dll_b\<br />
.\dll_c\<br />
.\sys_a\<br />
.\sys_b\<br />
Maxwell Chen
|
|
|
|
|
Here I am giving the step by step procedure to debug a DLL.
For simplicity ,assume the DLL name is test.dll and application that is using the Dll is testapp.exe.
In the vc6
1.open the dll source
2.Project->Settings and goto Debug tab,
3.Under executable for debug section, browse the testapp.exe.
4.under link tab,output file name path shoud be the same path as that of the exe path.
5.Now you can start debugging , by keeping breakpoints.
Hope this helps.
AppU..
|
|
|
|