Skip to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Programming and Coding

Programming and coding tips, help and solutions...

  1. Blue
    Started by Blue,

    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

      • Like
    • 22 replies
    • 40.3k views
  2. alaphate
    Started by alaphate,

    Which static lib could play mp3 from resource WITHOUT extracting the mp3 file to hard disk? C++ is prefered. Thank you buddies.

    • 4 replies
    • 5k views
  3. DeadAndGone
    Started by DeadAndGone,

    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

    • 12 replies
    • 7.3k views
  4. SiSC0
    Started by SiSC0,

    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.

    • 1 reply
    • 6.4k views
  5. ghandi
    Started by ghandi,

    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…

    • 5 replies
    • 10.4k views
  6. hmi222
    Started by hmi222,

    Hi. A sample for tiny Speech under 1k. A static lib will follow! Speech1K.rar

      • Like
    • 14 replies
    • 11.7k views
  7. alaphate
    Started by alaphate,

    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

    • 3 replies
    • 4.8k views
  8. HSN.C3r
    Started by HSN.C3r,

    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

      • Like
    • 4 replies
    • 6.3k views
  9. gpuload
    Started by gpuload,

    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.

      • Like
    • 4 replies
    • 10.3k views
  10. alaphate
    Started by alaphate,

    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.

    • 0 replies
    • 4.9k views
  11. s0me0ne
    Started by s0me0ne,

    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…

    • 2 replies
    • 7k views
  12. Ali.Dbg
    Started by Ali.Dbg,

    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 ________________________________________

    • 3 replies
    • 28.9k views
  13. alaphate
    Started by alaphate,

    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…

    • 2 replies
    • 4.9k views
  14. wunder
    Started by wunder,

    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

      • Like
    • 22 replies
    • 11.8k views
  15. Ufo-Pu55y
    Started by Ufo-Pu55y,

    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

    • 1 reply
    • 6.2k views
  16. alaphate
    Started by alaphate,

    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!

    • 5 replies
    • 8.8k views
  17. Bit_Hacker
    Started by Bit_Hacker,

    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…

      • Like
    • 2 replies
    • 10.8k views
  18. 27ashwinkumar
    Started by 27ashwinkumar,

    Whenever i compile a project in WinASM studio.i get an error."failed to create....blahblah" on the bottom of my screen.when i execute it says "executing failed" Someone please help.

    • 1 reply
    • 22.4k views
  19. N1tro
    Started by N1tro,

    Hi guys. Can someone explain why AES encryption with work large files lose or adding some bytes. Original size must be : 17,9 MB (18 819 479 bytes) I get : 17,9 MB (18 819 488 bytes) here code public static void DataEncrypt(string fileIn, string fileOut) { FileStream FILE_In = new FileStream(fileIn, FileMode.Open, FileAccess.Read); FileStream FILE_Out = new FileStream(fileOut, FileMode.OpenOrCreate, FileAccess.Write);byte[] TEST_KEY = new byte[] {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10}; byte[] TEST_IV = new byte[] {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10};R…

      • Like
    • 5 replies
    • 15k views
  20. pattisahusiwa
    Started by pattisahusiwa,

    Hi All. I need some Win32 Api functions for enum all open port (TCP, UDP, etc) that can be implemented on XP, 7, or below. is there any function that i can be used for?

      • Like
    • 5 replies
    • 7.5k views
  21. TBBW
    Started by TBBW,

    Hi all, the program I'm working on allocates a block of memory of 0x66000 bytes. (Using Olly it is displayed on the Memory Map Tab) Every time I start this program it is 0x66000 bytes. Only the Base adres differs. I want to find this block of memory (if Olly can do it, It is possible) Using C# how should I do this? regards, ger

    • 5 replies
    • 6.9k views
  22. Ufo-Pu55y
    Started by Ufo-Pu55y,

    Something happened that usually never happens: Demo hardcore coders sharing their code. Kudos to that move />https://github.com/farbrausch/fr_public

    • 5 replies
    • 5.5k views
  23. TBBW
    Started by TBBW,

    Hi all, maybe the dummest quest of the day.... but msvs 2010 does not compile the '/', '*' and '%' operators.... (well it does compile, but the answers are not there.) I had the same issue using excell changed '/' to '-' problem solved. regards, ger

  24. DeadAndGone
    Started by DeadAndGone,

    HiI got a nice keygentemplate and need transparant textboxes. I already have that but the text from the textboxes is strange... Look at the pic. Maybe someone does know how to get normal text there?

      • Like
    • 2 replies
    • 5k views
  25. Accede
    Started by Accede,

    I generate some rsa keys with lockbox(c++ builder xe2) now if i whant us this keys i get an error invalid integer value: Her the keys i whant us: Puplic exponent E=EB0C Modulus N=75E7D3A2D3BC5366050B13B0D149479E8997EA705ABFE096528E9967DA0D763DCDC8B814F12BC005F08838350889832C67AFBEBCE3ECA772B8EA04F81C215A45FDC80CC29294F7E1474B656B8741AB6B8CDDB52274EF230E283F7DC4C570D855 Private exponent D=C3C37306BB25C9FFE62EE26B9393FF1986612B9A5256C5EF1A7BFEED58C3CDAB482F12DBAF751AB72C60737C3B0E0B421210A80DCF431B88ACD946A32AC7F90980E73BC6A7607E12F6133AF2D48048393C3E0AD89E0A150A3C86AB618E929B46 The keys looks like littel endian to me but i am not sure. This is the code i us to gen the rsa …

      • Like
    • 11 replies
    • 9.9k views

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.