|
0x1a = 26
0xa1 = 161"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
i think Ctrl+Z key combination genrates an end of file marker character which is defined by the EOF macro.
--Cool_Dev--
|
|
|
|
|
Do you want to know the value of Ctrl+Z?
It's so easy!
You don't need to ask anyone,you don't need the characters table.
What you need to do is:
Run ComTrace, then type the "Ctrl+Z" in HyperTerminal,It's ok!
You can get '1A'
http://www.armecos.com/en/comtrace.html[^]
|
|
|
|
|
hi all
I am using copy command in createprocess() but this is not working
I am writing following code but this is not working
AnsiString cmdpath = "copy /b c:\\000.mp3+c:\\001.mp3 c:\\out.mp3";
PROCESS_INFORMATION pInfo;
STARTUPINFOA sInfo;
DWORD exitCode;
memset (&sInfo, 0, sizeof(sInfo));
sInfo.cb = sizeof(sInfo);
sInfo.cb = sizeof(STARTUPINFOA);
sInfo.lpReserved = NULL;
sInfo.lpReserved2 = NULL;
sInfo.cbReserved2 = 0;
sInfo.lpDesktop = NULL;
sInfo.lpTitle = NULL;
sInfo.dwFlags = 0;
sInfo.dwX = 0;
sInfo.dwY = 0;
sInfo.dwFillAttribute = 0;
sInfo.wShowWindow = SW_FORCEMINIMIZE ;
ShowMessage(cmdpath);
CreateProcessA(NULL, cmdpath.c_str(), NULL, NULL, FALSE,NULL, NULL, NULL, &sInfo, &pInfo);
if(WaitForSingleObject(pInfo.hProcess,INFINITE)== WAIT_OBJECT_0)
{
ShowMessage("Success");
}
|
|
|
|
|
CreateProcess requires an executable file's path. You may have to use cmd.exe and pass "copy" as the commandline argument.
|
|
|
|
|
The process name could be "cmd"
and its parameter - "/c copy ..."
|
|
|
|
|
Thanks Eugen for reply
now its working
|
|
|
|
|
But why don't you just copy the file from within the program? Now you'll run a Cmd to do the copy. Bet your language can copy the file with just 1 line of code....
|
|
|
|
|
Use the CopyFile [^] Win32 API function instead.
|
|
|
|
|
Hi,
I'm using MFC MDI application i'm doing drag and drop operation from one view to the another view, and my question is when dragging i need to drag image of the source item to the destination item. I tried this but when mouse enters in to the next view it only shows the mouse pointer.
How to copy image from one view to the another when mouse enter in to the next view?
Thanks,
Mark.
|
|
|
|
|
The dragged image is not a cursor but a property of the control.
This control (your CTreeCtrl) and not another knows how to draw it
You could overwrite this behavior
to use the different cursors of the classical dragging only,
without any private images...
|
|
|
|
|
One of my applications gives in some condition an application error that is recorded in Event Viewer->Application with:
- Category: None
- Type: Error
- Event ID: 1000
At its first version the program ended like this:
- create a window object with <code>new</code>
- run some jobs
- ends with <code>exit(0)</code>
I upgraded the program by using delete before exit .
The problem decreased in frequency but didn't disappear. Why?
P.S. Program written in VC++6.
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
What is the description for this event in the log?
For example, you may have something like this:
Event ID: 1000
Event Source: Userenv
Description:
Windows cannot determine the user or computer name. Return value (1722).
( see http://support.microsoft.com/kb/261007[^] )SkyWalker
|
|
|
|
|
Event<br />
Date: 17.Feb 10<br />
Source: Application Error<br />
Time 20:26:23<br />
Category: None<br />
Type Error<br />
Event ID: 1000<br />
User Me<br />
Computer: My Computer<br />
<br />
Description:<br />
<br />
Faulting application MYAPP version 0.0.0.0, faulting module MYAPP, version 0.0.0.0 address 0x0001a1a0
Other addresses are:
0x000192a0, 0x0001a200, 0x00019380, 0x0000af61, 0x000193d0, 0x000194a0, 0x00016384, 0x00019580 .
Need other information?
P.S. Can I email you?
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
i need a c code for job optimization in genetic algorithm ....if you have please send it soon
|
|
|
|
|
if you have please send it soon
|
|
|
|
|
http://www.codeproject.com/KB/cpp/Genetic_Algorithm_in_C.aspx
|
|
|
|
|
Hi,
Can anybody tell me how to run an exe by default in Run as Admin mode irrespective of the user.Please help me with the source code in mfc.
|
|
|
|
|
This can be controlled using the manifest file for your project.
You will the .manifest file which is an XML file in your debug or release folder depending on you current configuration.
There is a node called requestedExecutionLevel that controls this.
By default this will be asInvoker .
The available options here are -
requireAdministrator
asInvoker
highestAvailable
Using these levels, you can tell how the application must start.
|
|
|
|
|
Thanks for your reply.I tried to edit the .manifest file.But its changing after each build.Can you please tell me the whole process how to do it?
|
|
|
|
|
|
Sorry that I didn't tell you how to do it.
Take Project Properties -> Configuration Properties -> Linker -> Manifest File -> UAC Execution Level .
Here you have a drop down box from which you can make your selection.
|
|
|
|
|
Hi,
Thanks again for your reply . I changed the settings of the project according to you.But it didn't solve my problem.I am explaining my problem to you in details.I want to access the hard disk of my system without being logged on as Administrator.I have created another user,but its unable to retrieve the handle of my hard disk. If I am running my application as Admin and giving the password then its working fine. I hope I have successfully explained you my problem.Please give a solution to my problem.
|
|
|
|
|
Only a process with administrative privileges will be able retrieve a handle to the hard disk.
If the user is not an admin, you will have to give the admin privileges (username and password) for it to work.
If any other way was possible, it would be a security breach.
|
|
|
|
|
Hi
I got a c++ subroutine to generate normal deviates with zero mean and 1 standard deviation. I need to know how to generate a general normal distribution with a mean and standard deviation.
Thanks
|
|
|
|