Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Trope
  • Content: Threads
  • Order by date
  1. Trope

    can anyone get these lines to work? changing a byte...

    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...
  2. Trope

    self modify code , this example don't work

    Anyone know why I am getting an error? #include "iostream.h" #include "windows.h" char * function_addr; LPVOID addr; DWORD prev; __declspec(naked) int selfmodify() { __asm { mov dword ptr [addr],offset [modify_this + 1] //get the address of the code }...
  3. Trope

    Self Modifying Code - Newbie Question

    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...
  4. Trope

    Newbie ? - How do I get a sting's length?

    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...
  5. Trope

    Terminating a process - newbie help

    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...
  6. Trope

    newbie ? - > cin - compare letter "A" to "F"

    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...
  7. Trope

    Newbie Help - CrackMe Help

    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...
  8. Trope

    Retrieve new record ID using Access

    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
  9. Trope

    Help with swapping colors

    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...
  10. Trope

    Message Box is Netscape?

    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"...
  11. Trope

    complex (for me) QUERY HELP

    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...
  12. Trope

    Once Again, Is there an easier way to code this?

    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 '...
  13. Trope

    &quot;Record Locked By Another User&quot;

    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: &quot;Could not read the record; currently locked by another user.&quot; Here is my code, I am trying to take data from an old table, and insert into...
  14. Trope

    Is there an easier way to re-code this?

    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 = &quot;D&quot; THEN ' Direct Hires...
  15. Trope

    A complex encryption problem

    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...
  16. Trope

    Regular Expression Help

    I wanted to learn about regular expressions, so I decided to build a &quot;regular expression&quot; 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...
  17. Trope

    return records from last week - DATE help

    I have a field called dateCreated. How would I return all rows that were created last week? I have tried, but to no avail. Thanks Trope
  18. Trope

    INNER JOIN newbie question

    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...
  19. Trope

    Hello Word In a MessagBox - Help returning value

    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...
  20. Trope

    TERRIFIC CSS tutorial for Newbies!

    www.mtpleasantia.com/brainjar.pdf many more at his site as well. Trope!

Part and Inventory Search

Back
Top