Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 192 results for
multithread
- Page 1
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
…h> #include <string> using namespace std; class
MultiThread
{ private: void *b; public: void ParameterList(void *c) {…\blinktext\blinktext.h|17|error: initializing argument 1 of 'void
MultiThread
::Thread(unsigned int (__attribute__((__stdcall__)) *)(void*))' [-fpermissive]| ||=== …
multithread
Programming
Software Development
10 Years Ago
by cambalinho
i have 1 class
Multithread
, but seems that i have some errors:( #include <process.…h> #include <string> using namespace std; class
MultiThread
{ private: void * b; public: void ParameterList(void *c) { b=c…
Multithread - Timeout Problem
Programming
Web Development
14 Years Ago
by paulnamroud
… click on a button i need to call a the
Multithread
process in order to execute my querry in SQL Server…
Re: multithread
Programming
Software Development
10 Years Ago
by Banfa
Line 16, the parameter to Thread is not named. Line 18, third parameter to _beginthreadex consists of '(__stdcall*) (void *)' which is not a valid anything, perhaps it was meant to be the unnamed function parameter?
Re: multithread
Programming
Software Development
10 Years Ago
by mike_2000_17
I think what you should use is the `std::thread` class, [see docs here](http://www.cplusplus.com/reference/thread/thread/). You would get the following: #include <process.h> #include <string> #include <thread> using namespace std; void SetCaretPosition (int x, int y) { COORD coord;…
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
finally i fix several errors. now i just have 2 errors because of pointers: unsigned __stdcall BlinkLoop(void *params) { Blink *p = static_cast<Blink *>(params); char EmptyText[p->Text.length()+1]; memset(EmptyText,' ', sizeof(EmptyText)); EmptyText[ sizeof(EmptyText)-1 ] ='\0'; HDC …
Re: multithread
Programming
Software Development
10 Years Ago
by Ancient Dragon
did you include windows.h?
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
yes
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
so you need see all the code?
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
#include <process.h> #include <string> #include <memory.h> #include <windows.h> using namespace std; void SetCaretPosition (int x, int y) { COORD coord; // coordinates coord.X = x; coord.Y = y; // X and Y coordinates SetConsoleCursorPosition(GetStdHandle(…
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
i belive that i know why the error: can i add the GDI32.a by code? the: #pragma comment(lib,"gdi32.dll") is ignored: "warning: ignoring #pragma comment [-Wunknown-pragmas]" i'm using CodeBlocks
Re: multithread
Programming
Software Development
10 Years Ago
by Ancient Dragon
pragmas are not portable from one compiler to the other. Apparently Code::Blocks knows nothing about that pragma. CB has project settings for that purpose.
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
i add it on linker options, but the text wasn't showed #include <iostream> #include <string.h> #include <windows.h> //#include "blinktext.h" //#pragma comment(lib,"gdi32.dll") using namespace std; int main() { //TextBlink("hello world", 10,20,3,5);…
Re: multithread
Programming
Software Development
10 Years Ago
by mike_2000_17
This is a Visual C++ (or "MSVC", for short) extension. This line tells the compiler (if it can understand it) to link with the "gdi32.dll" library. The GCC compiler (MinGW, that Codeblocks uses) does not support this "automatic linking" feature. You must specify the library manually in your project configuration. I …
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
yes i did it. but the text isn't showed
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
#ifndef WINVER #define WINVER 0x0501 #else #if defined(_WIN32_WINNT) && (WINVER 0x0400) #error WINVER setting conflicts with _WIN32_WINNT setting #endif #endif do you know these code? i don't know use it, but maybe can resolve it ;) can you advice me?
Re: multithread
Programming
Software Development
10 Years Ago
by Ancient Dragon
Your first mistake was creating a console program -- you should have created a win32 program which uses WinMain() instead of main(). [Here ](http://www.winprog.org/tutorial/)is a good tutorial to get you started.
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
i have 1 project for a console, on VSC++ and the function works fine.
Re: multithread
Programming
Software Development
10 Years Ago
by Ancient Dragon
I just ran your program with VC++ 2012 console and it did nothing.
Re: multithread
Programming
Software Development
10 Years Ago
by Ancient Dragon
>do you know these code? Read all about it in [this MSDN article](http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx)
Re: multithread
Programming
Software Development
10 Years Ago
by cambalinho
i will do another thread, because i'm doing these wrong with forum :(
Trying to understand how to multithread: progress bar + a running process
Programming
Software Development
6 Years Ago
by random_1
… from the topic title, i am trying to work a
multithread
GUI where the progress bar indicates the running process completion…
Re: Trying to understand how to multithread: progress bar + a running process
Programming
Software Development
6 Years Ago
by random_1
…, pyqtSlot, QThreadPool, QTimer, QThread) from PyQt5 import uic qtCreatorFile = "
multithread
.ui" Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile) class CalculateHashThread(QThread…
Re: Multithread - Timeout Problem
Programming
Web Development
14 Years Ago
by Ramesh S
You mentioned that the SQL query will take 45 minutes to execute. But you have mentioned that CommandTimeout = 1000. The CommandTimeout is the time in seconds to wait for the command to execute. The default is 30 seconds. Hence you need to increase the timeout to more than (45*60 = )2700. Also increase the Session timeout to more than 45 …
Re: Multithread - Timeout Problem
Programming
Web Development
14 Years Ago
by paulnamroud
Hi Ramesh, Thank you for your solution. It was very helpful! Now it still have one problem to fix/solve: [B]How to display correctly "Time elapsed" and "% Completed" while processing the same stored procedure ?[/B] Thank you Paul <FAKE SIGNATURE>
MultiThread
Programming
Software Development
14 Years Ago
by zuve_fox
I write code using VB.net like: [code]Dim a As Thread Dim i As Integer [B] Private Sub Form1_Load[/B] For i = 1 To 5 a = New Thread(New ThreadStart(AddressOf coba)) a.Start() Next [B] End Sub[/B] [B]Sub coba()[/B] MsgBox(i) a.Sleep(500) [B]End Sub[/B] [/…
Re: MultiThread
Programming
Software Development
14 Years Ago
by Teme64
[QUOTE]why result different sometimes: display MessageBox with text 1 ,3,3,5 and 6 every executed,the result different[/QUOTE] Threads are executed asynchronously. Different results come from, which order OS yields time for the threads to be executed. [QUOTE]i want display result 1,2,3,4,5[/QUOTE] How about [CODE=VB.NET]For i = 1 To 5 …
Re: Make a multithread multiuser web service in Java?
Programming
Software Development
11 Years Ago
by ~s.o.s~
…, web services implemented on the Java platform are by default
multithread
ready. You should try to investigate the errors you get…
Re: Make a multithread multiuser web service in Java?
Programming
Software Development
11 Years Ago
by riahc3
…, web services implemented on the Java platform are by default
multithread
ready. You should try to investigate the errors you get…
Multithread+BDE+Oracle database Error
Programming
Software Development
14 Years Ago
by DUST.ZHU
I create an application with three threads(access oracle database by bde tquery) main program:random select,insert data;cycle:10S thread1:random select,insert,delete data;cycle:10s thread2:random select;cycle:60s thread3:random insert;cycle:20s five errors occur between 24 hours,longest interval:12hours;shortest interval:0.5hour, error …
1
2
3
4
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC