|
read-and-ignore is a powerful algorithm under those circumstances.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Is there any way to rename solution file....it is in vc++
|
|
|
|
|
Close the solution file in Visual Studio.
Open Window Explorer.
Rename the solution file.
Open the renamed solution file.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Yes. Goto the directory that contains the sln file, right click the sln file. Select rename.
Type in the new name. and lo! you are done.
Ask right questions if you want the right answer
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
The project file(.vcproj) can be renamed on right clicking and opt for Rename in Visual Studio itself.
As others said, renaming solution file can be done through explorer.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
|
Hi,
I want to send the data (formatted by me as a ticket)from my application to printer (small printer) using VC++. Is there any API by which I could able to print this ticket?
Thanks
|
|
|
|
|
Here is some printing tutorial[^] and here is a an article[^] on printing.
I hope this helps!
|
|
|
|
|
Thanks for this reply. do you have any idea how can we manage bar-code on this print page?
|
|
|
|
|
Here is a library for for drawing different bar-codes [^]. You can use the Draw function for both - drawing on the screen and printing. You just have to give the proper DC to this function.
|
|
|
|
|
Hi,
I am able to print Bitmap Images in ListBox using
HBITMAP hbmp = (HBITMAP)LoadImage(hInstTemp,Image, IMAGE_BITMAP, PicSizeX, PicSizeY,LR_LOADFROMFILE )
I want to print JPEG images in ListBox.for Bitmaps we should use "IMAGE_BITMAP" flag. There is no specific flag for JPEG.What I should use?
Rekha.
|
|
|
|
|
I think LoadImage will not load JPEG images it only supports BMP.
Try using CImage[^]class for other file types.
Regards,
Sandip.
|
|
|
|
|
Print the jpg or bmp is not different you only need to a handle to these files for bmp files you can us of LoadImage but for jpg files you can use of CImage class or GDI+ after get it you can use of StartDoc/StartPage.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
can you guide me how to use CImage class for JPG files.
Rekha.
|
|
|
|
|
|
Hi Chandrasekharanp,
The link which you have sent is to display icons or bitmaps. I know how to Display Bitmaps.But my problem is with JPEG Images which I have mentioned in my Query.
Can anyone suggest me how to use CImage.I am new to MFC.
|
|
|
|
|
Did you look at the link i provided?? It shows the members of CImage.
you can use Load method to load the JPEG files. After you load the bitmap using CImage object you can get HBITMAP. After you get HBITMAP you know what you have to do
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
It's simple:
CImage m;
m.Load(_T("c:\\1.jgp"));
HBITMAP hbitmap=m.Detach(); it returns a hbitmap
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
Thanks for your reply. I am able to display JPEG images.
|
|
|
|
|
If it was helpful you can give me 5 vote.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I cannot calculate the exact number of pages to be printed in advance, so I do not call SetMaxPage in OnBeginPrinting(). In this case only 1 page is printed.
I tried setting it to maximum(0xFFFF), but still it prints only 1 page. The data(sample) to be printed is clearly more than 5 pages.
How do I continue with this?
Is setting max page mandatory for printing more than 1 page?
Thanks in Advance..
|
|
|
|
|
The documentation says something about using the m_bContinuePrinting member if the max. page is not known.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks superman..
I always use documentation. but in this case I totally forgot it.
|
|
|
|
|
Hi all,
I have an edit box,i want to handle space key in this edit box in following manner.
i want space not allowed at strating point and ending point of editbox.
while if i press space in midle of edit box than its working.
i m try this.
but there is one problem when i press space key at end than the cursor moves to strat of edit box.
void Ctest::OnEnChangeEdit1()
{
CString str;
GetDlgItemText(IDC_EDIT1,str);
if(str.Mid(0,1)==' ')
{
SetDlgItemText(IDC_EDIT1,str.TrimLeft());
}
int length=str.GetLength();
length=length--;
if(str.Mid(length,1)==' ')
{
SetDlgItemText(IDC_EDIT1,str.TrimRight());
}
}
please tell me how can i do this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
modified on Thursday, February 19, 2009 4:20 AM
|
|
|
|
|
Handle the EN_UPDATE notification in the parent dialog box.
The notification is sent in the form of a WM_COMMAND message.
In this handler, the edit box text can be retrieved and manipulated.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|