|
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
This Month
Month Archive
Login
My Favorite Web Sites
|
Thursday, June 30
by
SRINI
on Thu 30 Jun 2005 03:04 PM MDT
One of the main problem you will face pretty soon after creating application in the Java variant is Debugging.
It is pretty easy to do the debugging of the Plex generated application with in Eclipse by following this simple steps: 1. Install and setup the Plex to use the Ant based process as defined in this thread on symposium. Make sure you have this up and running. 2. Install eclipse 3. If you do not know how to use eclipse, please spend some time to get used to this new IDE, you need not know how to code in java, just follow one of the tutorial for debugging. You just need to know how to use the debugger more than anything else. 4. Unzip the attachment PlexDebugger.zip. You have to modify the files .project and .classpath 5. Modify the values of "C:/TAXCALC/Server/ApplicationPackage" to your own server class folder and "C:/TAXCALC/src" to your source folder in these files. 6. Once the changes are made, import the project into eclipse. 5. Add external jar files, to the project. You need to add your jdbc jar files and obrun.jar file to the list. You also need to add your own jar file, if any to the list. 6. Start the dispatcher with in eclipse, in debug mode. (screen shots 4-6) 7. Once the dispatcher is running in debug mode you should be able to debug your class files with in eclipse. Thursday, March 31
by
SRINI
on Thu 31 Mar 2005 05:51 PM MST
{
BROWSEINFO bi = { 0 }; // bi.lpszTitle = _T("Browse for Folder"); LPITEMIDLIST pidl = SHBrowseForFolder ( &bi ); &(1:) = ""; //Initialize the folder name to blank &(2:) = "ERR"; //Expect the worst. if ( pidl != 0 ) { // get the name of the folder TCHAR path[MAX_PATH]; if ( SHGetPathFromIDList ( pidl, path ) ) { //CString str = path; //&(1:) = str; &(1:) = path; &(2:) = ""; } // free memory used IMalloc * imalloc = 0; if ( SUCCEEDED( SHGetMalloc ( &imalloc )) ) { imalloc->Free ( pidl ); imalloc->Release ( ); } } } Parameters: 1.Directory 2.ReturningStatus
by
SRINI
on Thu 31 Mar 2005 05:50 PM MST
{
//This code will open a browse window, and allow you get the file selected. //Dialog will display csv, txt and all in a list //Default selected values is csv //Check for Returning Status before processing the file name &(2:) = "ERR"; //Expect the worst. &(1:) = ""; //Initialize the file name to blank char szFilters[]="Comma Delimited Files(*.csv)|*.csv|Text Files(*.txt)|*.txt|All Files (*.*)|*.*||"; CFileDialog fileDlg (TRUE, "File Import", "*.csv",OFN_FILEMUSTEXIST| OFN_HIDEREADONLY, szFilters, ObPanelAPI::GetPanelCWndByName("*Current")); if( fileDlg.DoModal ()==IDOK ) { &(1:) = fileDlg.GetPathName(); &(2:) = ""; } } Parameters: 1. FileName 2.Returning Status
by
SRINI
on Thu 31 Mar 2005 05:49 PM MST
{
//This code will open a Save AS window, and allows you to create a file. //Dialog will display csv, txt and all in a list //Default selected values is csv //Check for Returning Status before processing the file name &(2:) = "ERR"; //Expect the worst. &(1:) = ""; //Initialize the file name to blank char szFilters[]="Comma Delimited Files(*.csv)|*.csv|Text Files(*.txt)|*.txt|All Files (*.*)|*.*||"; CFileDialog fileDlg (FALSE, "Save as CSV", "*.csv",OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT | OFN_CREATEPROMPT, szFilters, ObPanelAPI::GetPanelCWndByName("*Current")); if( fileDlg.DoModal ()==IDOK ) { &(1:) = fileDlg.GetPathName(); &(2:) = ""; } } Parameters: 1. FileName 2. Returning Status Thursday, February 3
by
SRINI
on Thu 03 Feb 2005 05:50 PM MST
We have inherited a pattern where the following API was used to call
the help file in each function. The API is called from a subroutine.
#include "htmlhelp.h" { HtmlHelp(NULL, &(1:), HH_HELP_CONTEXT, &(2:)); } Where &(1:) is Help file name and &(2:) is the surrogate of the panel function. Sadly, the pattern was using a hard coded file name to pass the first parameter. After almost 1/2 way through the project and after getting the Techinical Writer we realized the issue and it became a expensive issue. We had to fix the pattern and regenerate ALL the panels. QA is not going to be happy about this and neither are the programmers as they need to re-test every thing (not exartly, when did we started testing If the pattern was written in a way to call A function and then call the help with in the function, then we should not have had this issue. Solution: Create a WinC External function and then call this External Function from all the Client functions with Panels. This way if we ever need to make any changes to the way help file works, we just need to work on one function. Following code is used for calling the help file: #include "htmlhelp.h" { HWND HWndApp = ObPanelAPI::GetPanelHandleByName("*Active"); HtmlHelp(HWndApp, &(1:), HH_HELP_CONTEXT, &(2:)); } GetPanelHandleByName is used to show the help file until the active panel is open. Friday, January 21
by
SRINI
on Fri 21 Jan 2005 07:06 PM MST
Following C++ source code will check if the string has only the characters between A-Z.
Is Alpha? Parameter FLD String Parameter FLD YesNo { CString input = &(1:); &(2:) = "Y"; char charVal; for(int i = 0;i< input.GetLength();i++) { charVal = input.GetAt(i); if((charVal < 'A') || (charVal > 'Z')) { &(2:) = "N"; break; } } }
by
SRINI
on Fri 21 Jan 2005 06:06 PM MST
Following code can be used to find if a string is numeric
Is Numeric? Parameter FLD VaryCharacter Parameter FLD YesNo { &(2:) = "Y"; const char* psz = (LPCTSTR)&(1:); for (int i = 0; psz[i]; i++) { if (!isdigit(psz[i])) { &(2:) = "N"; break; } } }
by
SRINI
on Fri 21 Jan 2005 05:45 PM MST
When you try to display the ISODate in Message file or Listbox it
displays in the native format. This may be a problem when the user
wants to see it. Following source can be used to display the ISODate in
"Short Date Format" of your PC settings :
FormatDateType parameter FLD ISODate parameter FLD ISODate Text script engine VBScript source code: &(2:) = FormatDateTime(&(1:)) ![]() Thursday, January 20
by
SRINI
on Thu 20 Jan 2005 10:58 AM MST
Make sure you do NOT have another field with same hot key (posibbly it is hidden?)
Saturday, November 6
by
SRINI
on Sat 06 Nov 2004 12:37 PM MST
+Define Field: MyField
+Define Field: FIELDS/+Field +Set Value Field: FIELDS/+Field, Field: MyField For Defined Value Field: FIELDS/Field +Set Value Field: FIELDS/+Field, FLD length NBR +Name Defined Field: FIELDS/Field, Work Sunday, September 5
by
SRINI
on Sun 05 Sep 2004 12:43 PM MDT
1. Create a Header file (PlexImage.h), to use the ImagXpress files:
//Place this header file, in your include path list of Plex. //All the header file (.h files) and the cpp files should be in your include path or Gen Path //The cool thing about the import and namespace is, we need not have a library ,as it uses the COM object to do the stuff. #import #include "ix_open.cpp" //Image Express file
|
Search
|
|||||||||||||||||||||||||||||||||||||||||||||||
