Forum: Assembly 17 Days Ago |
| Replies: 2 Views: 386 You don't need line 18 or line 25 as getenv only takes one argument, that being a string pointer.
I generally like using kernel32 library functions and in this case may work for you
... |
Forum: Assembly Dec 24th, 2007 |
| Replies: 6 Views: 1,598 Maybe consider writing a small boot loader and use BIOS calls instead. Most of the functionality you need is provided by any of the PC BIOS's. That way you are completely independent of any... |
Forum: C++ Dec 4th, 2007 |
| Replies: 11 Views: 3,170 You can also let 'c','p' & 't' fall through to 'g' |
Forum: Assembly Nov 19th, 2007 |
| Replies: 2 Views: 1,445 tryinvoke RegOpenKeyEx HKEY_LOCAL_MACHINE, ADDR szRegSubKey, NULL, KEY_ALL_ACCESS, ADDR hKey) |
Forum: Assembly Oct 10th, 2007 |
| Replies: 3 Views: 4,001 I see what you mean in respect to the first example and the only conclusion I can come too is although new processors are backward compatible, but there are problems when attempting to use the high... |
Forum: C++ Sep 17th, 2007 |
| Replies: 4 Views: 1,053 int TxtSize = GetWindowTextLenth (hwndEditBox) + 1;
char *Entry = new char [TxtSize];
GetWindowText (hwndEditBox, Entry, TxtSize);
MessageBox (NULL, Entry, "", MB_OK | MB_ICONINFORMATION)
delete... |
Forum: C++ Sep 16th, 2007 |
| Replies: 2 Views: 651 When creating an "EDIT" window there are several flags associated all begining with ES_. The one you want to use is ES_AUTOHSCROLL in dwStyle. |
Forum: C++ Sep 15th, 2007 |
| Replies: 2 Views: 904 Assuming your using CreateWindowEx, change the value of y (vertical position of window) before the next window is created. |
Forum: C Sep 1st, 2007 |
| Replies: 7 Views: 4,526 Similar to goto statements, I've found multiple return paths are as equally problematic. If line 25 is executed then hFile is still open |
Forum: C Sep 1st, 2007 |
| Replies: 7 Views: 4,526 The only thing I can think of is that another process or instance of this application already has the file open, and because you are not sharing the file this would not allow the handle to be... |
Forum: C Aug 31st, 2007 |
| Replies: 8 Views: 1,197 Set a soft break at CreateRawDataBUFR then a watchpoint at rdi, or set the same softbreak and a watchpoint to the location where rdi is stored and another at the contents that rdi points too. Then... |
Forum: C++ Aug 20th, 2007 |
| Replies: 11 Views: 4,863 If you don't return a value to the operating system, then whatever happens to be in EAX at the time will probably be returned and this may cause undesirable results. That is why void main () is a... |
Forum: Assembly Aug 10th, 2007 |
| Replies: 10 Views: 5,080 #1: When you move 85 55H into Fenster your result will be two ascii digits. What you've done is added 48 to 85 and then 48 to your terminator $. This might help you out
Fenster db 85, 0,... |
Forum: Assembly Jul 22nd, 2007 |
| Replies: 10 Views: 5,080 I'll be away for a bit so I'll give you the snippet regardless. This is written for an XP based machine, but I'm sure you'll be able to improvise.
push edi
mov al,30H ; Ascii equivalent to "0"... |
Forum: Assembly Jul 22nd, 2007 |
| Replies: 10 Views: 5,080 If you really get stuck I can post a short snippet on the example Ancient Dragon gave you. Just to clarify you are using NASM on an intel based machine that uses Linux. The reason I ask is that I'm... |
Forum: Assembly Jul 22nd, 2007 |
| Replies: 10 Views: 5,080 If your application is pure assembly then the way AncientDragon explained it is the only way unless you use BCD or want to display result in decimal. A lot of applications I do are for windows... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,256 Yes you will eventually run out of memory by continuously allocating with malloc and never freeing.
In the second case, theroetically you shouldn't run out of memory by freeing each time, but... |
Forum: C Mar 8th, 2005 |
| Replies: 18 Views: 6,295 As defined in stdlib.h and malloc.hfree (q);will do the trick. Assure only pointers that were created with malloc, calloc or realloc are passed to free (), otherwise other calls to get memory may... |