Programming and Coding
Programming and coding tips, help and solutions...
1,890 topics in this forum
-
Code Not Executing
by SameerRaj- 1 reply
- 8k views
public frmProcssTicket(string string_2, Color color_1, bool bool_1, int int_2, int int_3) { Class2.XRoAsQdzvBk9W(); this.string_0 = string_2; this.color_0 = color_1; this.int_0 = int_2; base.Tag = int_2; this.bool_0 = bool_1; this.int_1 = int_3; this.AutoSize = true; base.AutoSizeMode = AutoSizeMode.GrowAndShrink; MessageBox.Show("sda"); // for (int i = 0; i < 3; i++) // { // this.list_0.Add(null); //} MessageBox.Show("duc"); this code running fine b…
-
disable c# MenuItem
by despy- 2 replies
- 14.1k views
an C# exe with no src code,now i want to disable some menuItems with APIs. like this: HMENU hMenu = (HMENU) PostMessage(hWnd, MN_GETHMENU, 0, 0); EnableMenuItem(hMenu,uIdEnableMenultem,MF_DISABLED); ... but it's not work for C# exe.What should I do?
-
Base..ctor
by SameerRaj- 2 replies
- 15.9k views
public Class28() { Class2.XRoAsQdzvBk9W(); this.string_0 = ""; this.string_1 = "0"; this.string_2 = "0"; this.string_3 = ""; this.string_4 = ""; line 8 - base..ctor(); error -identifier expexted } how to remove the error at line 8 and basicaly i have decompile a file and trying to rebuild a proggram but not able to clearly know how to remove this err actually why here method base..ctor is being called?
-
Import table not resolved!
by CodeExplorer- 1 follower
- 19 replies
- 13.3k views
Import table not resolved! Hi guys, I try to load a exe , x64, unprotected (virgin) file using invoke LoadLibrary,&ModuleLoc anyway import table is not resolved, import table thunks (qwords) are not replaced, have still the orginal unresolved value! Any ideea how to resolve it? Hope I won't have to resolve manually (by coding a import resolver)!!
-
VirtualProtect issue
by GautamGreat- 3 replies
- 7.2k views
Hi, I am coding a dll for patching a vmp target. Everything goes well but when I change the permission of codesection using VirtualProtect api the function failed and program crashed when changing dwords in Codesection. When I change the permission manually through ollydbg then it works. Anyone can explain it why?
-
Kernel Mode VS User Mode
by Aldhard Oswine- 2 replies
- 10.5k views
I think I've not seen a kernel-mode code. What is the difference between a user-mode program and kernel-mode program at code level? int main(){ puts("HW"); } It's simple user-mode code/program, is there something similar for kernel-mode code/program? What is a difference between writing user-mode and kernel-mode program? Are there same APIs, etc.
-
Looking for LZMA lib
by LCF-AT- 14 replies
- 9.6k views
Hi guys, does anyone have any LZMA lib to decompress such code I can use with MASM?So zlib dosent work with LZMA. PS: Or if there is no lib then maybe the dll and function name/s I have to use.On my HDD I found just liblzma.dll & liblzma-5.dll with many export functions like lzma_stream_decoder but I am not sure which functions do decompress.So on the LZMA SDK site I didnt found that function etc and its also again in ccp etc you know.Maybe you can help again a little. Thanks
-
- 3 replies
- 8k views
Hi guys, so I have a new small problem I need to fix.The problem is that I use two libs in my project and in both are some same function names used and now I get the error message... error LNK2005: _inflateReset2 already defined in 123.lib(123.obj) ...etc ...both libs are from C dlls. So the first question is how I can add both libs (in MASM) who using some same function names?If possible.So I dont wanna change the function names of one dll and create again a lib you know.So what can I do in that case? Thanks
-
How to read a text line by line / CRLF?
by LCF-AT- 6 replies
- 9k views
Hi again, does anyone know any function/s to split a text file (any text of notepad etc) into single lines by CRLF? Example: I have simple textfile which has 10 lines (each line with return at the end / CRLF) and now I read the file into buffer via ReadFile API and now I got the whole text in buffer and now I need to check manually for CRLF at the end or not if not present etc.So is there any simple function/s etc I could use to get a entire line by line back?Maybe there is anything I could use and dont know yet. Thank you
-
How to use FILE_FLAG_DELETE_ON_CLOSE?
by LCF-AT- 5 replies
- 10.5k views
Hi guys, I have a question again.I wanna create a new file via CreateFile + WriteFile which I then wanna execute via CreateProcess API.The problem I have that I dont get it work and always get a Sharing Violation Error on CreateProcess API.I would like to use the flag FILE_FLAG_DELETE_ON_CLOSE so that file gets deleted after handle is closed so that I dont need to handle it by myself anymore.But as I said,CreateProcess API does fail if I dont close the handle from CreateFile before but if I close the handle then the file gets deleted of course.So does anyone know whether there is way to handle it right with using FILE_FLAG_DELETE_ON_CLOSE + CreateProcess after?Creat…
-
- 4 replies
- 7.8k views
I hooked a method but I have problem compatibility with Multi-Core CPU, When I set VMware Number of Processors set to 1 and Number of Cores set to 1 the hooked method work properly but when set to more processors and cores hooked method does not work properly, What is the solution?
-
Purple Ocean Demo
by udg- 0 replies
- 12k views
another quick GLSL attempt with overlayed png Logo and sound straight from my forthcoming Shader Tool. programmed in PureBasic 5.30 i hope it runs fine on any sys. tested on win 7/8/10 @x86 and x64 GeForce GTX 950 OGL compatible gfx card needed code: inc a.k.a. udg gfx: inc a.k.a. udg music: v2m tune by ? have fun Purple Ocean.rar
-
How to handle dynamic tabs & controls?
by LCF-AT- 1 follower
- 11 replies
- 9.7k views
Hi guys, I have again a little question and need some input from others.This time I would like ask how you do handle dynamic controls. Example: Just imagine you do create a tab control and each tab does show new controls like a listview / box and more and you can also delete and move tabs to other positions etc.The question I have is how to store all handles of all controls what does belong to one and same tab?Lets say you create a tab control with 5 tabs and 5 Listview controls then you can store all LV handles in a free section from first tab till last tab in a row.Now if you do move a tab to other position like in browser then you can also move the handles in…
-
Code 39 driver error
by HostageOfCode- 1 reply
- 4.8k views
Hallo, Modified driver sources little bit and compiled without any errors but when loaded the driver got this error - 39 "Object name not found". The platform is windows 10 64bit. The driver worked ok before the modification. Not receiving any debug information also. Please help how to debug this error and what may caused it?
-
- 3 replies
- 7.3k views
Ps : downloaded from Unpack.Cn AlphaControls v8.33 Full Source.rar AlphaControls v8.35 Full Source.rar BusinessSkinForm v10.20 Full Source.rar DynamicSkinForm v12.90 Full Source.rar Ehlib 6.1.129 FullSource.part1.rar Ehlib 6.1.129 FullSource.part2.rar
-
How to calc with div & mul? 1 2
by LCF-AT- 38 replies
- 20.9k views
Hi guys, sorry to create a new topic but I got a little stupid problem with some calculation and I don't get it work. Problem: I have created a slidebar and did set the maximum range to 100 (dec) = used as 0-100 %.The problem now are the calculations.So I remember I have done this in the past with a progressbar & filesize (downloader) and there is was working but now I don't get it work anymore. <0100739D> MOV EDI,0x60 ; full lenght NOP @L00000001: MOV EAX,EDI MOV EDX,0x0 MOV ECX,0x64 ; 100 dec DIV ECX CMP EDX,0x0 JE SHORT @L00000002 DEC EDI JMP SHORT @L00000001 @L00000002: MOV EDI,EAX MOV ESI,0x30 ; is lenght NOP @L00000003: MOV …
-
VLC playing lags using Named Pipe
by LCF-AT- 18 replies
- 9.6k views
Hi guys, so I got following problem.So you know the VLC player which you can also use to enter direct URL addresses of video files to play them.If I use this function then all is working well and the video will played normaly and liquid as it should.Now I wrote a WinSock code to download the bytes and write them into a name pipe handle created for VLC process and started the player via ShellExecuteEx.The VLC player starts and does play the video reading the bytes from pipe.All is working fine so far but the video dosent play liquid and it lags / jerky etc so its not good and also not playing same if I enter the URL in VLC.So I dont find the problem reason in this cas…
-
Anbox - Android in a Box
by whoknows- 1 reply
- 8k views
There is no emulation layer. Everything runs directly on the computer hardware. http://anbox.io/
-
[C++] appendoverlay
by mrexodia- 3 replies
- 14k views
#include <stdio.h> #include <vector> #include <string> #include <windows.h> bool readFileData(const std::string & fileName, std::vector<unsigned char> & data) { data.clear(); HANDLE hFile = CreateFileA(fileName.c_str(), GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0); bool result=false; if(hFile != INVALID_HANDLE_VALUE) { unsigned int fileSize = GetFileSize(hFile, 0); unsigned char* dataPtr = new unsigned char[fileSize]; DWORD read=0; if(ReadFile(hFile, dataPtr, fileSize, &read, 0)) result = true; data.assign(dataPtr, dataPtr+fileSize); delete[…
-
Listview questions 1 2
by LCF-AT- 31 replies
- 17k views
Hi again, I made a listview with seven columns and used LVS_EX_GRIDLINES.I also did subclass the listview.If I now add much entrys then I get a VScrollbar to see which I can move.If I now press on the bar free parts (not slider itself) then the slider jumps up or down etc and the problem now I get is that the GRIDLINES are doube to see in each line = the entrys itself are crossed out and its looks very bad and in this case I have to do any refresh.In my subclass I added now WM_VSCROLL message and added.. .if uMsg == WM_VSCROLL invoke InvalidateRect,hWnd,NULL ,FALSE invoke UpdateWindow,hWnd ...and the listview gets updated and the representation looks good aga…
-
How to get variables and their values with dnlib
by Mahmoudnia- 3 replies
- 6k views
Hello I have some issue with dnlib when I want to get variables and their values in C# I can get variable count for example in Form1_Load and other methods but variable's name have null values. https://j00i.imgup.net/17563.png https://m07i.imgup.net/20e1a.png What can I do ?
-
Require administrator in MASM ???
by CodeExplorer- 1 reply
- 5.9k views
Require administrator in MASM ??? How to do it? Tried with this manifest.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyidentity version="1.0.0.0" processorArchitecture="X86" name="Name of your application" type="win32"></assemblyidentity> <description>Description of your application</description> <!-- Identify the application security requirements. --> <trustinfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedprivileges> <requestedexec…
-
trace api
by Hacktreides- 2 replies
- 4.4k views
Hello, i search for a source code example of a program with can trace API call, a wrapper or something like that. For example, i want to see MessageBox call from a other exe, i want this program to put a hook on the second executable and print MessageBox api call and is parameters. If someone have a example of how to do that, thank you in advance.
-
theForger's Win32
by Aldhard Oswine- 4 replies
- 6.2k views
Does anyone have the source.zip file from theForger's website? Dropbox link from the site is dead :/ http://www.winprog.org/tutorial/
-
How to access the internet? 1 2 3 4
by LCF-AT- 99 replies
- 34.2k views
Hi guys, can anyone of you tell me how to access any internet site via APIs xy?So I don't know how to explain it correctly but what I am looking for is very simple.So what I wanna do is to access any site link xy and reading the source code into memory.All this I wanna do with a extern tool / code without to use any browser etc.The only thing what I need to know is... 1.) What APIs can I use to call internetsites / specific links 2.) How to read source code of the link xy into memory So I imagine like this.... push ascii string // http://siteABC.com/12345.html call API xy or with login datas push ascii string // http://name:pass@siteABC.com/12345.…