|
HI.
I am running my application using command prompt.
like C:\> D:\App.exe
after launching this Application the command prompt come back to prompt again
like C:\>
does it means that application has been ended . but the appliccation is still running
then how can I come to know that application is still running using command prompt
thanks
Regards.
|
|
|
|
|
when you type : c:\ D:\App.exe and comes back to c:\
it will happen ...Here you are not changing the drive to access but just specifying the path of your exe.
Your exe will start as a new process ....so you have to eplicitly terminate your application
Cheers
"Peace of mind through Technology"
|
|
|
|
|
OK, Thanks.
But I have one more question that when we run Format command or some other command on Comand prompt, then why these comand are not run as new process. they usualy run in same command prompt and will not free the prompt until the command execution ends
Regards.
|
|
|
|
|
zahid_ash wrote: Format command or some other command on Comand prompt
That is because those are Command-line applications. Back in the days of DOS, all applications were Command-line.
this is this.
|
|
|
|
|
zahid_ash wrote: HI.
I am running my application using command prompt.
like C:\> D:\App.exe
after launching this Application the command prompt come back to prompt again
like C:\>
does it means that application has been ended . but the appliccation is still running
then how can I come to know that application is still running using command prompt
if the application is Command prompt based then it runs fine...
but if it is windows based then application chooses the windows platform to run and application's info enters into windows enviornment not into DOS environment even it run from command prompt.
if you want to check the application running state then you have to check into running processes by enumarating processes or any other way.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
CAN SOMEBODY HELP ME PLZ
iam using mfc with mysql
how can i fetch only single row from mysql table from vc++(MFC)
when i write
mysql_query(myDB,"SELECT * FROM empinfo4 e,proinfo4 p");
(" WHERE empid = \'" + f + "\' and e.gid = p.gid ");
res=mysql_store_result(myDB);
if (!res)
{
MessageBox("Could not run query");
}
row = mysql_fetch_row(res);
this will give the first row from the mysql table only
it will not give other rows
how can i fetch other row when i give id on form at run time and it will fetch the row which matched in the mysql table
so id is recieved by:
GetDlgItemText(IDC_EMPID,id);
here id is value which i enter in the edit control
and i want that whenever i enter id value it display only that row which matchee in the mysql table row
plz help me in this regards
hi
-- modified at 1:02 Tuesday 6th June, 2006
|
|
|
|
|
Hi all,
I'd like to know, whether itz possible to send "Integers" and "arrays" through a RS-232 interface??is there any way to do it??
Thanks in advance,
rajeev
-- modified at 0:40 Tuesday 6th June, 2006
|
|
|
|
|
The RS232 interface is just that, a simple interface. How you send data depends on your protocol.
The tigress is here
|
|
|
|
|
I believe it is possible, but you would have to send them over byte by byte, and then decoding them back to the original form at the other end. Actually much of the time, you would create an array of some data, either ASCII or Binary, but it takes the same way to send.
this is this.
|
|
|
|
|
rajeev82 wrote: I'd like to know, whether itz possible to send "Integers" and "arrays" through a RS-232 interface??is there any way to do it??
Rs232 only understand Bytes.. so you have to interpret your Sending and receiving data!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
On MouseMove event, how to capture a particular listitem? Basically, want to change the cursor on mouseMove on a specific column of the list control. Need to put a hand cursor on mousemove event. If the mouse is moved on a specific list item. only parameter in OnMouseMove is CPoint. Unable to get the subitem name.
Any clues please.
Thanks
Raji
|
|
|
|
|
Use the CListCtrl::SubItemHitTest() method to determine which item and subitem the mouse is over
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I used the following code. But it does not take the correct column.
The part of code is in OnMouseMove event:
void CListt::OnMouseMove(UINT nFlags, CPoint point)
{
CPoint pt(point);
ScreenToClient(&pt);
LVHITTESTINFO hitInfo;
hitInfo.pt = point;
int nItem = -1;
nItem = m_list.SubItemHitTest(&hitInfo);
if (nItem >= 0)
{
m_list.SetItemState(nItem, LVIS_SELECTED, LVIS_SELECTED);
}
if (nItem >= 0 && hitInfo.iSubItem > 0)
{
int m_nSubItemHit = hitInfo.iSubItem;
if ( hitInfo.iSubItem == 8)
SetCursor(hCursor);
}
}
I need to change the cursor if subitem is "8". But even if move the mouse on the 8th subitem, the value of hitInfo.iSubItem is some thing else. moreover nItem is always -1.
Any clues please
Thanks
Raji
|
|
|
|
|
You don't need to call ScreenToClient() as the point is already in client coordinates when your message handler receives it.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
if I known the CLSID={986A04A31-C417-432F-A4EA-3243D7B681CFF0}
how could I load this component without a file name?
if there is also a filename with the CLSID,such as 'test.dll',
how to load this componet then?
Thank you.
|
|
|
|
|
For a registered COM object the normal way to instantiate it is by using the CLSID via the CoCreateInstance API.
Steve
|
|
|
|
|
CString sguid =_T("{8FA04A31-C417-432F-A4EA-63D7B681CFF0}");
CLSID clsid;
USES_CONVERSION;
if (SUCCEEDED(CLSIDFromString(T2OLE((LPCTSTR)sguid),&clsid)))
AfxMessageBox("We have got CLSID");
CoCreateInstance(clsid,NULL,0,??,NULL);
But,How to set the fourth param? And If I also got the filename,how to use it?
thank you!
|
|
|
|
|
Using ATL I'd use code something like this:
CComPtr<IUnknown> spUnk;
spUnk.CoCreateInstance(clsid);
Note however that it's very strange to create a COM component and not to know which interface you want from it.
Steve
|
|
|
|
|
[General]
;This is the name displayed in Myie2 which indicate your plugin
Name=PowerBand
Author=AWater
Version=1.0
ModuleType=COM
Comments=PowerBand
Type=M2Plugin_SideBar
FileName=PowerBand.dll
CLSID={8FA04A31-C417-432F-A4EA-63D7B681CFF0}
HotIcon=pb.ico
Icon=pb.ico
This is a pluin.ini of PowerBand for myie.
I want to known how to run this plugin in code.
I tried but failed. Could you give me a help?
Much thanks.
Alick
|
|
|
|
|
You say it's a plug-in; a plug-in for what? Generally a plug-in is only useful within a specific context. For example, an IE plug-in is only useful within the context of IE as the plug-in expects certain services from IE and IE expects specific services from the plug-in. To use the plug-in on its own you would have to implement the client side of the relationship. Can you be clearer about what you're trying to achieve?
Steve
|
|
|
|
|
Thank you Steve.
I knew what you mean.
But I found that.There is a msn messenger button on IE toolbar.
And I searched the web that there is only a CLSID for IE to excute msnmsgr.exe.
But how?I have no idea.
Thank you.
Thank you.
Thank you.
|
|
|
|
|
Does anyone have a sample project of saving data and retrieving
it? This sounds like an undergraduate project, but its not
and Im really stumped because there is alot more too it. I currently
am saving and retrieving using basic c commands that I learned
along time ago. I like to know how to use CDocument or see an
example of it.
How can I find an example of a project that saves a project as
say .xyz file and then lets the user retrieve that file.
Please, any response any one can give me will be greatly
appreciated. My email address is brinasas@yahoo.com
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
In windows XP, OnDeviceChange work fine, and when i use it under windows 98, it couldn't work. What should i do to fix this trouble?
|
|
|
|
|
Could someone help me? I just want to detect whether the CD/DVD disk were inserted into the CD-ROM.
|
|
|
|
|
I fixed this problem using another method.
|
|
|
|