Ads

Ads

Translate

Sunday, 11 November 2012

Update Firmware Samsung Young


Can not open SQL Server or you can not open the SQL Server (Cyrstal Reports 8 and 8.5)


Error 20599 Can not open SQL Server (Cyrstal Reports 8 and 8.5)
The Error 20599 Can not open SQL Server in Windows XP and Windows Vista When They wanted to open the Crystal Reports Control Method in Action = 1 and want to connect to a SQL or Access database, the solution I found after research in various forums (disappointed not to find a psychologist more than 10 hours), a collection of versions of files from here and there I Decided to try and error to try to find the solution of the problem, resulting in a set of files That Were:
File
Version
p2ssql.dll8.5.0.19
p2sodbc.dll8.5.0.72
ntwdblib.dll2000.2.8.0
cpeaut32.dll8.5.0.9
crpe32.dll8.5.0.217
Crystl32.ocx8.0.0.4
Solution 1
  1. On some Computers With just copy the file p2ssql.dll and ntwdblib.dll in C: \ Windows \ System32 solves the problem (need not register with Regsrv32.exe).
  2. Run the application to see if the problem is no longer the bug 20599.
Solution 2
After That It does not work Solution 1.
  1. Unregister crystl32.ocx Record with Regsrv32.exe (C: \ Windows \ System32 \ Regsrv32.exe / u [Path] \ crystl32.ocx)
  2. Backup files to replace If They exist in C: \ Windows \ System32.
  3. Copy files cpeaut32.dll, crpe32.dll, crystl32.ocx in C: \ Windows \ System32 (register in order cpeaut32.dll, crpe32.dll, crystl32.ocx).
  4. Run the application to see if the problem is no longer the bug 20599.
In 99% of the equipment in Which it Applies kitchen mistake was corrected prescription. 
So far after 2 years to present the first time this error is the solution I found.
Files: Download

Pesan galat 0x80004005 ASP terjadi saat menyambungkan ke Database setelah instalasi crystal report 8


GEJALA
Bila Anda menggunakan DSN untuk terhubung ke database, Anda mungkin menerima pesan galat Active Server Pages (ASP) 0x80004005. Hal ini dapat terjadi ketika Anda telah menginstal Crystal laporan 8.


PENYEBAB
Ini adalah satu permasalahan yang terjadi ketika IIS atau aplikasi lainnya menciptakan dan upaya untuk menggunakan sistem DSN setelah instalasi Crystal laporan 8.
Instalasi Crystal Reports mengubah izin untuk kunci registri HKEY_LOCAL_MACHINE\Software\ODBC\odbc.ini dan subkuncinya.Semua orang akses group's berubah dari akses khusus ke kontrol penuh.

Ketika Anda membuat DSN sistem baru, tidak mewarisi izin default Windows NT, atau izin yang baru dibuat oleh Crystal laporan 8 instalasi. Sebaliknya, subkunci untuk DSN baru menerima izin untuk dua kelompok pengguna:

  • Lokal Machine\Administrators--Kontrol penuh
      SISTEM--Kontrol penuh


    Hanya perizinan untuk administrator yang ditetapkan, dan tidak perizinan di-set untuk semua grup. Oleh karena itu, hanya pengguna dengan hak Administrator dapat mengakses sistem DSN.



    PEMECAHAN MASALAH
    Men-download dan menjalankan perbaikan dari situs Web berikut:


    INFORMASI LEBIH LANJUT

    Deskripsi perbaikan

    Scr8_webregfix.exe update Tata ulang semua izin yang ada di dalam kunci registri HKEY_LOCAL_MACHINE\Software\ODBC\odbc.ini (dan semua subkuncinya) untuk izin default Windows NT. Juga Tata ulang bagian subkunci HKEY_CLASSES_ROOT\Interface dan HKEY_CLASSES_ROOT\Typelib untuk nilai-nilai default Windows NT. Setiap sistem ODBC DSNs yang baru dan yang ada sekarang mewarisi izin default Windows NT.

    Versi 8.0.0.84 mengharuskan semua orang kelompok diatur untuk kontrol penuh dan tidak dapat terhubung ke DSN sistem dengan menggunakan tingkat izin registri akses khusus (default). Berkas P2sodbc.dll diperbarui (versi 8.0.0.85) diperlukan untuk terhubung ke DSN sistem dengan menggunakan perizinan registri default Windows NT. (Misalnya, semua orang kelompok diatur untuk akses khusus.)

    Catatan: The P2sodbc.dll masalah ini juga berlaku apabila versi 8.0.0.84 didistribusikan ke komputer yang tidak memiliki Crystal Reports diinstal (misalnya, sebagai bagian dari aplikasi pratinjau laporan Crystal).
    Perbaikan ini juga menyelesaikan pesan galat SQL Server berikut jika DSN sistem telah ditetapkan setelah Crystal Reports diinstal:
    Log-masuk tak terbatas ke database

    Galat 20599 - tidak dapat membuka SQL Server 

    Galat 599

    Kesalahan - kesalahan telah terjadi pada server dalam mencoba untuk mengakses datasource
    Untuk informasi lebih lanjut, lihat artikel Basis Pengetahuan Crystal keputusan berikut:













    Friday, 9 November 2012

    Validating numeric input


    Validating numeric input is a common problem -  you want the user to enter a number but how do you make sure he enters a valid one?  User text is normally entered via a TEdit component.   In the object inspector window (F11) there is an events tab and if you click there one of the events will be "OnKeypress".  Double click there and you get the skeleton of a method that is called whenever the user enters a character in the edit box.  We can use this exit to check that the entered character is valid. 

    For integers the valid characters are '0' through '9', '-',  and the backspace character.  ('+' could be included but is always redundant since no sign in front of a number means '+')    Delphi defines this set of 12 characters '0' through '9', '-'  and  backspace  as ['0'..'9','-',#8].  (#8 is the decimal number generated when you press the backspace key.)  If the character entered is not one those, we can set the key value to 0 (which tells windows to ignore this key) and beep to let the user know that something is wrong.   The other test we can perform here is to test that there is no more than one  or  '-'  and that if a '-' is  entered it will go at the beginning. 

    To be completely safe, there is one other potential error which OnKeyPress can't catch.  We can use an OnChange exit to detect an empty text string and replace it with a '0'.  

    Validating floating point numbers (with decimals) is similar except that we must add '.' to the set of valid characters in OnKeyPress.  For generality we can use the global predefined constant DecimalSeparator in place of '.'. (Europeans exchange the dot and comma from proper usage.)  We need to make sure that there at most only a single  DecimalSeparator in the number.    OnChange coding is unchanged from the integer version. 

    A program illustrating these techniques is available for download here.  Notice that the same OnChange exit can handle both the integer and floating point number validation.   Similarly, multiple integer edit fields (or multiple floating point edit fields) could share the same OnKeyPressprocedure.  As an added bonus, the program uses a TMediaPlayer component and .wav files to give a little more than the normal beep when an error is made.  

    RoboTrack


    The user holds down a mouse button and drags it around to form a track, then presses the Start button to have the robot follow it.   There are separate methods for OnMouseDown, OnMouseMove and OnMouseUp events.  The MouseDownprocedure sets a flag to tell the MouseMove routine that we're drawing, it also does some initialization stuff like setting a nice fat  pen we'll use for drawing the track.    MouseMove  draws a line from the last point to the current point.  It also waits for 10ms so that we won't create more than about 100 points per second of drawing.   MouseUp resets the flag and moves the robot to the beginning point. 
    When the Start button is pressed, (creating an OnClick event),  we just start moving the  robot point by point to retrace the steps.   The same 10ms delay is inserted between moves so it should move about as fast as the original line drawing speed.    The only tricky thing about positioning the robot is that we want to center it on the track.  All references to locations are by the top left corner though so we subtract half the width and half the height of the robot from the current point to get a location for its top left corner.
    A second version is included in the source download.  It has a OnPaint routine to redraw the track after the robot moves over it and a few other enhancements that I'll leave for you to check out on your own.   

    Running/Exploring the Program 


    Download source

    Download  executable

    Simple Delphi Calculator


     Pascal is readable enough that browsing the code will be a more understandable description of the process than anything I can write in natural language.  Just recognize that Windows is a messaging system so typically programs just hang out doing nothing until they get a message.  When you see routines like DigitBtnClick, PlusBtnClick, etc.  that routine is the one that was called when that button was clicked.  

    There is not much difference in processing the numeric keys, so I wrote an AddDigit procedure to display the digit and add in on to the string version of the number being built.   Similarly, most of the operation handling is similar, as long as we remember to add, subtract, multiply or divide when the time comes.   So we have a HandleOp procedure for those things.  Note that we can't really do anything when the user enters the operation because we don't have the second value yet.  So, we'll just hold on to it until we need it.   We also know the the user has finished entering a value when we see the operation code, so we can process it according the operator that preceded it and get ready to build the next number.   

    There's a Reset procedure that's called to clear out the displays and reset internal flags, etc.  We have to do this on initial input, or if the user presses Clear, or when the user presses the next digit after he has pressed the = key.
    The program has 55 or so user written lines of code, more than I would have guessed.   But there area few tricky things.  


    We need to keep the user from entering more than one decimal point in the number.

    We need to handle the display intelligently when * or / are mixed with + or -.  In your normal calculator and in this one, if you enter 1, +, 2, *, 3, the result is 9  because 1+2 = 3 and 3* 3 is 9.  But because of the precedence rules of arithmetic, multiplication and division in expressions are performed before additions ,and subtractions, so 1+2*3 written as an expression should = 7.  In this program, we solve the problem by inserting parentheses in the expression, so the above example is displayed as (1+2)*3=9. 

    To reduce the number of lines of code, I used a trick that I probably would not use in a more complex project:  Rather than have 10 different routines to process the 0 to 9 buttons, I named them Btn0, Btn1, Btn2, etc and extract the 4th character of the name as the desired digit  in a common routine. 
    I think that should explain enough of the program logic, so go ahead and take look.

    Running/Exploring the Program 


    Download source

    Download  executable

    Wednesday, 7 November 2012

    Membuat Hyperlink menuju Halaman Website dengan Delphi


    Pernahkah anda membuka sebuah aplikasi yang menampilkan alamat web tertentu kemudian
    ketika alamat web tersebut di klik , maka otomatis Brower Internet akan terbuka untuk
    membuka halaman web yang dimaksud,

    Jika anda ingin membuat aplikasi semacam itu, berikut ini adalah caranya : masukkan
    komponen – komponen berikut ini ke dalam Form 1
    pada bagian uses ketikkan ShellAPI sehingga menjadi sbb

    Untuk tutorial selengkapnya silahkan download Ebooknya disini : DOWNLOAD

    Best Post This Year

    Install Fortesreport community Delphi 7 dan RX Berlin

    Download  Pertama2 kita harus punya file installernya terlebih dahulu, download  https://github.com/fortesinformatica/fortesrepo...

    Total Pageviews

    © 2014 Fajar Priyadi. WP themonic converted by Bloggertheme9. Published By Gooyaabi Templates | Powered By Blogger
    TOP