Ha!
Yeah! Go RTFM! All of them. Then search and search. Then, and only then, may
you ask a simple question.
:-)
I wonder what words Predlude thinks should be searched.
and Prelude's...
Type: Posts; User: cdave
Ha!
Yeah! Go RTFM! All of them. Then search and search. Then, and only then, may
you ask a simple question.
:-)
I wonder what words Predlude thinks should be searched.
and Prelude's...
I found this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/ioctlsocket_2.asp
//-------------------------
// Set the socket I/O mode: In this case FIONBIO...
Hello,
How does one create a blocked socket?
How does one create an unblocked socket?
Where is the Win API documentation for this?
Thank you.
Here is the standard generic code for creating a...
Thanks bithub.
Thanks for the help.
I changed ILPDWORD to LPDWORD and still got an error.
C:\gcc\Progs\examples>gcc e1.c -lws2_32 -o e1.exe
e1.c: In function `main':
e1.c:20: warning: assignment makes...
Hello,
I cannot get a simple WSAEnumProtocols to compile.
What's wrong?
Thank you.
The program e1.c:
//gcc e1.c -lws2_32 -o e1.exe
#include <windows.h>
Dave, thank you for trying, I appreciate it.
Dave,
I have no idea what you are talking about. You wrote a C program, which I understand.
I want to execute a grep from a dos prompt.
I am grepping the output of a C program (ctags). I...
Do you mean to hit the tab key instead of typing \t?
(When I hit the tab key, doskey brings up file names)
In my WindowsXP/dos window, how do I grep for a tab?
I try
> grep "\t" file.txt
which gives me every line with a "t" in it, not tab.
Thank you
Salem, thank you. That is sort of what I am looking for. It seems this must be an age old problem, and I'm hoping there is a good program laying around somewhere. I am trying to concentrate on C,...
Hello,
I am trying to read source code for an editor (Vim, available at sourceforge.net) but I find the plethora of precompiler conditionals very confusing (see code below). Virtually all...
...a hint?...
#include <stdio.h>
#include <ctype.h>
int main(void) {
int coords[7][24];
char buffer[] = "0 3 3 3 0 0 0 7 7 7 0 0 0 11 11 11 0 0 0 15 15 15 15 0";
int sortCompare(const void *str1, const void *str2){
const char *p1 = str1;
const char *p2 = str2;
if ( *p1 == '.' )
P1++;
if ( *p2 == '.' )
p2++;
return strcmp ( p1, p2 );
}
For a child window, I answered my own question:
(left/right mouse clicks change the color of main or child windows)
// basic window red, child window white; change background color on...
anonytmouse, thank you.
I replaced WS_OVERLAPPED with WS_CAPTION and the program worked fine.
Thanks very much for your help.
Good question, that I am also curious about.
I can change the color of an edit box, but I don't know how to change the color of a regular child window. (A few weeks ago I posted code to change...
I'm trying to make a window that is exactly 10 lines by 40 characters. (The below program is simplified)
The program works fine if I use WS_POPUP|WS_CAPTION|WS_SYSMENU
But if I use...
That worked! Thanks!
Hello, I'm trying to use wininet with gcc. This simple example program compiles but does not link ("undefined reference", see below).
Thanks for all help.
// compile/link:
// gcc -c test.c...
If you are serious, I strongly recommend you buying a book with simple examples.
Having the book saves you a lot of time.
Here is the network FAQ page
...
MB_TOPMOST
#include <windows.h>
int main() {
MessageBox(HWND_DESKTOP,"Text","Title",MB_OK|MB_TOPMOST);
}
I ran this code from this website, and it seems ok. It uses the system class "FullScreenWnd".
"Shows how to create a top most full screen window."
http://www.ragestorm.net/snippet?id=91
I ran...
Use this extended window style: WS_EX_TOPMOST
This looks like a good (simple) tutorial, although I have not run the code.
Tutorial - Keyboard Hook
http://www.ragestorm.net/tutorial?id=10