Sunday, May 17, 2020
DLL and ActiveX Controls From a Delphi Application
A popular feature of Delphià is the project deployment of an application with an executable file (exe).à However, if the DLL or ActiveX controls in your project are not registered on the usersââ¬â¢ machines, an ââ¬Å"EOleSysErrorâ⬠will be displayed in response to running the exe file.à To avoid this, use the regsvr32.exe command-line tool. RegSvr32.exe Command Manually using regsvr32.exe (Windows.Start - Run) will register and unregister self-registerable à DLL and ActiveX controls on a system. Regsvr32.exe instructs the system to attempt to load the component and call its DLLSelfRegister function. If this attempt is successful, Regsvr32.exe displays a dialog indicating success. RegSvr32.exe has the following command-line options:à Regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname /s - Silent; display no message boxes /u - Unregister server /i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall /n - do not call DllRegisterServer; this option mustà à à à à à be used with /ià Call RegSvr32.exe Within Delphi code To call the regsvr32 tool within Delphi code, use the ââ¬Å"RegisterOCXâ⬠function to execute a file and wait for the execution to finish. This is how the RegisterOCX procedure could look: procedure RegisterOCX; type TRegFunc function : HResult; stdcall; var ARegFunc : TRegFunc; aHandle : THandle; ocxPath : string; begin try ocxPath : ExtractFilePath(Application.ExeName) Flash.ocx; aHandle : LoadLibrary(PChar(ocxPath)); if aHandle 0 then begin ARegFunc : GetProcAddress(aHandle,DllRegisterServer); if Assigned(ARegFunc) then begin ExecAndWait(regsvr32,/s ocxPath); end; FreeLibrary(aHandle); end; except ShowMessage(Format(Unable to register %s, [ocxPath])); end; end; Note: the ocxPath variable points to the Flash.ocx Macromedia OCX. To be able to register itself, an OCX must implement the DllRegisterServer function to create registry entries for all the classes inside the control. Do not worry about the DllRegisterServer function, just make sure it is there. For the sake of simplicity, it is presumed that the OCX is located in the same folder as where the application is. The ExecAndWait line in the above code calls the regsvr32 tool by passing the /s switch along with the full path to the OCX. The function is ExecAndWait. uses shellapi; ... function ExecAndWait(const ExecuteFile, ParamString : string): boolean; var SEInfo: TShellExecuteInfo; ExitCode: DWORD; begin FillChar(SEInfo, SizeOf(SEInfo), 0); SEInfo.cbSize : SizeOf(TShellExecuteInfo); with SEInfo do begin fMask : SEE_MASK_NOCLOSEPROCESS; Wnd : Application.Handle; lpFile : PChar(ExecuteFile); lpParameters : PChar(ParamString); nShow : SW_HIDE; end; if ShellExecuteEx(SEInfo) then begin repeat Application.ProcessMessages; GetExitCodeProcess(SEInfo.hProcess, ExitCode); until (ExitCode STILL_ACTIVE) or Application.Terminated; Result:True; end else Result:False; end; The ExecAndWait function uses the ShellExecuteEx API call to execute a file on a system. For more examples of executing any file from Delphi, check out how to execute and run applications and files from Delphi code. Flash.ocx Inside Delphi Exe If there is a need to register an ActiveX control on ââ¬â¹the userââ¬â¢s machine, then make sure the user has the OCX the program requires by placing the entire ActiveX (or DLL) inside the applicationââ¬â¢s exe as a resource. When the OCX is stored inside the exe, it is easy to extract, save to disk, and call the RegisterOCX procedure.
Wednesday, May 6, 2020
World of Gangs - 2302 Words
Sociology 241 Course Paper Question #1: Using Hagedornââ¬â¢s analysis of the Hamburgs, and the Conservative Vice Lords in Chicago, and the Crips and Bloods videoââ¬â¢s analysis of gangs in LA, discuss how Hagedornââ¬â¢s concept of demoralization, and Cornell Westââ¬â¢s concept of nihilism, have an objective basis in the historical structure of Chicagoââ¬â¢s and LAââ¬â¢s racism. In John M. Hagedornââ¬â¢s book A World of Gangs he states, ââ¬Å"An increasingly frustrated and demoralized population will reluctantly turn to armed non-state actors who can provide security of a sort, a sense of identity, perhaps the sole local supply of jobs, and rudimentary services that the state cannot or will not offerâ⬠(Hagedorn p. 21). This notion is supported when one analyzesâ⬠¦show more contentâ⬠¦Social exclusion and economic polarization are key elements in what Castell says are policies aimed at the dismantling of the welfare state in the US and the West. He says that ââ¬Å"when the state can no longer provide adequate employment, protection, services, or security for expanding, closely tied and quartered urban populations that the potential for illegitimate forces of violent, private groups can and will move in to fill the void.â⬠(Hagedorn p. 7) According to Manuel Castell and John Hagedorn major gangs that have been around for decades have spread outside their original neighborhoods, and have evolved from wild peer groups to organized criminals with a gang identity are labeled or defined as ââ¬Å"institutionalizedâ⬠. Gangs are considered institutionalized because they are continually increasing the members in their group and have some sort tie to their community. They are impossible to remove, because their members and those, or the youth, that will ultimately become their members have no other options. The fact is they have been around and exist for years and years. Some may raise the question, ââ¬Å"Well, if you incarcerate the top dog or the kingpin wont everything just fall apartâ⬠? The answer is no. Many gangs of today and also in the past are highlyShow MoreRelatedDifferent Types Of Gangs Around The World2028 Words à |à 9 PagesThere are many different types of gangs around the world. Some gangs consist of Skinheads, Asians, Latinos, African-American and Caucasians. But there are some gangs that are mixed with different ethnics. Prison gangs are criminal associations that started inside the punitive framework and they have kept on operating inside remedial offices all through the United States. Prison gangs are likewise managing toward one criminal element that can precede with their operations outside the restrictionsRead MoreWorld s Most Dangerous Gang Essay2114 Words à |à 9 PagesMS13 - Worldââ¬â¢s Most Dangerous Gang Labeling Theory The Labeling theory is the theory of how the self-identity and behavior of individuals may be determined or influenced by the terms used to describe or classify them. It is associated with the concepts of self-fulfilling prophecy and stereotyping. Labeling theory holds that deviance is not inherent to an act, but instead focuses on the tendency of majorities to negatively label minorities or those seen as deviant from standard cultural norms. TheRead MorePeer Group : The World s Most Dangerous Gang1664 Words à |à 7 Pagesthe Worldââ¬â¢s Most Dangerous Gang, highlights the importance of peer pressure between humans within society. ââ¬Å"Gangâ⬠or ââ¬Å"cliqueâ⬠mentalities are part of what creates our relationships, friendships, and every day human interactions. The stronger a bond between individuals and their core values, beliefs, and interests, the more influential and attractive a gang/clique mentality will be to others seeking a group of friends to fit into. Man y children are associated with gangs at a young age for a varietyRead MoreThe Unknown World : A Gang Of Boys Walked Down The Street1974 Words à |à 8 Pages The Unknown world A gang of boys walked down the street. There was a lonely boy whose name is Philip, he was 17 years old. As he was walking their direction with his head down, staring at the ground and kicking the road beneath him. He knew the boys walking across from him would taunt him. They knew he was a lonely kid whose parents were drug addicts and whose siblings were gangsters. But he wasn t like them, because he was different. He had talents that he kept insideRead MoreAn Increasing Crime Statistic In The United States Is A1120 Words à |à 5 PagesStates is a lot of violence by young gangs. In this case, young gangs tend to kill other young people in a large percentage of incidents these juvenile killers belong to young gangs. Young gangs band together for various reasons and get into trouble with the law are certainly not new in America. Young gangs have been around since the early 1800ââ¬â¢s it was formed young kids of low-income immigrants who felt that society held no pl ace for them . The earliest gangs, which flourished in new England, NewRead MoreA Brief Note On The Problems Of Gangs891 Words à |à 4 PagesJosh Grice Mrs. Gallos English 3 Research Paper 24 November 2014 Gangs: The problems they make Gangs are a big problem in the world and it causes a lot of crime in the United States. There are a lot of different types of gangs in the world. You have the small gangs that are just made up of a group of friends and family, but then you also got the large gangs that are made up of hundreds of different kinds of people. Gang members go around committing so many crimes. They rob people in theirRead MoreFemale Gangs888 Words à |à 4 Pagesled to formation of groups as tribes for waging wars, and eventually in the urban times, now street gangs are formed in mostly developed cities, which are filled with crime and hate towards people other than their own gangs. Gangs all over the world especially in the United States of America, are very often very underlined as a male dominated one, and females that were supposed to be with the gang members, were either their wives of girlfriends, and females who were seen actively involved were supposedRead MoreEssay about Analysis of Doctorows Billy Bathgate1532 Words à |à 7 Pages Unspoken Laws in Billy Bathgate With the introduction into gang life comes opportunities for wealth, women, status and power all with the convenient diffusion of any criminal or moral responsibility. Like any society, the secret world of criminal gangs has its own set of stringent expectations and rules that must be followed. In E. L. Doctorowââ¬â¢s Billy Bathgate, the secret world of Schultzââ¬â¢s New York gang empire is revealed through the eyes of the young protagonist, Billy Bathgate. During a timeRead MoreArticle Review on John Hagedomà ´s The Global Impact of Gangs1830 Words à |à 7 PagesThe gang problem is not an issue that just affects the United States, but one that affects countries around the world. When researchers study gangs in the United States they must look at them in a global context. Especially, since these gangs have some of their cultures originating from outside the United States (Hagedorn, 2005: 153). It is possible that there is at least ten million gang members in the world today (Hagedorn, 2005: 156). When studying gangs researchers must look at how gangs interactRead MoreA.Subculture/Pg50: The Values And Related Behaviors Of1128 Words à |à 5 Pagesdistinguish its members from the larger culture; a world within a world. The most violent gang in the United States is the Mara Salvarcha 13. Mara Salvarcha 13 is a violent gang that originated in the Los Angeles, California. The gang members in the video state that they protect their territory by any means necessary. Killing, robbing, burglary are all normalized acts of this dangerous gang. These dangerous acts are used to prove loyalty to other gang members and acquire the power they desire amongst
Pathology For The Health Related Profession - Myassignmenthelp.Com
Question: Discuss about the Pathology For The Health Related Profession. Answer: Introduction Massage therapy is the hands-on method focused on working with the patients soft tissues and muscles for achieving adequate healing of injuries suffered by the body. The main aim is to attain an enhancement of overall health and wellbeing of the person through injury rehabilitation. Therapists must develop a better understanding of the mechanism of healing of damaged tissue in the body and how the body repairs any injury suffered. The professional must identify specific events occurring after an injury and the commonly presented signs and symptoms associated with tissue repair. This helps in understanding where patients fall in the continuum of healing, and what functional changes and sensations are to be expected. The ultimate outcome would be support provided for the restoration of optimal function of the patients body (Salvo 2015). The present paper would discuss the stages of healing associated with massage therapy in details. Stages of healing associated with massage therapy The tissue healing process associated with massage therapy can be broken don into three stages: acute stage, sub acute stage, and chronic stage. These stages are described in details below- Acute phase (protection/inflammatory phase)- The much-needed process of healing starts immediately after a traumatic injury when the body generates an inflammatory response. The responses magnitude is dependent on the extremity of the damage suffered and is found to vary between individuals. The tissues that are injured release chemicals which draw other resources to the area of injury, alerting the body that there has been a damage suffered. At the initial stage, the blood vessels in the surrounding dilate, and blood flow to the are is increased. As a result, white blood cells are delivered to the area along with nutrients which are necessary for cleaning the affected area. The affected area becomes swollen, and plasma leaks into the area. It is common for patients to suffer pain sensation as a result of the inflammatory response. The inflammatory response also has a secondary aim which is to limit function in the are injured. The common cardinal signs characterising inflammation are heat, swelling, loss of function, pain and redness. The normal time frame for your acute symptoms to reduce is two to five days post-injury (Lori and Hall 2005). Massage therapy is known to act in a positive manner in the body by helping in the maintenance and increase of blood and lymph circulation. As a result, there is a decrease in the amount of swelling, permitting clearance of waste products accumulated by the inflammatory process. In addition, massage also aids in the reduction of tension suffered in any compensating muscles of the body. This allows for the provision of exercise in the acute phase. Moreover, massage therapy also helps in giving a psychological boost to the process of tissue healing. One can perform passive range of motion and muscle setting that are pain-free. Low isometric resistance exercises might also be helpful (Salvo 2015). Sub acute phase (controlled motion/ repair and modelling)- The inflammatory response is followed by the repair phase, or the subacute phase when the debris from the injury site is removed. Symptoms and signs of the inflammation are diminished, and construction is enabled for replacing and repairing the injured tissues. It is likely for patients to suffer pain in certain areas of the body since the chemicals dissipate for centralising the healing process in the damaged areas. When the repair phase is enabled, there is the growth of new blood vessels as a result of which there is maximum transport in the tissue. The new transport network is responsible for delivering materials utmost needed for the repair process and removal of the metabolic waste. It is known that fibroblast cells are responsible for generating collagen fibres and extracellular matrix. These fibroblast cells then produce granulation tissue that fills the gaps generated by removal of damaged tissue. The time required for complete repair and degree of production of granulation tissue is dependent on the degree of tissue damage. When there is enough production of granulation tissue, the body supports deconstruction of temporary vessels and a decrease of fibroblast activity. Regeneration of new cells is now possible which is the most vital for the healing process. It is significant to take into consideration that granulation tissue does not tolerate forces needed by the body for full return to activities of daily living (Damnajov 2000). Massage therapy augments circulation to the affected area in the body and provides the necessary nutrients for the healing process. Such therapies have been very effective in this stage, as highlighted by a rich pool of research. Massage can also treat compensating muscles and increase the range of motion. Furthermore, patients are also relieved from pain to a great extent (Salvo 2015). Chronic phase (return to function/maturation and remodelling) Healing is a continuum, and when the repaired structure is weak, there is automatic stimulation of additional new tissues for support the healing process. The successive and final phase of healing process considers construction of permanent tissue with the help of collagen fibres which build a dense network in the affected area. When the normal functioning of the body returns and the new tissue is to carry out its designated role, there is need of reconfiguring the structure for adaptation. This is done through deconstruction and reconstruction of the collagen fibres as per the applied forces for optimal flexibility and strength. The mentioned process is called remodelling which includes alignment of collagen fibres along the lines of stress. The pain that was suffered by the patient due to inflammation is replaced by that caused due to ischemia in this phase. The injured area receives less blood flow since there is a deconstruction of capillaries and formation of mature scar tissue. Patients often report inability to carry out maximal mobility since the collagens form a dense network, replacing the granulation tissues. The soft tissues are also made pliable that might be reduced in case there is adhesion of between fascial layers in associated and affected areas. Remodelling usually takes months to years and success achieved in this phase is dependent on the progression of functional activities (Whiting and Zernicke 2008). At this stage when the body is ready to return to normal functioning, massage therapy helps by preparing the body for intense rehabilitation and relaxation. The techniques might be deeper and more extensive that help in the alignment of collagen fibres and development of functional independence. The quality of tissues reformed is also improved through massage therapies. One must note that there exists no particular time frame for the process of healing associated with massage therapy. Different factors, such as the type of tissue injured, amount of damage, the health of the patient, location, pre-existing conditions, nutrition and medications influence the process of tissue repair. Massage therapy helps in the process of healing by enabling the individuals to shift to a parasympathetic nervous response from a sympathetic nervous response (Field 2014). Source: rivierawellbeing.co.uk (2018) Source: Salvo (2015) Conclusion In closing, massage therapy has immense benefits for injury healing in patients. The healing process can be divided into three stages in which massage is extremely useful for recovering in a speedy manner. These are an acute inflammatory phase, repair phase and tissue remodelling phase. Treatment through massage would stare with isolation and progress to complete functional integration. The exact form of therapy would depend on the demands of the injury and the needs of the body. Recognising the signs and symptoms after an injury has taken place is important for complete healing. References Damjanov, I., 2000.Pathology for the health-related professions. WB Saunders Company. pp. 42-67. Field, T., 2014. Massage therapy research review.Complementary therapies in clinical practice,20(4), pp.224-229. Lori, T. and Hall, C.M. 2005.Therapeutic exercise: moving toward function. Lippincott Williams Wilkins. pp. 282-309. Riviera Wellbeing. (2018).Hot or Cold Therapy for Soft Tissue Injury? - Riviera Wellbeing. [online] Available at: https://rivierawellbeing.co.uk/hot-cold-therapy/ [Accessed 6 Jan. 2018]. Salvo, S.G., 2015.Massage Therapy-E-Book: Principles and Practice. Elsevier Health Sciences. pp. 18-20. Whiting, W.C. and Zernicke, R.F., 2008.Biomechanics of musculoskeletal injury. Human Kinetics. pp. 126-152.
Subscribe to:
Posts (Atom)