Recent content by maple23
-
M
Finding Shared Directories in Assembly
Then why does the enumerate directory code work?- maple23
- Post #10
- Forum: Programming and Computer Science
-
M
Finding Shared Directories in Assembly
The idea in that code was to save the hFind handle, then jump to the findFirstFile label. I disagree. The when the attached file is compiled, it works perfectly. It will display every directory on the C:\ drive without using multiple instances of WIN32_FIND_DATA and my hFind handle. Are you...- maple23
- Post #7
- Forum: Programming and Computer Science
-
M
Finding Shared Directories in Assembly
"SHARE" is in the directory's name (WIN32_FIND_DATA.cFileName). I'm not sure I understand what you mean by this. However, the program would display a message box before trying to change directories, which it is not doing. With the following code: [ ... ] cmp byte ptr...- maple23
- Post #5
- Forum: Programming and Computer Science
-
M
Finding Shared Directories in Assembly
Yes, but that is not my problem.[ ... ] cmp eax, -1 ; INVALID_HANDLE_VALUE [ ... ]Just has the code loop infinitely. The code sperately executes fine (the enumerate folders function works by itself; the convert-to-uppercase function works by itself; and the search for "SHARE" function...- maple23
- Post #3
- Forum: Programming and Computer Science
-
M
Finding Shared Directories in Assembly
Finding "Shared" Directories in Assembly For my next project, I am making a program which searches for all of the shared directories on a computer. My idea is if the directory contains the string "share", then it must be shared. For this, I wrote a function to convert the directory name to...- maple23
- Thread
- Assembly
- Replies: 11
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
Thank you! :smile: The code works perfectly! .386 .model flat extrn MessageBoxA:proc .DATA name1 db "Micheal", 0 name2 db "Stefan", 0 name3 db "Judy", 0 name4 db "William", 0 name5 db "Lora", 0 names dd offset ds:name1 dd offset ds:name2 dd offset ds:name3 dd offset...- maple23
- Post #15
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
I still get the same error. The program gives a message box with the first name and then closes unexpectedly.- maple23
- Post #13
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
Thanks you for your help.- maple23
- Post #10
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
I still cannot get the code to work. Here is my TASM conversion:.386 .model flat extrn MessageBoxA:proc NAMEPS STRUCT dd 1 dup (?) dd 1 dup (?) dd 1 dup (?) dd 1 dup (?) dd 1 dup (?) NAMEPS ENDS .DATA name1 db "Micheal", 0 name2 db "Stefan", 0 name3 db "Judy", 0...- maple23
- Post #9
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
How do I have two string arrays being searched through at the same time? C example: #include <windows.h> int main(){ char *name_list[5] = {"Micheal", "Stefan", "Judy", "William", "Lora"}; char *color_list[4] = {"red?", "orange?", "blue?", "green?"}; char szFullMSG[100] = ""...- maple23
- Post #7
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
I am still interested in how to use your STRUCT function.- maple23
- Post #6
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
I was able to fix my code with 1 more line: pop ecx ; ecx = counter lblNameLoop: push ecx push 0 push esiBy adding PUSH ECX, it saves the value of ECX for the next time around.- maple23
- Post #5
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
After making the "name_list" STRUCT, how do I get the names from it? And why am I adding 20 to the ESP register?- maple23
- Post #4
- Forum: Programming and Computer Science
-
M
Problem with string arrays in assembly
I have been working with assembly (TASM32) for a few months now and have ran into a problem which I cannot fix. Here's a working example written in C++ which needs to be converted to assembly. #include <windows.h> int main(){ char *name_list[5] = {"Micheal", "Stefan", "Judy", "William"...- maple23
- Thread
- Arrays Assembly String
- Replies: 14
- Forum: Programming and Computer Science