I have a rebar control added to an MDI window, containing a child window in a single band. I would like to know how to go about making the document windows within the MDI respect the rebar when maximized instead of have the rebar cover parts of the window.
Also, how would I go about making the...
I am working on a project to create postscript from a data file, it's working ok for adding images and single-lines of text but I cannot work out how to make text wrap, is it possible?
I have an automated export running using CRAXDDRT20.DLL to open and export to PDF, under some conditions I need the report to cancel exporting but if I call CancelExport() or release the report object, the Export function never returns leaving my app hanging.
any ideas on how to end the export...
Is there a way to have a PHP script try to connect to a server and try another server if a connection cannot be established?
I have tried the following:
$link = @mysql_connect(server, username, password);
if( !$link ) {
$link = @mysql_connect(backupserver, username, password);
if(...
Is it possible to automatically print a PDF file to PostScript either by COM/ActiveX or command line or something?
I need to have large PDF files converted to postscript over night so need to automate it somehow
Anyone got any ideas?
Hi,
Does anyone know if it's possible to stop a Windows 2000 Server from logging out the Admin account?
I have an application running on the server which requires the admin account to be logged in but it auto-logs off every evening.
Thanks in advance,
Dan.
I am trying to paint some text in a window and have it change colour when the mouse is over it, I am using the code:
case WM_PAINT:
{
HFONT pOldFont;
char *szBuffer;
CRect rcClient;
PAINTSTRUCT ps;
COLORREF col;
HFONT hNewFont;
BITMAP bm;
HDC hDC = BeginPaint(data->m_hWnd, &ps);
HDC...
Right, it's been so long since I used C++ I have completely forgotten how to do this (I know its easy).
I have created a Window using CreateWindowEx with a defined style and a set of checkboxes to enable/disable style flags.
How do I write an if statement to say:
If the current windowstyle...
Hi,
I am trying to open a Crystal Report using CRAXDDRT20.dll from Crystal Reports .NET, I am using the code:
HRESULT hr = NULL;
IApplicationPtr Crystal;
IReportPtr rep;
hr = Crystal.CreateInstance("CRYSTALRUNTIME.APPLICATION");
rep = Crystal->OpenReport(report->CString());
But it fails at...
I am writing an app to generate cheques from data files, I am new to PCL and it is confusing me a lot!
The things I need to know are:
How do I start/end a page?
How do I download and select a font (I only really need Arial)?
How can I print a multi-line text block?
I have managed to get some...
I wrote an app a while ago using CR 8.5 which opens a report and builds a table which shows which page each record starts on (Because it can reflow depending on system).
I did it by exporting the report to PDF and using the BeforeFormatPage event then reading the field value on that page, the...
Hi,
I am new to drawing in C++ and have written an app with a processing screen which updates a status line quite rapidly, and when I run it it flickers a lot.
On another screen I have a progress bar drawn in code which also flickers quite badly.
I am refreshing the window by using the...
Not sure if I posted this here before but I cannot figure it out.
I need to add a port which can be selected in the printer properties dialog.
I want to make it a redirect port for Redmon, which is not important at the moment as I can figure out that part once I know how to add a basic port...
I am trying to display a high colour splash screen on my app, using the bitmap resource caused it to become 16 colour and look awful.
I have managed to display it using GDI+ and load the JPEG file, but I would ideally like it to be a built-in resource, so I have created a custom resource and...
I am trying to do a simple data transfer with CSocket class, but I get a "Unhandled exception: Access denied" when I use the Create() method.
Any ideas why that should happen? Or another method?
I have been having this problem a lot and have figured out where it lies, When I create a CString and format information into it, it puts a null character after every character causing some functions to think the string is terminated after the first character.
Is there a way round this?
I am using RegOpenKeyEx() to open a registry key and RegQueryValueEx to query the 4 values within it, it reads the first fine, but gives an Access Violation 0xC0000005 in MFC42UD.dll on the second value, it doesn't matter which order I read them in or if I close the key and re-open it between...
I am running a file copy routine i.e. CreateFile(), then a ReadFile() -> WriteFile() loop, but I want to write a few strings to the top of the file before the loop, how do I write the contents of a CString to the file with WriteFile()?
I have got a really annoying problem that I just cannot solve, look at the following code:
char szCount[20];
memset(szCount, 0, sizeof(szCount));
memcpy(szCount, (void *)strPageCount.GetBuffer(strPageCount.GetLength()), strPageCount.GetLength());
m_iPageCount = atoi(szCount);
The strPageCount...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.