Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: makaveliuk
  • Content: Threads
  • Order by date
  1. makaveliuk

    rebar and MDI window question

    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...
  2. makaveliuk

    Text-wrapping in PostScript?

    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?
  3. makaveliuk

    Cancelling export

    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...
  4. makaveliuk

    Test for MySQL server and try another if not found

    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(...
  5. makaveliuk

    Create PostScript from PDF

    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?
  6. makaveliuk

    2000 Server disable logoff

    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.
  7. makaveliuk

    Painting text problem

    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...
  8. makaveliuk

    Stupid easy question..............

    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...
  9. makaveliuk

    Ole Objects (Crystal Reports)

    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...
  10. makaveliuk

    A few PCL questions

    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...
  11. makaveliuk

    Report properties

    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...
  12. makaveliuk

    Drawing

    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...
  13. makaveliuk

    Two thing....

    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...
  14. makaveliuk

    Loading JPEGs from resources

    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...
  15. makaveliuk

    CSocket

    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?
  16. makaveliuk

    CString problem

    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?
  17. makaveliuk

    Registry

    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...
  18. makaveliuk

    AddPrinter

    Can anyone give me an example of how to use AddPrinter()? I keep getting and unhandled exception when I try to add a new printer with code.
  19. makaveliuk

    Writing to file

    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()?
  20. makaveliuk

    atoi Problem

    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...

Part and Inventory Search

Back
Top