Normal:
Take Order -> Process -> Eat -> Pay
Fast Food:
Pay -> Process -> Eat/Takeaway
Berikut adalah langkah-langkah yang dilakukan untuk mengadaptasi aplikasi yang dibangunkan sebelum ini menggunakan MFC 2008 kepada MFC 2017. Projek targer ialah Siliconetics Trade Spider.
read moreKaedah atau fitur "Medan input terkawal (Protected input fields)" atau PIF adalah bertujuan untuk memudahkan input data dan mengelakkan kekeliruan dengan cara melumpuhkan medan-medan input mengikut keperluan. Misalnya hanya medan kod diaktifkan manakala semua medan lain dilumpuhkan apabila rekod baru dicipta dan sebelum pelanggan ditentukan.
Contoh borang input yang menggunakan medang terkawal (protected fields) ialah borang LESEN PENANAMAN KENAF dalama Sistem Maklumat Peladang (SMP). Ini merupakan borang input pertama yang diterapkan dengan sistem medan input terkawal.
Berikut adalah penambahan yang perlu dilakukan untuk menerapkan fitur PIF:
1. Fungsi "UpdateInputState" perlu dimasukkan ke "class" skrin input bertujuan untuk mengemaskini kadudukan mendan input mengikut situasi semasa.
2. Fungsi "UpdateInputState" mesti dipanggil dihujung fungsi "Refresh" dan "UpdateOwner".
3. Tambahkan kod ini dalam "Accept":
if(!pDoc->m_Owner.IsValid())
{
m_CtrlCustCode.SetFocus();
OnOK();
return false;
}
There is no handle for every monitor. All monitors only share a single desktop. However we can create different DC for different monitor. Please refer CreateDC Windows function.
read moreError berlaku pada Windows XP. Sebabnya:
Data manifest tidak dimasukkan ke dalam resource kerana baris berikut telah dikomenkan dalam "resrouce.h" dengan tidak sengaja ( atau mungkin dikomenkan oeh Visual Studio 2012 ).
#define IDR_MANIFEST 1
I currently develope an application for a member card system. This is not a new aplication but continously updraded for years. The application working very well before on any Windows from version 95 up to 7 untill this error suddenlly appeared when I tried to install this application on an XP. The error does not appear in Windows 7, so I failed to notice this error during development.
After about 10 hours of working time then I detected that it's caused by the defination for IDR_MANIFEST was accidentally removed from "resource.h" which caused the application to be built without manifest information. This application works well in Windows 7 but failed in XP. This problem are very difficult to detect because the compiler does not notify any error or warning.
SOLUTION: Never delete IDR_MANIFEST definition in resource.h even it was marked as unused.
Hi guys, If you are facing this error continuously whenever you click any program or software such as: firefox, msnmessenger, or any other program, and you have done all your efforts to get rid of this error, just follow these 2 simple steps solution:
1. Browse to C:\Windows\System32 folder and file this file dwmapi.dll
2. Rename this file from dwmapi.dll to dwmapi.dll_old
Now you can run your application without any hassle :)
The DwmAPI.dll file is a Direct X related file that is used for vista. Allow me to elaborate on WHY it's used for vista, however.
The file that you're having problems with is a Direct X file that is part of DirectX10. This is why some people have this problem after installing graphics cards, and some have it after installing DX10 Games, and applications that are developed with the DX10 A.P.I in them (I.E. Firefox 3.5 - They had a faulty install on the first release of 3.5 that put this file onto XP machines.)
This file MAY, or may NOT hurt your system. That's all dependent on if you have a DX10 compatible Graphics card.
If you do NOT have a DX10 compatible graphics card, the best solution for you, is to go ahead, and do it what I have mentioned above in two steps.
The Flitbase file structure basically consists of three parts, a header at the begining of the file, the body containing all the records and a reference table at the end of the file.
read more