|
I have an Epson TM-T88II point of sale printer that is attached to a cash drawer. I have managed to find the escape sequence that opens the cash drawer but I cannot find the escape sequence that causes the printer to cut the paper at the end of printing a document. Can anybody help me out?
Thanks in advance for any info you can provide.
Steve.
|
|
|
|
|
Hi,
I need to implement graphical diagram for our product.
Its use is for graphical representation of data binding between controls and between tiers (right term? I mean which client to which server.).
I have littl idea about this yet, and would be very grateful if there are any good free code for starting point.
And..the worst act for my scenario is..
1.Say, when user loads data from disk, I know connection data between diagrams (controls) but have no information about graphical representation.
Then how can I draw visual connection between diagrams without intersection?
And how can I decide the best-viewing to user? Any Ideas?
2.Without #1's answer,should I archive all graphical connections between diagrams?
If so, how can I archive connection line's data to disk?
I guess there should be "node" concept, but it's hard to "HOW".
So I'm searching the best fitting free code for fast and reliable development.
Any suggestion? Thanks a million.
Regards,
Ryan
|
|
|
|
|
does anyone have an idea how I can cause a mouse drag programaticly. What api function could do this? Any help would be most appreciated.
Thank you,
SAK
|
|
|
|
|
I think SetCursorPos will do the trick.
You can find more information here:
MSDN Library
Platform SDK: Windows User Interface
SetCursorPos
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
I am using the SetCursorPos but this only moves the cursor, but what I need is to do a drag operation. So I need to cause a click and have the mouse button pressed until the drag operation is complete. How is it possible to keep the mouse button down.
Thanks
|
|
|
|
|
You are right.. I misread your message, thought you wanted to just move the pointer.
I would try sending a message to the window directly, you should obtain the Window Handle and then send a couple of message, maybe a WM_LBUTTONDOWN and a WM_MOUSEMOVE, I'm not sure how this is going to interact with the messages that the actual mouse is generating, perhaps SetCapture can help here..
Andres.
Buenos Aires - Argentina.
|
|
|
|
|
Hello,
I am trying to automate a task through the reading of a subject line in Microsoft Outlook. A certain subject line would trigger the running of another program, in this case, VisBuild.
Does anyone know how I could go about to do this, using either Visual Basic or Visual C++?
Your help would be greatly appreciated.
Thanks!
Melissa
|
|
|
|
|
Hello Melissa,
I am sure that there is a programatic interface to do what you want, however I have to ask if you have considered using the built-in Outlook Rules Wizard.
You can "Start an Application" based on specific words that exist on your subject line. This may satisfy your needs depending on your version of Outlook and whether you want this to be a client or server side rule.
Hth
~Cliff
|
|
|
|
|
Hi,
I'm looking for some source code as
basics for an ftp server. Does
anybody know a link or is working
on such a project ?
regards
Frank
|
|
|
|
|
Try the programmingparadise ftp server, though I don't remember the exact url.;P
I'm an alien, I'm an alien
it's a beautiful life....
Bush
|
|
|
|
|
can you explain "programmparadise ftp server" ?
btw: it must be a great feeling for you
to spread general methaphoric comments of
this kind you did. It's not an adequat moment
and its not the right place. If you know a solution
to the immense and tragic global problems,
then send a mail to the White House or/and
go to politics.
I hope, Germany will hold on standing
next to America.
Frank Haug, Germany
|
|
|
|
|
A bit of common sense might tell you to look at www.programmingparadise.com and further look at the code for Vikas Yadav's ftp server code as a starting point. But then people are lacking in strange ways.
I'm an alien, I'm an alien
it's a beautiful life....
Bush
|
|
|
|
|
I would like to see detailed article or the fragments of a code devoted to features of a printing graphics to the printer. In particular filling of areas by brushes, others than pattern and solid
|
|
|
|
|
You can only use solid brushes, because you need to stretchblt to a print DC. Anything else simply will become a dithered solid colour when you stretch it up.
Did I answer a version of this question in the C++ forum ? Maybe you should explain what you're trying to do ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
The problem is to force the following code correctly print to the printer:
CMyView::OnDraw(...)
{
CBitmap m_bitmap;
m_bitmap.LoadBitmap(IDB_...);
CBrush m_brush;
m_brush.CreatePatternBrush(m_bitmap);
CBrush * pOldBrush = pDC->SelectObject(&m_brush);
pDC->Rectangle(0, 0, 300, 300);
pDC->SelectObject(pOldBrush);
}
This code correctly draw on the screen, but on the printer is a empty rectangle?
|
|
|
|
|
To reiterate: a pattern brush cannot be stretched, and you need to stretchblt or set different logical units to compensate when drawing to a print DC. Therefore you cannot, cannot, print using a patternbrush. You'll need to grab the bitmap and stretchblt it instead.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
So, there is no way to fill in a figure any figure at a seal!
If it is possible, result please an example of a code!
|
|
|
|
|
So, there is no way to fill in a figure any figure at a seal!
If it is possible, result please an example of a code!
Not with a pattern brush, no. To fill in any figure, define it as a path and stretchblt a bitmap into it.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
If it is possible specify a sample code as it to make, and I not absolutely understand that!
|
|
|
|
|
I did it like this for solid colour:
if (m_bFilled)
{
brush.CreateSolidBrush(m_Colour);
WhiteBrush.CreateSolidBrush(RGB(255,255,255));
}
else
{
LOGBRUSH lb;
lb.lbStyle = BS_HOLLOW;
brush.CreateBrushIndirect(&lb);
WhiteBrush.CreateBrushIndirect(&lb);
}
pen.CreatePen(PS_SOLID,1,m_Colour);
whitePen.CreatePen(PS_SOLID,1,RGB(255,255,255));
CBrush * pOldBrush = NULL, * pOldMaskBrush = NULL;
CPen * pOldPen = NULL, * pOldMaskPen = NULL;
dc.SelectObject((HBITMAP)(pLayer->dib->GetHandle()));
dc.SetBkMode(TRANSPARENT);
dc.SetPolyFillMode(ALTERNATE);
pOldBrush = dc.SelectObject(&brush);
pOldPen = dc.SelectObject(&pen);
MaskDC.SelectObject((HBITMAP)(pLayer->alpha->GetHandle()));
MaskDC.SetBkMode(TRANSPARENT);
MaskDC.SetPolyFillMode(ALTERNATE);
pOldMaskBrush = MaskDC.SelectObject(&WhiteBrush);
pOldMaskPen = MaskDC.SelectObject(&whitePen);
int Width = pLayer->dib->GetWidth();
int Height = pLayer->dib->GetHeight();
VBList<CPoint> Lines;
for(int i=0;i<m_Lines.GetSize();i++)
Lines.Add(m_Lines[i]);
dc.Polygon(Lines.GetData(),m_Lines.GetSize());
MaskDC.Polygon(Lines.GetData(),m_Lines.GetSize());
It would appear I only used paths in GDI+ to fill an area with a bitmap, but I still believe it's possible to do it using MFC and GDI. Look up CRgn in the MSDN for more info on what I have in mind, or if you want a concrete exmaple using GDI+, refer to my Doodle article here.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I am looking for a software company on the cutting edge of programming(i.e. Programming in 256k or higher) if such a company even exists? Any help would be appreciated.
|
|
|
|
|
I want an source code for real time graph plotting for discrete event simulation project. I u have any then please send me as early as possible. OR if u know about any resource for concerned project then let me know.
Imran Farooqui
Imran Farooqui
|
|
|
|
|
Nimda virus propagates by scanning windows shares in the network.
I wanna write a program that searches my pc for shares, and removes them. This will save us a lot of time in the process of going thru 400 PCs and removing shares manually.
Where should I start looking ???
What APIs, etc....
Thanks a lot !!!
-dagga
|
|
|
|
|
Hi.
I've made a small program (a few years ago) that scans the local network for shared directories, it's not hard to do.
If you want I can send you the program (of course I made it just for fun so don't expect a great thing. Oh, and if you can find any comments at all probably will be in spanish
Anyway, if you wanna do it yourself, take a look at MSDN for this keywords:
WNetOpenEnum
NetEnumResource
WNetAddConnection2
Andres.
Buenos Aires - Argentina.
|
|
|
|
|
I am developing a project in VC++ regarding mathematics using VC++/MFC. I want to plot "graphs" of various algebraic and trignometric expressions. If you know any article or if you have source code for "exprssion plotting" then please let me know through this forum or e-mail me. I shall be very thankful to you. There are few articles on codeproject that deals with statistical data plotting but not a single that plots the "expressions".
Imran Farooqui
email: imran@imilabs.private.as
|
|
|
|