|
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.
|
|
|
|
|
I know there is a Api can get icon from other application conveniently, but i forget which is it. Or is there any other methods can get icon from other application.
I need to load it and display it in my app.
|
|
|
|
|
ExtractIconEx()
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"
|
|
|
|
|
wanglei1980 wrote: I know there is a Api can get icon from other application conveniently, but i forget which is it. Or is there any other methods can get icon from other application.
you need ICON as Image or Handle Only.. If Handle ExtractIcon[Ex] will work, if you want Image then you have to use combination of UpdateResource, BeginUpdateResource and <mshelp:link tabindex="0" keywords="_win32_EndUpdateResource_cpp" xmlns:mshelp="http://msdn.microsoft.com/mshelp">EndUpdateResource
"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
|
|
|
|
|
Hi,
I am using Visual C++ 6.0 MFC on a Windows 2000 box. I want to be able to automate the creation of charts from my C++ application. I can create a chart of x-axis vs y-axis for a single series of data but I can't figure out how to do anything more powerful. My data is output to the spreadsheet as follows... cell A2 is the what should be the series name (device 1) cell B1 is the column header (Line Voltage) and cell C1 is the column header (Current). The current is measured for increasing line voltages and charted. My problems are twofold. How do I get the series name (device 1) to show up in the legend instead of 'series 1'? How do I get multiple series on a single chart? For example, if 5 different devices were tested the 'Line Voltage' (category / x-axis) would be the same for each device but the measured currents would differ. The cells for the 10 measured currents for 'device 1' would be C2 through C11. The cells for the 10 measured currents for 'device 2' would be C15 through C24. The cells for the 10 measured currents for 'device 3' would be C28 through C37 and so on. I have been all over the internet but have only found an example of how to create the simplest of charts. Any link to decent documentation on how to do this would be appreciated.
Thanks
Buck
|
|
|
|
|
Since I usually get a quick response and have not heard anything in 24 hours I'm going to assume that this can't be done.
Buck
Buck
|
|
|
|
|
I am looking for help to display 12 waveforms in one graph. The waveform will have the same horizontal time axias, stacked up as 12 different channels. Such as:
Any code, functions to do this ?
Thanks for any help.
-- modified at 18:55 Monday 5th June, 2006
|
|
|
|
|
Hi all,
I am interested on importing contacts from my msn messenger.
i know how to use the IMessenger2 interface and to loop over the get_MyContacts()....
the problem is that IMessenger2 is the windows messenger (msmgs.exe) and not the msn messenger (msnmsgr.exe).....so on windows 2003 server (which doesn't come by default with windows messenger), importing contacts doesn't work...
can any1 suggest how i can connect to the msn messenger and not to the windows messenger?
any exposed interface?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|