Hi all, I have a project with VirtualQueryEx in vb.net. Some line of My code here : ============= Public Structure MEMORY_BASIC_INFORMATION Public BaseAddress As Long Public AllocationBase As Long Public AllocationProtect As Long Public RegionSize As Long Public State As Long Public Protect As Long Public Type As Long End Structure Public Declare Function VirtualQueryEx Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpAddress As Long, ByRef lpBuffer As MEMORY_BASIC_INFORMATION, ByVal dwLength As Integer) As Integer processHandle = OpenProcess(PROCESS_ALL_ACCESS, 0, m_ReadProcess.Id) Dim mbi As New MEMORY_BASIC_INFORMATION VirtualQueryEx(processHandle, addr, mbi, Marshal.SizeOf(mbi)) ============== But, VirtualQueryEx not working in vb.net . Pls, help me fix error or give me some advices. Thank you alot Best regard
lucdt
Posts
-
how to use VirtualQueryEx in vb.net -
How to Serializable OracleConnectionThank for quick reply ! I will chance my design. Bests regards
-
How to Serializable OracleConnectionHi all, I have a WebServices. I want to pass Instance of OracleConnection to Client because i don't want initialize a OracleConnection at Client for Security. But I known OracleConnection Object build-in .Net without implement IxmlSerializable, in others words OracleConnection don't have ability Serializable. Pls, help me. Give me introduction or some guide to pass Instance of OracleConnection to Client from Webservices. Thank alot Best Regard Luc
-
MergeCell in Excell VB.NETHi all ! I wanto merge Cell from Cell (8,10) to Cell (8,150). In that, 8 is row index, 10 and 105 is column index. Pls, tell me How can I do to resolve this problem ! Thank alot !
-
Order Number for Group in CrystalReport have many GroupHi all ! I am new in program for Crystalreport. In my Report, I have two Group By : School ID, and then Class ID. I want use GroupNUmber in order to Order NUmber the Group School ID ( 1,2,3, ...) But I allway recieve the Order Number of Group Class ID. pls help me How to resolve the problem ! Thank alot ! Example : I want the result the fowllow 1 School1 1 Class1 2 Class2 3 Class3 2 School2 1 Class1 2 Class2 3 School3 1 Class1 But Reruslt : 1 School1 1 Class1 2 Class2 3 Class3 4 School2 4 Class1 5 Class2 6 School3 6 Class1
-
Insert data to DatabaseHi! My code is here ! pls, help me. Thank alot ===================== // Then, I have to insert detail each Item into Items Table For i .... With g_cmd .Connection = g_Conn .Transaction() = g_trans .CommandType = CommandType.StoredProcedure .CommandText = "PKG_NHAP_TBI.SpInsert_CTPhieuNhap" .Parameters.Clear() .Parameters.Add("v_soct", soCT).Direction = ParameterDirection.Input ............... .ExecuteNonQuery() End With Next ========= When both procedures successful, I must commit the Transaction ( g_trans.Commit()). But If have some problem, I have to rollback all (g_trans.Rollback())
-
Insert data to DatabaseHi! My code is here ! pls, hekp me ===================== g_trans = g_Conn.BeginTransaction Me.g_cmd = New OracleClient.OracleCommand // The first. I hate to insert the header of bill into BillHeader Table With g_cmd .Connection = g_Conn .Transaction() = g_trans .CommandType = CommandType.StoredProcedure .CommandText = "PKG_NHAP_TBI.SpInsert_TDPhieuNhap" .Parameters.Clear() .Parameters.Add("v_soct", soCT).Direction = ParameterDirection.Input .......... .ExecuteNonQuery() End With // Then, I have to insert detail each Item into Items Table With g_cmd .Connection = g_Conn .Transaction() = g_trans .CommandType = CommandType.StoredProcedure .CommandText = "PKG_NHAP_TBI.SpInsert_CTPhieuNhap" .Parameters.Clear() .Parameters.Add("v_soct", soCT).Direction = ParameterDirection.Input ............... .ExecuteNonQuery() End With ========= When both procedures successful, I must commit the Transaction ( g_trans.Commit()). But If have some problem, I have to rollback all (g_trans.Rollback())
-
Insert data to DatabaseHI all ! I have a problem. I buil a procedure which insert data to Oracle Database. In the procedure I call twice ( 2 times) the StoredProcedure. Both these StoredProcedure aslo using common a Transaction. The first done well but immediately my application was pending ( may be the broken network,...) and I have to restart my application. But in Oracle Database the data have inserted. Pls, tell me why ? and How can I resolve it. Althought a Transaction in my application didn't commit; Thank alot
-
Load html page in VB.NETHI all ! I wonder whether to load html page into rich text box or something in VB.NET ? If someone know, pls help me. Thank you alots ! Thank ! Best Regard
-
Using Store Procedure that using dblink in VB.NETHi all ! I am 2 oracle Server ! In Oracle A, I create a store procedure using dblink to Oracle B to query data. I buil a application in VB.net. And connect to Oracle A anh use this Procedure but I allway the error: "database Client not begin transaction" Athought , I add transaction but this error still occur Pls, help me, bug it ! Thank alot !
-
Program Multi Processor !Hi all ! My computer have 3 Processor ( 3 CPU). My Application use only 1 processor for the work. Now I want to use all 3 Processor. Pls, show me How to program in order to using all 3 Processor. Thank you alots !
-
Thread in VC++ !Hi all ! I have developed the application. in my main class, I call 8 thread . The main class must to wait all 8 Thread end to continute do something. How to known all 8 Thread ended ? pls, help me ! Thank alots
-
Using dll that built by VC++ in C#Hi all ! I have built a .dll in VC++. Now I continute develope it in C#. So I reused dll in C#. But when I using Thread that used this dll, I allway meet a problem : Only Thread using dll in a time. How to using dll for all Thread. Pls help me! Thank alots !
-
Threading in C# !Thank you very much ! I have tried the methord you suggest. It done well. Thank again !
-
Threading in C# !I have developed an application ! In my main class, I call 8 Threading to work something. My main class must to wait all 8 Threading end in order to continute do something. I don't known how to suspend my main class to wait all 8 Threading end. How to known all 8 Threading end. Pls, help me ! Thank alots !
-
How to order columns in C1FlexGrid !Hi all ! I am using C1FlexGrid to contain the data that have gotten from database. Some data have date type So I want to order them. I cant't seem control. Help me !
-
get data from Oracle Database !Hi all ! I am building a form in VB.net. The function of this form is get all data from one table in Oracle Database and export or write into Fox format. The table in Oracle Database is very large. When I using the following : With cm .... .Parameters.Add("bg", OracleType.Cursor).Direction = ParameterDirection.Output end with adp.SelectCommand = cm adp.Fill(dataset, "bill_detail") but this command execute very very low. I need all data from the table (about 20 million rows), how can I do ?? Pls, help me !
-
Using msado15.dll in VC++ Application Which build DLL !I haved try. It done well. Thanks alots
-
Using msado15.dll in VC++ Application Which build DLL !Hi all ! I am buill dll application in VC++ with MFC AppWizard(dll). In the file StdAfx.h, I have included the line follows into it's header. #import "C:\Program Files\Common Files\System\ado\msado15.dll" \ no_namespace \ rename( "EOF", "adoEOF" ) I using msado15.dll for accessing the .mdb database. But When I builded my application, I always met some mistake . Example 'LockTypeEnum' : 'enum' type redefinition I really don't known why ? I done well in the normal application but in dll application I can't... pls, help me resolve the problem. Thanks alots
-
Can you tell me How many rows datagrid contain ! PlsThanks you. I thinks that a good idea.