sure wont work for me, but it's supposed to.
LPVOID address;
// Get the address of the dword we need to change
_asm mov dword ptr address,offset [myloop+3]
// Ask windows for permission to modify the code
result = VirtualProtect(address,4,PAGE_WRITECOPY,&oldprotect);
// Modify it in...
I am writing a simple C++ application that allows the user to test the app IF they have a password.
I would like to prevent the casual cracker from modifying the code to bypass this password check.
Here is some psuedocode:
if(!password){
// Quit program
}
and in assembly might result in...
I have a TEdit contol named userName on my form. When a button is pressed I am brought here:
void __fastcall TForm1::btnLoginClick(TObject *Sender)
{
}
//---------------------------------------------------------
I have tried the following (after many searches Google and this forum )
// Get...
I want to terminate a process (a running exe file) if a particular window is open (namely a disassembler named Olly).
I have had no luck.
I tried FindWindow and that works, but it seems like I cannot terminate the program using the window handle that is returned.
Anybody figure out how to do...
I am a newbie... trying to make this simple program accept a character input A-F. If not A-F give a message and get another character.
This is not working, does anyone see my mistake?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
// Init user...
Code I need help with is below.
I have always been interested in learning how to better protect my software.
I am studying ASM in order to better understand how reverse engineers (as they like to call themselves) break in to my code.
The learning curve is steep - but onward I march.
I have...
I've searched high and low for an answer to this: How can I insert a record in ASP.NET using an Access database, and retrieve the new records ID?
Are we back to the old ways of having to use SELECT MAX or did .net finally give us a better solution?
Any help would sure be appreciated.
John
I am fairly new to PS...
I have a photo of a hat ( a baseball style cap ) and the boss wants to see what it would look like in different colors.
Can someone point me in the right direction on what to study? Is it channels? Or masks?
Basically I would like to make a selection, and add the new...
Straight from the asp.net tutorials...
This WORKS in Netscape - giving me a VB message box just fine.
But how? I thought VBscript only ran in IE?
Is this new .net stuff going to solve my x-browser problems?
Just a brief explanation would be great!
Thanks!
<html>
<script language="VB"...
In theory, this seemed easy to me. WHen I tried to SELECT it... different story.
I have 4 tables related to this question. I am interested in retrieving all related records from all four tables in a Select.
This is a recruiting site I am doing. The page I am having trouble with is the page...
I think I am taking the long way to do this. Does anyone have an suggestions for me how I could clean up this code - it's getting quite long.
This is the process page for an advanced search page for a recruiting site I am doing.
'------------------ CODE START
'...
There are no other users, just me. And it's successfully writing two records before it crashes.
This is the exact error message I am getting:
"Could not read the record; currently locked by another user."
Here is my code, I am trying to take data from an old table, and insert into...
It appears that I am ALMOST rewriting the same code - is there an easier way to code this than all these IF's?
'------CODE SNIPPET----------------
' Did they order just one job?
IF multiple_quantity = 1 THEN
' Determine Hire Type
IF multiple_hire_type = "D" THEN
' Direct Hires...
Among the simplest (and among the oldest) methods for encryption is the Caesar cipher:
if a letter in the plaintext is the Nth letter in the alphabet,replace it by the (N + K)th letter in the alphabet, where K is some fixed integer (Caesar used K = 3). For example, the table below shows how a...
I wanted to learn about regular expressions, so I decided to build a "regular expression" tool that would allow you to 'build' your expressions, test them, etc. 'The best way to learn is by teaching...or something like that, right?' :)
The app is at...
Ok I am familiar with joining tables like this:
Select table1.name,
table1.address,
table2.productDesc,
table2.productPrice,
table3.shippingfrom
FROM table1,
table2,
table3
WHERE
table1.ID = table2.customerID AND
table1.ID = table3.customerID...
Ok, I finally wrote my first successful ASM program, which is below.
My question is this - how do I find out what button ( yes/no/cancel ) the user pressed? Where is this information stored? According to the Win32API:
If the function succeeds, the return value is one of the following menu-item...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.