|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Files used are here
ftp://sourceware.org/pub/pthreads-win32/dll-latest
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> I avoid Windblows of *any* flavor. But I actually feel more comfortable with
> Win10 than with Win7; Win7 was eating into my mental health, and was what
> finally pushed me into GNU/Linux.
mIRC on Linux
Sorry but mIRC only runs on the Windows operating system, so it will not work on
Linux. There are no plans to make a version of mIRC that will work on Linux at
this time. Linux has quite a few native IRC clients, although none of them are
quite like mIRC.
Cousin Ricky, HELLO .. hehe
win7 is the promised land.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
"Melody" <nomail@nomail> wrote:
> "Cousin Ricky" <rickysttATyahooDOTcom> wrote:
>
> > I avoid Windblows of *any* flavor. ...
>
> win7 is the promised land.
there once was a man named Bill,
whose programs made users ill.
he though, completely undeterred,
became rich as a king, the uber nerd,
and kept bending the world to his will.
;-)
regards, jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jr" <cre### [at] gmailcom> wrote:
> there once was a man named Bill,
> whose programs made users ill.
> he though, completely undeterred,
> became rich as a king, the uber nerd,
> and kept bending the world to his will.
https://www.youtube.com/watch?v=pQocN_c2uLI
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Melody" <nomail@nomail> wrote:
> libpthreadGC2.a pthreadGC2.dll
>
> #include <pthread.h>
> #include <unistd.h>
C:\mirc614\irc\timer.h|32|warning: control reaches end of non-void function
[-Wreturn-type]
whats the fix for that warning? for this "non-void function"
??? compiler wont allow returning anything ??
void * twait(int secs)
{
/// do something here
}
newthread launcher from a dll - follow up.
int timer1(HWND mWnd, int secs, void * func)
{
pthread_t thread; int err;
err = pthread_create(&thread, NULL, func, (void *)secs);
if (err) return 1;
return 0;
}
timer1(mWnd,0,twait);
working now,
but is 4th parameter done the right way? what about &secs ??
you guys ought to know something.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
extreme use of the term pseudo random,and phi
Post a reply to this message
Attachments:
Download 'colochaos.jpg' (185 KB)
Preview of image 'colochaos.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
"Melody" <nomail@nomail> wrote:
> "Melody" <nomail@nomail> wrote:
> > libpthreadGC2.a pthreadGC2.dll
> >
> > #include <pthread.h>
> > #include <unistd.h>
>
> C:\mirc614\irc\timer.h|32|warning: control reaches end of non-void function
> [-Wreturn-type]
>
> whats the fix for that warning? for this "non-void function"
> ??? compiler wont allow returning anything ??
>
> void * twait(int secs)
> {
> /// do something here
> }
>
> newthread launcher from a dll - follow up.
>
> int timer1(HWND mWnd, int secs, void * func)
> {
> pthread_t thread; int err;
> err = pthread_create(&thread, NULL, func, (void *)secs);
> if (err) return 1;
> return 0;
> }
>
> timer1(mWnd,0,twait);
> working now,
> but is 4th parameter done the right way? what about &secs ??
am fairly sure that should be 'void twait(int);', and I'd keep "do something
here" to just setting some (global) flag.
<https://www.gnu.org/software/libc/manual/html_node/Basic-Signal-Handling.html>
(specific to that library but the same principles apply)
and re 4th argument, you're converting the number of seconds to a pointer
(value), did you mean 'pthread_create(&thread, NULL, func, &secs)'? no need
(usually) to explicitly cast to '(void *)'.
regards, jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The way I'm reading it, based on my work with Arduino, is that your [if] flow
control directive is malformed and so the compiler if waiting to wrap that up
before hitting the end of the function.
void * twait(int secs)
{
/// do something here
}
newthread launcher from a dll - follow up.
int timer1(HWND mWnd, int secs, void * func)
{
pthread_t thread; int err;
err = pthread_create(&thread, NULL, func, (void *)secs);
if (err) return 1;
return 0;
}
change the above to:
if (err) {return 1;
[else] return 0;
}
and see what happens.
Of course, I could be totally wrong.
I also think that if at the top of your code you do
int secs = 0;
then you only need to use secs not int secs in the rest of your code.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
turns out the only bug I could not really see a way to fix,
but I could patch it ...
thread_create(&thread, NULL, func, (void *)secs);
return 1 to mIRC - dll still loaded....
calls twait(msecs) {
echos(GlobWnd,msecs);
// but mirc could only hear previous message
UNLESS
Sleep(50); /// fixes SendMessage issue
echos(GlobWnd,msecs)
then everything OK. patched.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Melody" <nomail@nomail> wrote:
> "Melody" <nomail@nomail> wrote:
> > libpthreadGC2.a pthreadGC2.dll
> >
> > #include <pthread.h>
> > #include <unistd.h>
>
> C:\mirc614\irc\timer.h|32|warning: control reaches end of non-void function
> [-Wreturn-type]
>
> whats the fix for that warning? for this "non-void function"
> ??? compiler wont allow returning anything ??
>
> void * twait(int secs)
> {
> /// do something here
> }
>
thought I tried it ... Well, *today this works. compiler stopped whining.
void * twait(int secs)
{
/// do something here
return (void *)0;
}
Triangle Inequality Average (TIA)
Mercator and figuring log(polar)(slowly) - examples are invisible and
explanations seemingly by those who can't. While those who can, just do it. pQ -
National Defense secret? Wiki was disappointing on the subject.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |