|
If only I would know how to get the PointSize... searching for that in the meantime...
Oh, that's actually the size I want it to be I guess right? ::- D.
|
|
|
|
|
Yeah, that was it ::- D. Silly me. Thanks. It works! Hooray.
*scribbles Jown R. Shaw on his thank you list*
-= E C H Y S T T A S =-
The Greater Mind Balance
-- modified at 4:17 Thursday 10th November, 2005
|
|
|
|
|
You funny!
Point size is a type setter thing, which has been a pain in may (BLANK) for years. I think in pixels, not point sizes. If you ever write a text/code editor under Windows, you'll understand.
INTP
Every thing is relative...
|
|
|
|
|
I like pixels a lot more than pt but hey, that's the standard. So I had to take care of this. Thanks a lot again. You'll see yourself on the "Thanks to" list of the freeware application I'm working on next year when I'll start releasing public betas and final versions. So far I'm still in private beta testing ::- D.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
hi all ....please i need help...
how could i create report with vc++ using crystal report ?and how to use crystal report view class?? is there any tutorial or sample code avaliable somewhere .
thanks alot for interest in my query .
|
|
|
|
|
Hi,
Can we send WM_ messages to a window in another desktop createted by CreateDesktop() (if the window handle is with us)?
Thank you.
- NS -
|
|
|
|
|
Try it out - I guess it'll take about 2 minutes.
--
The Blog: Bits and Pieces
|
|
|
|
|
I do not think that this is possible. Maybe... It might be possible to use SetThreadDesktop to switch a thread into the target desktop and then have it send the message?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
HI
I have got one doubt. Is there any retstrictions to make an exe as Service.
I want to make my Server application exe as Service. That Server application is Dialog based application and it is for Client-server communication. when i am creating Service for this Exe it is creating Service and able to see that service name in Services of Administrative tools.
But unable to start it. it is giving error as 1053 : Service didnot respond to the start or control request in timely fashion.
Help me.
Thanks in Advance
|
|
|
|
|
How did you create the service? Did you simplly register it?
|
|
|
|
|
How did you create the service? Did you simplly register it? Have you modified in any way your dialog based server?
|
|
|
|
|
Hello,
You mean that you want to convert your dialog based application to be a service? So you have dialogs in you service? If this is the case, don't do it! The reason for this is that services should be able to run without the windows shell. You are restricted to kernel API's mostly. This is because this type of application is able run without any users logged on to the machine. If you use shell API's, your service might crash since those DLL's are not loaded.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hi,
I am working on Microsoft Visual Studio .NET 2003 VC++. I have created a solution & i am trying too build it & i am facing the following error:
LINK : warning LNK4001: no object files specified; libraries used
libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals
When this error came i went to the properties in linker\system i changed the subsytem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS)
& in the advanced tab changed the entry point from mainCRTStartup to wWinMainCRTStartup.
But then the following error is coming:
LINK : warning LNK4001: no object files specified; libraries used
ibcmtd.lib(wwincrt0.obj) : error LNK2019: unresolved external symbol _wWinMain@16 referenced in function _wWinMainCRTStartup
Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals
How to solve this problem as fast as possible.
Thanks in advance
|
|
|
|
|
NityaKakkar wrote: How to solve this problem as fast as possible.
Create a new Windows based Project!, fastest way to solve this problem
"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
|
|
|
|
|
I am not using .NET, but it sounds like you not have a main function your console application. If it is a console application then swhiching to it to a windows application will naturely generate more errors.
INTP
Every thing is relative...
|
|
|
|
|
hi
i am creating a simple Win32 DLL on VS6.
The code is taken from one of the codeproject articles.
http://codeproject.com/dll/dll.asp[^]
when i compile i get the error
fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
I have even copied the stdafx.h file into the current directory but with no success.
In my settings i used "Not Using MFC" since it's win32 application.
Any kind of help is appreciated
-- modified at 1:12 Thursday 10th November, 2005
|
|
|
|
|
Try right clicking on the line and there in the menu that pops up there will be an option to open the stdafx.h file. Try using that. If it fails then the header is not found.
Note: You must click on the line #include "stdafx.h"
Try this too.
You must use the include like this #include "stdafx.h" instead of
#include <stdafx.h>
Nibu thomas.
Software Developer.
|
|
|
|
|
Hi
I right clicked on that line but it was unable to find the file.
I think stdafx.h file is included only in MFC-based applications.
is there any alternative for it in Win32??
|
|
|
|
|
stdafx is not a standard header file.
It is just included into your project by default.
Normally it acts as a container for other header files.
Like afxwin.h, afxext.h, afxcmn.h, etc.
So that they can be placed together at one place.
You will find a corresponding stdafx.cpp file too having just this single line of code
#include "stdafx.h"
Non-MFC applications won't be having them. Since they use SDK.
Nibu thomas.
Software Developer.
|
|
|
|
|
N.B. The stdafx.h and stdafx.cpp files are the default files used for precompiled (preprocessed) headers. They are used to improve build times when used correctly. If used incorrectly, they can cause you no end of heartache. Anyway, they have nothing to do with MFC projects...
If you right-clicked on the #include line for the file and still could not open it that way, it means that it is likely missing or in a different location than the one you expect.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
vamshin wrote: fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
If you have placed the stdafx.h file in the same directory as the project and you’re still getting those errors. Try a rebuild all.
vamshin wrote: In my settings i used "Not Using MFC" since it's win32 application.
stdafx.h is used for precompiled headers. See Precompiled Header Files[^]
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
I need to use a virtual parallel port through a usb to parallel port cable and I am not sure how to do this. When I send the port name USB002 to WriteFile, it says the port does not exist.
Roger
|
|
|
|
|
this is the visual c++6 version i don't know if there arre other ways to do it im a biginer in this stuf.
(you dont have to program to the printer imediatley windows dos do that 4 u)
selekt mdf
if you folow the apwizard and you make in step4 a tag (V) option Printig and printing preview.
then in function:
void CPrint1View::OnBeginPrinting(CDC*pDC,CPrintInfo* pInfo)
{
CPrint1Doc* pDoc = GetDocument();
ASSERT_VALID(pPoc);
int PageHeight = pDC->GetDeviceCaps(VERTRES);
int logPixelsY = pDC->GetDeviceCaps(LOGPIXELSY);
int rechtHeight = (int)(2.2*logPixelsY);
int numPages = pDoc->m_numRects * Rects * rectHeight / pageHeight +1;// this calculates how manny pages there arre
pInfo->SetMaxPage(numPages);
}
MFC functions
best is that you look at chapter 6 in
this source file frome book : Special Edition Using Visual C++ 6
go down the page and klik on More Information
in the red standing Source Code
http://www.quepublishing.com/bookstore/product.asp?isbn=0789715392&rl=1#[^]
or simpel klik here to get chapters1 to 11: http://www.quepublishing.com/content/images/0789715392/sourcecode/ch01to11.exe[^]
normal way there is no need to program a total printer comunication windows dos that 4 u!!!!
i hope that you wil see the licht of Vc++ (im siting to stil in the dark)
but every step is one step on step near the big licht of Vc++
-- modified at 5:45 Thursday 10th November, 2005
|
|
|
|
|
Well, I will try this, but I doubt that it will work. I need to send a file which includes printer setup codes and graphics codes (DOS format) that the barcode printer needs to print. I am not printing an image as I believe most windows printing is done. I need to send the file directly to the printer. I am able to do that with the printer driver and it prints fine, but I am not sure how to get access to that function of the driver in code.
Roger
|
|
|
|
|
I have a view class from which i want to print
the data , everthing is working fine but the data
is too much to fit in one page of A4 size is there
any technique to set the page in the printout .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|