Search Results

Showing results 1 to 40 of 46
Search took 0.01 seconds.
Search: Posts Made By: Mahen ; Forum: C and child forums
Forum: C Oct 7th, 2005
Replies: 1
Views: 1,509
Posted By Mahen
am currently building a program that runs as a background process, but due to the loops inside it, Windows fails to Close it when it goes into either shutdown or LOGOFF mode. It is a GUI program that...
Forum: C Oct 1st, 2005
Replies: 1
Views: 1,318
Posted By Mahen
1. typedef int (*MYPROC)(LPTSTR);
2. hinstLib = LoadLibrary(TEXT("myputs"));
3. ProcAdd = (MYPROC) GetProcAddress(hinstLib, TEXT("myPuts"));
Forum: C Sep 29th, 2005
Replies: 2
Views: 1,167
Posted By Mahen
Yes, but these plugins contains code that could not only be used in Winamp, but linked with any program. Suppose that you want to built a search program, rather than going to create a new algorithm...
Forum: C Sep 29th, 2005
Replies: 2
Views: 1,167
Posted By Mahen
Hey, I don't know if am wrong but I think a new idea has just striked me. We can all see that almost every program that we can imagine of has been created, thus making it difficult for us to think of...
Forum: C Sep 23rd, 2005
Replies: 4
Views: 2,705
Posted By Mahen
Here is my code:

#include <windows.h>
#include <stdio.h>
/*
//THIS CAN BE COMPILED IN C
int main()
{
HANDLE hFileR; //hFile is for Create & write, hFileR for Reading
char buffer[200];
Forum: C Sep 22nd, 2005
Replies: 2
Views: 1,102
Posted By Mahen
int main()
{
char buffer[200];
buffer[0] = 199; //Here we can control how many character we can enter, thus a maximum of 199 characters
char *p;

p = cgets(buffer); //We get...
Forum: C Sep 22nd, 2005
Replies: 4
Views: 2,705
Posted By Mahen
I am using the win32 CreateFile and ReadFile API to read Files on my HD but it stops reading when it encounters a null termination('/0').

Could you tell me of a way to overcome this and continue...
Forum: C Sep 16th, 2005
Replies: 2
Views: 1,241
Posted By Mahen
Give me advice on this program:
Forum: C Aug 31st, 2005
Replies: 4
Views: 1,796
Posted By Mahen
How to decrease the amount of memory that a process/executable consume?
Forum: C Aug 28th, 2005
Replies: 1
Views: 1,196
Posted By Mahen
Imagine that you made a program that accepts userinput in this format:

cmd.exe
or
netscape.exe

this is a good input and the program accepts it, but what if the user enters this:

cmd
or
Forum: C Aug 27th, 2005
Replies: 10
Views: 6,717
Posted By Mahen
I've created a software and i want to sell it, how may I proceed
Forum: C Aug 15th, 2005
Replies: 4
Views: 2,937
Posted By Mahen
But how do i search in subdirectories, what if i want to search in program files where there are many folders.
Forum: C Aug 15th, 2005
Replies: 4
Views: 2,937
Posted By Mahen
yes it helped me but i have not yet tried it on my compiler, perhaps to nite
Forum: C Aug 15th, 2005
Replies: 0
Views: 1,102
Posted By Mahen
if you rightclick on cmd.exe and click properties, you will see in the property sheet that cmd.exe is described as "Windows Command Processor".


Is there any way to read this string and display...
Forum: C Aug 15th, 2005
Replies: 4
Views: 2,937
Posted By Mahen
Tell me how to use FindNextFile() in console
Forum: C Aug 9th, 2005
Replies: 5
Views: 3,938
Posted By Mahen
Am sorry but i left many mistakes, undertand me, i typed this quickly without passing tru a compiler. I WAS RUNNING OUT OF TIME
HERE IS THE CORRECTED CODE:

Suppose i have a main.cpp file and a...
Forum: C Aug 7th, 2005
Replies: 5
Views: 3,938
Posted By Mahen
Suppose i have a main.cpp file and a test.h file:
///////////////////////////////////////////
//main.cpp

#include <iostream.h>
#include <string.h>
void test();

char foo[200];
int main()
Forum: C Jul 23rd, 2005
Replies: 2
Views: 1,912
Posted By Mahen
Forum: C Jul 22nd, 2005
Replies: 12
Views: 2,848
Posted By Mahen
I made it, but the thanks goes to you all.

#include <stdio.h>
#include <string.h>

int main()
{
int count;
int su;
char prog[200];
Forum: C Jul 22nd, 2005
Replies: 12
Views: 2,848
Posted By Mahen
Yeah you r right. But I was only testing this new algorithm with "cmd.exe" as string. The real purpose would be to enter any string, truncates all characters until only one remails and do the rest of...
Forum: C Jul 21st, 2005
Replies: 12
Views: 2,848
Posted By Mahen
YES but what if i use strncat, will it work.
what does memset do ???
Forum: C Jul 21st, 2005
Replies: 2
Views: 1,492
Posted By Mahen
Thanks very much
Forum: C Jul 21st, 2005
Replies: 2
Views: 1,492
Posted By Mahen
i have windows xp, where can i find the SDK for windows XP or 2000

where can i find a comlete documentation of all the API of windows
Forum: C Jul 21st, 2005
Replies: 12
Views: 2,848
Posted By Mahen
Hi everyone, am currently building a program with VS 6.0 but am having problems with
string coruption, especially with strncpy(),

#include <stdio.h>
#include <string.h>

int main()
{
...
Forum: C Jul 16th, 2005
Replies: 2
Views: 1,912
Posted By Mahen
hi there. Am working on a program that finds the binary executable of a particular program
when we input its filename. For example:

INPUT: cmd.exe
OUTPUT: c:\windows\system32\cmd.exe

Am using...
Forum: C Jun 24th, 2005
Replies: 4
Views: 3,105
Posted By Mahen
WOW it worked thanks :p
Forum: C Jun 24th, 2005
Replies: 4
Views: 3,105
Posted By Mahen
It won't work:

error C2440: 'initializing' : cannot convert from 'struct HINSTANCE__ *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
...
Forum: C Jun 23rd, 2005
Replies: 4
Views: 3,105
Posted By Mahen
Am writing a program to find the binary directory of any executable, so I use FindExecutable() but sometimes it does not find the executable and i want the program to know that the Executable has not...
Forum: C Sep 20th, 2004
Replies: 4
Code Snippet: Windows Log-off
Views: 4,129
Posted By Mahen
wow, just what i needed 8)
could you make one for "shutdown" :-D
Forum: C Sep 20th, 2004
Replies: 0
Code Snippet: Calc in C
Views: 6,492
Posted By Mahen
Hi everyone,
I've been working on this calculator for days, and now i am making it opensource so that everyone can bring his own contribution, please comment all your codes very well.
Forum: C Sep 17th, 2004
Replies: 2
Views: 6,196
Posted By Mahen
hi everyone,
I've seen that in C we can call functions from DLL's, but i don't know how, can you please clear my ignorance or divers me to a website where i can learn it.
...
Forum: C Sep 5th, 2004
Replies: 2
Views: 6,736
Posted By Mahen
Hi everyone, i wanted my program to create another small program, but it stopped at "\x00", why and what can i do. Thnaks

#include <stdio.h>
int main()
{
FILE *out;
out =...
Forum: C Sep 4th, 2004
Replies: 12
Views: 3,339
Posted By Mahen
thanks to you all, really make me feel happy
Forum: C Sep 3rd, 2004
Replies: 12
Views: 3,339
Posted By Mahen
thanks (they told me to lengthen my message)
Forum: C Sep 3rd, 2004
Replies: 12
Views: 3,339
Posted By Mahen
hi everyone, hope u r all feeling fine :mrgreen:

this is my program:

#include <stdio.h>
int main()
{
char pass[12];
printf("Enter Password: ");
gets(pass);
Forum: C Aug 25th, 2004
Replies: 1
Views: 4,661
Posted By Mahen
hi everyone,
I belive in daniweb and post my question so that everyone can help me.

CAN anyone provide me with a link to a web that has a tutorial about:

1. Socket programming...
Forum: C Aug 24th, 2004
Replies: 5
Views: 6,534
Posted By Mahen
This is what the LCC help file says:

Libraries Distributed with lcc-win32
These libraries are distributed in the form of ASCII description files « .exp ». These files will be transformed by the...
Forum: C Aug 23rd, 2004
Replies: 5
Views: 6,534
Posted By Mahen
Is it this that you r talking about:

#pragma comment(lib, "ws2_32") :?:

then how ????
Forum: C Aug 23rd, 2004
Replies: 5
Views: 6,534
Posted By Mahen
Hi everyone,
First of all thank you very much for all the help that you have been providing me. Unfortunately, i am with another bug. This time, i am havinh problems linking OBJ files that uses the...
Forum: C Aug 19th, 2004
Replies: 0
Views: 4,885
Posted By Mahen
Hi everyone,
First of all thank you very much for all the help that you have been providing me. Unfortunately, i am hist with another bug. This time, i am havinh problems linking OBJ...
Showing results 1 to 40 of 46

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC