thanks.. i just make new thread within my loop :)
ALQallaf
Posts
-
Problem with aborted thread.. -
Problem with aborted thread..i have this problem (Thread is running or terminated; it cannot restart.) and i search for solution but what i was read about that {thread which has died cannot be resuscitated}, so how can i make the aborted thread start again ?
-
Error with compiling code..Thanks Nishant Sivakumar its works now
-
How to include or Add Referance with VC++ 2005?i think it works with option : b)USe a Managed VC++ application (New project --> Visual C++ -->CLR --> Windows forms applicaion / Class library). This is a c++/cli application. This will be the easiest methed if you are planning to use System.Messaging.dll (in C++) instaed of the MSMQ COM apis. -------- Thank you Milton finally its works :-D
-
Error with compiling code..i tryed your syntax , but still having an errors nothing changed
-
Error with compiling code..nothing changes still have errors when i place MessageQueue^ theQueue = gcnew MessageQueue; inside my function SendToQueue()
-
Error with compiling code..hello everythings gos good with the code Below, but when i try to make object (MessageQueue TheQueue = new MessageQueue;), it give me an errors says : Error 1 error C3821: 'System::Messaging::MessageQueue': managed type or function cannot be used in an unmanaged function c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 Error 2 error C3624: 'System::ComponentModel::Component': use of this type requires a reference to assembly 'System' c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 Error 3 error C3821: 'System::Messaging::MessageQueue': managed type or function cannot be used in an unmanaged function c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 Error 4 error C2750: 'System::Messaging::MessageQueue' : cannot use 'new' on the reference type; use 'gcnew' instead c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 Error 5 error C3642: 'System::Messaging::MessageQueue::MessageQueue(void)' : cannot call a function with __clrcall calling convention from native code c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 Error 6 error C3175: 'System::Messaging::MessageQueue::MessageQueue' : cannot call a method of a managed type from unmanaged function 'SendToQueue' c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 Error 7 error C2664: 'System::Messaging::MessageQueue::MessageQueue(System::String ^)' : cannot convert parameter 1 from 'System::Messaging::MessageQueue *' to 'System::String ^' c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\dll_from2005\MessageQueue\MessageQueue\MessageQueue.cpp 26 ------------------------------------------------------ ------------------------------------------------------
#include "stdafx.h" #using <system.messaging.dll> using namespace System::Messaging; #ifdef _MANAGED #pragma managed(push, off) #endif BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } int _stdcall Sum(int inA, int inB) { return (inA + inB); } int _stdca
-
How to include or Add Referance with VC++ 2005?i think yes im in safe side :-D, now i can compile with no errors after set Common Language Runtime Support (/clr), i want to know if there is any changes between dll on vc6++ and vc2005, everytime i call function within dll by using this declaration int _stdcall SendToQueue(char * SBody,char * SLabel) { return 123; } and i have to make .def file and write exported function header inside it so it will work with vc2005 or there is problem with it ?
-
How to include or Add Referance with VC++ 2005?actually i created my project with VC6++, the Convert and open project with VC2005, emm ok i will try to open new fresh project from 2005 directly , so i have to open managed dll project from vc2005. can you tell me which option when i want to create project give me managed dll ? currently i make win32 project--->dll with puting sign on Export symbols only. is im in right way ? -- modified at 17:42 Saturday 6th May, 2006
-
How to include or Add Referance with VC++ 2005?Project Properties -> configuration Properties -> General -> Common Language runtime support set-->Common Language Runtime Support (/clr) but also it gives me this error: :doh: Error 1 Command line error D8016 : '/MTd' and '/clr' command-line options are incompatible cl how can i fix it please ?
-
How to include or Add Referance with VC++ 2005?thank you i tryed it but it give me this error: Error 1 fatal error C1190: managed targeted code requires a '/clr' option can you know how to resolve it ?
-
How to include or Add Referance with VC++ 2005?Hello im working with MSMQ , so i want to make dll that will send to MSMQ, so how can i include MSMQ Library (System.Messaging.dll) in VC++ ? C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.Messaging.dll thanks
-
Error reading XML from MSMQwhen i want to receive fom MSMQ this exception comes(Generic Exception was thrown :system.xml:data at the root level is invalid. line 1, position 1.), the problem comes because i was send message from old MSMQ, can any one tell me how to resolve this ? is xml that used with old msmq not work with xml that used with new msmq? is there any way to fix this problem ?
-
Help Trying Connect to SQLbut your answer too late :), i already did it, any way thanks :-O
-
Help Trying Connect to SQLim using Windows Authentication so what is my user id and password will be ?
-
Help Trying Connect to SQLim using Authentication: Windows Authentication, so i did not entered username or password , for this reasone i did not specified a user in my conection string, i dont know if i have to put a user , if yes i have to then what is my user will be ? thanks
-
Help Trying Connect to SQLIm new in SQL, im trying to connect to sql data base but it give me exception-->(Login failed for user ''. The user is not associated with a trusted SQL Server connection.) i think there is wrong with SqlConnection parameter, so what is the wrong? im with sql express 2005 & vs2005 SqlConnection SQLConn; SQLConn = new SqlConnection( " Data Source = .\\SQLEXPRESS;" + " Initial Catalog = MTDB; " ); SQLConn.Open();
-
How to stop Backgroundworker ?What is sequance to stop Backgroundworker?, what function to use to stop it?
-
How output msg from thread to label windows control ?is this simple example :omg: ? if yes , what about complex one hehehe :laugh: i searched befor , i found MSDN example but it is so long, what i want is real simple example because i dont have time for my project.
-
How output msg from thread to label windows control ?is there any simple example doing this?