Member Avatar

My problem is when I open new activity when pressing button an error accoutred "Unfortunately, ISPcheck has stopped". Here is my MainActivity.java button click event code: public void btnLogin_OnClick(View view) { startActivity(new Intent(MainActivity.this, PersonInfo.class)); } Here is button xml code in activity_main.xml: <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="تسجيل الدخول" android:id="@+id/btnLogin" android:layout_marginTop="72dp" android:textColor="#ffffff" android:layout_below="@+id/txtPassword" android:layout_centerHorizontal="true" android: önClick="btnLogin_OnClick" / > Here is AndroidManifest.xml code: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hsa.ispcheck" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.hsa.ispcheck.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.hsa.ispcheck.PersonInfo" android:label="@string/title_activity_person_info" > </activity> </application> </manifest> So, …

Member Avatar
+0 forum 4
Member Avatar

Hi guys, first of all: I don't want code to make virtual network adapter. Only I want is: Which should I do to make virtual network adapter?? I know to make simple drivers in driver development using DDK, but I don't know virtual network adapter been developed. The reason of my developing of this driver is to make an HTTPtunnel, which it will make virtual network between two computers cross the Internet.

Member Avatar
+0 forum 1
Member Avatar

Hi guys, I had developed a server control which acts as a container (user can add any control inside the server control). [DefaultProperty("Text")] [Designer(typeof(ContainerControlDesigner))] [ParseChildren(false)] [ControlBuilderAttribute(typeof(SampleControlBuilder))] [ToolboxData("<{0}:Sample runat="server"></{0}:Sample>")] public class Sample: WebControl, INamingContainer { protected override void CreateChildControls() { System.Collections.IEnumerator myEnumerator = items.GetEnumerator(); while (myEnumerator.MoveNext()) this.Controls.Add((TextBox)myEnumerator.Current); } protected override void AddParsedSubObject(Object obj) { if (obj is TextBox) { items.Add(obj); } } } public class SampleControlBuilder : ControlBuilder { public override Type GetChildControlType(String tagName, IDictionary attributes) { if (String.Compare(tagName, "myitem", true) == 0) { return typeof(TextBox); } return null; } } public class SampleContainerControlDesigner : ContainerControlDesigner { public override bool AllowResize …

Member Avatar
+0 forum 1
Member Avatar

Hello guys, I would like to know how client browser send data to server whithout refreshing the page (just like chat in facebook)? I have searched in google but I found alot of tutorials but non of them told me what is the basic idea about web server client synchronization? what is the basic functions in javascript used to do this? I just want to know what is the functions used to send and reseive data between client browser and server.

Member Avatar
+0 forum 5
Member Avatar

Hello guys, I'm using MapViewOfFile to map a file and try to edit its data and save it on the file. The problem I have extra data to the file required to expand its size. So, how to append data to the end of memory mapped file using CreateFileMapping and MapViewOfFile?

Member Avatar
+0 forum 2
Member Avatar

Hello guys, can someone show me how to add new section to PE header in masm32?

+0 forum 0
Member Avatar

Hello guys, I have problem with reading or writing files in C++ and MASM32. The problem is when calling the ReadFile or WriteFile the program give an exception saying "Access violation at address 0000". This is the code in MASM32: LOCAL Kernel32:DWORD LOCAL CreateFileA:DWORD LOCAL GetFileSize:DWORD LOCAL ReadFile:DWORD LOCAL pBytesRead:DWORD LOCAL BytesToRead:DWORD LOCAL hFile:DWORD ;----------------------------------------- ;Getting Kernel Imagebase ;----------------------------------------- ;kernel32.dll = 2511EF2C PUSH 02511EF2Ch CALL find_dll MOV Kernel32, EAX ;----------------------------------------- ;Find required APIs ;----------------------------------------- ;CreateFileA = 0CF2006EAh, GetFileSize = 06D61AB47h, ReadFile = 024EF6F37h, WriteFile = 0317EB0D7h PUSH 0CF2006EAh PUSH Kernel32 CALL find_api MOV CreateFileA, EAX PUSH 06D61AB47h PUSH Kernel32 CALL …

Member Avatar
+0 forum 3
Member Avatar

Hi all, I'm programming a shell code for stack buffer overflow vulnerabilities, I have learned about it and read alot of this vulnerability and finally I have the ability to exploit it and make the shells. This is my code: ;+-+-+-+-+[ FileName: shellcode.asm ]+-+-+-+-+-+ .386 .model flat, stdcall option casemap:none ;+-+-+-+-+ Include Files +-+-+-+-+-+ include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\user32.inc ;+-+-+-+-+ Include Libraries +-+-+-+-+ includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib .code main: ;|=--------------=[ shell code section ]=---------------=| push 0 ; OK button jmp _caption _rCaption: jmp _msg _rMsg: push 0 ; hWnd call DWORD PTR DS:[402034h] ; &lt;=&gt; call MessageBox push 0 …

Member Avatar
+0 forum 3
Member Avatar

Hi guys, As you know the Internet divided into private network and public network, the public IP which include to public network is accessible and private IP which include to private network is inaccessible due to Internet network. So, I decided to use one of public servers have windows servers as an access point server. I guess you wonder what I'm trying to do? One of computers outside the world have server program which receives incoming clients and establish multi-connections with them. And this computer include to private network and you know that I can't access it from another private …

Member Avatar
+0 forum 9
Member Avatar

Hi fellows, I have problem in php code and I had searched in days but I didn't found something good. The problem is when execute the following code and error occured: $sql = "CALL categoriesSelectByParent($CategId)"; if(!($result = $con->query($sql))) echo "Failed: (" . $con->errno . ") " . $con->error; else { //Do something with the result. } $result->free(); $sql = "CALL booksSelectByCategoryId($CategId)"; if(!($result = $con->query($sql))) echo "Failed: (" . $con->errno . ") " . $con->error; else { //Do something with the result. } the error is: "Failed: (2014) Commands out of sync; you can't run this command now" I know the …

Member Avatar
+0 forum 6
Member Avatar

I have problem with making my program works on windows startup. Here's the code: Sub RunAtStartup(ByVal PutAtStartup As Boolean, ByVal Name As String, ByVal Path As String) Dim StartupPath As String = "Software\Microsoft\Windows\CurrentVersion\Run" Dim myKey As Microsoft.Win32.RegistryKey myKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(StartupPath, True) If PutAtStartup = True Then Try myKey.SetValue(Name, Path) Catch ex As Exception ErrLog &= ex.ToString & vbNewLine End Try Else Try myKey.DeleteValue(Name, False) Catch ex As Exception ErrLog &= ex.ToString & vbNewLine End Try End If End Sub As you see above my program edit the registry on path "Software\Microsoft\Windows\CurrentVersion\Run" and the value it succefully inserted in the path. …

Member Avatar
+0 forum 7
Member Avatar

Hi guys, I am programming a page that test the speed of customer's typing in the page. So what I did is to save the current time in page loading event and in the another page it will subtract the time that came from the previous page and display it.So, when the customer pressed at the button when finished it will lead to another page that display the time spent in typing so he know his speed in typing. The code of the first page: Public Partial Class WebForm1 Inherits System.Web.UI.Page Dim H As String Dim M As String Dim …

Member Avatar
+0 forum 1
Member Avatar

Hi guys, I am programming a page that test the speed of customer's typing in the page. So what I did is to save the current time in page loading event and in the another page it will subtract the time that came from the previous page and display it.So, when the customer pressed at the button when finished it will lead to another page that display the time spent in typing so he know his speed in typing. The code of the first page: Public Partial Class WebForm1 Inherits System.Web.UI.Page Dim H As String Dim M As String Dim …

Member Avatar
+0 forum 1
Member Avatar

Hi guys, as you know we can get a value from array by giving an index: int x[10]; int i; for(i=0; i<10; i++) x[i]=i; print(x[1]); // output is: 1 but how can I change this code to this: int x[10]; int i; x['a']=0; x['b']=1; x['c']=2; . . . x['z']=23; print(x['c']); //output is: 2 as you see the code above I can give a char to the array as an index and print its value.... Can I? thanx

Member Avatar
+0 forum 4
Member Avatar

Hi guys, I am developing a software and I want to make it in good appearance!!!! As you see most of programs have a beautiful skins, I want too!! I have google it in days and I found a dll file called "DevComponents.DotNetBar2.dll" ( may you have heard about it) this file change my form skin to something like " microsoft office " visual style, but this file have no source code. So, any body can help me with "How develop a form and list of controls depending on pictures designed prior?". When I opened the form.designer in VB.net I …

Member Avatar
+0 forum 2
Member Avatar

Hi guys, I'm programming a firewall and so far I have complete the driver coding, but I don't know **How to send IRPs from user applicatio to the dirver?** I have used `IoCreateSymbolicLink` to establish the connection between the usermode and kernelmode but I don't know how to send information from the user application downto the driver. I have searched in google in days but without a real results. So any one can help me I will be very grateful. this is my code: NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) { UNICODE_STRING DeviceName,Win32Device; PDEVICE_OBJECT DeviceObject = NULL; NTSTATUS status; …

Member Avatar
+0 forum 6
Member Avatar

Hi gueys, I am programming a class compenent liberary in C++ CLR, but I have a problem with exception throwing. this is the code that call the exception: `throw gcnew ReadStreamException(Error);` and this is the exception class: public ref class ReadStreamException : Exception { ReadStreamException(String^ Message) : Exception(Message) {} }; but when I compile it the compiler give this error: `Error 3 error C2061: syntax error : identifier 'ReadStreamException'` Please tell me what the wrong did I have???? thanx

+0 forum 0
Member Avatar

Hi gueys, I have question searched in google but without something that can help. **How to get the binary stream from files ( especially executable files) using winapi (CreateFile , etc)????** I learned in these days how to read write files using Createfile, ReadFile, WriteFile , etc and all these WINAPI functions. But ReadFile get me characters contains of files, and when I want to read exe files it get me a few bytes and that's it. The reason of this behaviour is that the readfile read the file until get NULL and as you know the exe files have …

Member Avatar
+0 forum 10
Member Avatar

Hi gueys, I have spent weeks in searching to know how to Explore hard disk files using c++ driver developping?. I'm developing anti-virus program, only I want is: when the user choose custom scan from scan options the program load a driver and send the path to the driver and the driver scan the specific directory and return the file stream to check it if there bad md5 hash or not. I will explain what is the purpose of my question. well, if you know there are many viruses who can stealthy invisible and no one can see it at …

Member Avatar
+0 forum 12
Member Avatar

Hi guys, what's up? Is native applications familiar to you? I'm right now building an anti-virus, and as you know the viruses can be active or passive, the passive is easy to remove but the active , well.... it's hard to remove but I finally found the solution is by removing it in system boot. As you know when the windows boot, any processes or services will not get started unless the kernel mode it's be done... By this way I can remove any virus before get started. I have searched in google for weeks and I found that I …

Member Avatar
+0 forum 11

The End.