Programming and Coding
Programming and coding tips, help and solutions...
1,896 topics in this forum
-
I need to design a simulator for a SPARC based customized processor. The simulator has to be able to accept a SPARC-ELF binary as its input. Does anyone have any suggestion how to extract the RAW machine code from the ELF file so that I can disassemble it programmatically & simulate the instruction?
-
Hi all, Story; At a certain stage during as setup (setup.exe) a window is displayed. It says Insert CD2. options; Ok, Cancel I go for the Ok option. Using Spy ++ I see the following; IRP_MJ_CREATE IRP_MJ_QUERY_INFORMATION IRP_MJ_QUERY_VOLUME_INFORMATION IRP_MJ_CLEANUP IRP_MJ_CLOSE so it does a check if cd2 is inserted. Using Olly debug; I see in the windows page Handle 002a0503 Parent 0015056E ID 00000001 Thread Main cls proc 752358F1 Is it possible to put a breakpoint on the ok button, using Olly or IDA? pressing the OK button executes a piece of code, is this easily found? I think I need to manipulate the information struct, telling the cd2 has been inserted. regards, g…
-
Hi, well, the lib itself isn't new, but I haven't seen a clean static lib yet, ready to get used in asm. I've added some code from the SmallYmPlayer into the StSoundLibrary itself, so somebody doesn't have to worry about setting up a sound server like the SmallYmPlayer does. Lib (dynamic + static) with example code: PlayYm.7z All credits for the library to Leonard ofc: http://leonard.oxg.free.fr/ cheers
-
Codekana is a Visual Studio add-in that helps you understand the code you're working on much faster. Colored outlines and highlights to show control-flow, function and class names, search results and unmatched delimiters It's FREE ... />http://www.codekana.com/
-
Being a beginner, I wasn't aware that you could even inline ASM into a c++ program until I checked out this keygen challenge and saw the keygen code written by Reaction: http://forum.tuts4yo...-1/page__st__20 I copied the asm portion of Reaction's code into Visual C++ and it compiled and ran fine. However, I'm trying to use the same code in Xcode on a Macbook Pro running OS X 10.6.8, and I'm getting some errors. I don't know if it's differences in syntax or maybe I need to define some things. I'm attaching a screenshot of the errors with the code. Any help is appreciated!
-
Do anyone have vertical text scrolling library ? As diabloo's text scroller is horizontal one, I need a vertical one. Specially flicker free. Any idea, source ! HR, LulzCoder
-
i m trying catch buffer of de recv function, but i not have success. I used C/C++ Code : #pragma comment(lib, "detoured.lib") #pragma comment(lib, "detours.lib") #pragma comment(lib, "Ws2_32.lib") #undef UNICODE #include <cstdio> #include <Winsock2.h> #include <ws2tcpip.h> #include <windows.h> #include "detours.h" //*IMPORTANT: Look at path if compiler error //Prototypes int (WINAPI *pSend)(SOCKET s, const char* buf, int len, int flags) = send; int WINAPI MySend(SOCKET s, const char* buf, int len, int flags); int (WINAPI *pRecv)(SOCKET s, char* buf, int len, int flags) = recv; int WINAPI MyRecv(SOCKET s, char* buf, int len, int flags); //Log files…
-
Hello Guys, I was looking for a vertical text scroll engine or lib or simple sample code like u see in the about box of keygen or nfo viewer. I found diablo2oo2's scroll text lib, but it works for text horizontally. I tried downloaded some sample codes of keygen, but they include all extra things and the code is too complex to look at to figure out just how it making the text scroll vertical moving bottom-to-top n top-to-button. Can any one just put a small easy to understand sample code or hints without using any bitmap or effects. Juts simply a dialog box n text scrolling.. Thanks in advance...
-
Hi guys, I am coding a new project in assembly (using MASM). I need to generate a random number each time that exe will run. To be more clear i need to generate random numbers between 0 to 9. I have tried crt_rand , but it gives me 1 every time I run the exe. Do anyone have any idea or source/demo on how to generate random numbers between 0 to 9 please tell me. And if the implementation of random function will be simple, it will be more useful. Thanks Blue Indian
-
Which static lib could play mp3 from resource WITHOUT extracting the mp3 file to hard disk? C++ is prefered. Thank you buddies.
-
hi all a friend of me and i got a problem. we found a nice firework-effect for asm32. but when trying to run the code in Windows 7 it crashes. Maybe someone can help us to get a working firework-effect for winxp & win7 ? pm me if you would take a look at the source
-
Hi, i have a application that drops all Window Messages like WM_GETTEXTLENGTH etc. to prevent that another application read this control. Is there a way to get the text from memory ? I have only the control handle. WinSpy++ tells me, its a normal "Static"-Control Class.
-
Hi all, While playing with the Miracl large integer package and using the example code as a base, i made 3 ECDSA functions: 1. Keypair generation. 2. Data signing. 3. Signature verification. Using the 'cinstr' function i am able to load parameters from ascii strings to bignum variables and it works just fine, all 3 functions are operational and correct. Using the 'big_to_bytes' function i am able to get the octet string which represents the bignums in use and i can load them back to bignum variables using 'bytes_to_big' and following along in OllyDbg i can see that all of the values are correct and exactly the same as if i had loaded them from strings. However, when it re…
-
Hi. A sample for tiny Speech under 1k. A static lib will follow! Speech1K.rar
-
I subclassed a label(static text) control to avoid text flicking, and dealed with WM_SETTEXT of label's message, however, the bitblt function didn't work. Thank you. Attachment is the c++ source. //label's subclass wndProc char szBuf[512]={0}; HDC hdc, hdcMem; if(message == WM_SETTEXT) { strcpy(szBuf, (char *)lParam); lParam = 0; hdc = GetDC(hLabel); hdcMem = CreateCompatibleDC(hdc); SetTextColor(hdcMem, RGB(255,0,0)); TextOut(hdcMem, 0, 0, szBuf, strlen(szBuf)); BitBlt(hdc, 0, 0, 300, 300, hdcMem, 0, 0, SRCCOPY); DeleteDC(hdcMem); ReleaseDC(hLabel, hdc); return 0; } flickerLabel.zip
-
Hi to all. Prefetch Cleaner This software will clean Prefetch directory of windows xp in order to speed up your windows. I wrote this program with pure assembly. Here is the source code + application: http://hsnc3r.persiangig.com/ASA/P_C.rar Password of archive: ASA-2012
-
Hello everyone, how do I create this effect? When I click on the About button, check a form with specular space. I do not know exactly what it's called the effect, but I think it uses OpenGL. Thanks! P. S. Sorry for my bad English.
-
ATL webbrowser had no response to <ENTER> and <TAB> key. Solved by using HOOK: WH_GETMESSAGE reference link: />http://www.codeproject.com/Articles/1097/Tabs-and-Accelerators-in-ATL-Modeless-Dialogs Thanks.
-
is anyone familiar with kol? basically im try to inject a dll & show the form, but ive no idea what im doing with it (only just started using it) This a VCL version that works but i cant seem to figure out how to do it with KOL. why dont i just use the vcl version, because 1.xx mb is a joke & the VCL bloat gets bigger with every new release, hence the KOL replacement. uses SysUtils, Classes, Windows, Forms, Source in 'Trainer.pas' {Form1}; {$R *.res} procedure CreateForm; begin Application.ShowMainForm := True; with TForm1.Create(Application) do ShowModal; end; procedure DllMain(Reason: DWORD); var a: DWORD; begin if (Reason = DLL_PROCESS_ATT…
-
Download Delphi All Lite Editions 2012 ________________________________________ Borland Delphi 7 Lite Tiny - Edition v7.3.4.3 Size: 16 Mb Downlod ________________________________________ Borland Delphi 7 Lite Mini - Edition v7.3.4.3 Size: 23 Mb Downlod ________________________________________ Borland Delphi 7 Lite Full - Edition v7.3.4.3 Size: 76 Mb Downlod ________________________________________ Embarcadero Delphi XE v15 Lite - Edition v4.0 Size: 170 Mb Downlod ________________________________________ Embarcadero Delphi XE v16 Lite - Edition v5.0 Size: 362 Mb Downlod ________________________________________
-
I created a simple oval png and used it as the frame window of my application. I noticed that some patch used pnglib and UpdateLayeredWindow to realize regioned and transparent window. Any buddy could fix my code? Thanks a lot. Here's the main code: //UpdateLayeredWindow using Visual Studio 2003 above //or VC6 with upgraded SDK, tools->options->directories //set include path of newer SDK case WM_CREATE: PNG_Init(&g_pnginfo); PNG_LoadResource(&g_pnginfo, g_hInst, MAKEINTRESOURCE(IDR_PNG_FRAME)); PNG_Decode(&g_pnginfo); g_bmpHandle = PNG_CreateBitmap(&g_pnginfo, hwnd, PNG_OUTF_AUTO, false); PremultipliedAlpha(g_bmpHandle); return 0; case WM_PAINT: hdc…
-
Hi there I have down loaded this example here but I do not remember were ....does any body know how to do the buttons in masm like the person did here ... I have looked at all of Ufo-Pu55y's sources but I can not get any to work with this button...not sure of the logic behind the spacing in the images there Win uPPP.zip
-
I just noticed this accidentally and they already released it in january 2012(?), but I guess it's still worth getting mentioned? Download: http://www.masm32.com/masmdl.htm
-
I'd like to retrieve all the windows having same class name "tooltips_class32" I used the win32 API function: hwndFound = FindWindowEx(NULL, NULL, "tooltips_class32", NULL); However, I could get only one window. Question is how to get all windows having the same class name. Another question is how to get the tooltip text? Using GetWindowText API, right? Thank you!
-
I wrote a small program to explain the type sizes to myself. But while reading a few reverse engineering books I have became confused. Inside one of the chapters I ran into this statement: << The word is understood not only as 2 bytes, but also as the size of operands by default; in 32 bit mode, the word equals 4 bytes. >> like repe movsd (repeat equal) (movsd is a dword) which is 2 words. which apparently according to the text would be 8 bytes. but in my program a dword is 4 bytes... ( Please someone straighten me out... lol ) Can someone explain this to me? #include <iostream> #include <windows.h> using namespace std; int main() { cout &l…