This is the right way to do it: void** arg = static_cast(static_cast(&mQ_waiting_for_write)); InterlockedExchangePointer(arg, new_Q); or shorter: InterlockedExchangePointer((void**)&mQ_waiting_for_write, new_Q);
Thanks. It was the correct way to do it (using the _T macro). anyhow, now i have another problem. i have double variables which i want to turn to strings. but the _GVCT function gets only 'char*' buffer. is there any _UNICODE replacement?
Try this
where to_char(BIGINT_column,'999999999999') LIKE '44%'
But be prepared to possibly handle a huge number of records. :) Chris Meech I am Canadian. [heard in a local bar] Gently arching his fishing rod back he moves the tip forward in a gentle arch releasing the line.... kersplunk [Doug Goulden]
Hi. It sounds like this is want i needed. could you point me to a nph-proxy's website? or some place which i can download the cgi code and find some HOW-TO docs. thanks
Use the Process.WaitForExit method:
Process p = new Process();
p.StartInfo.FileName = "calc.exe";
p.Start();
p.WaitForExit();
Microsoft MVP, Visual C# My Articles
Don't know if this will help but I have started taking advantage of the "Using" keyword to automatically fire the dispose method. The feature is specific to C# as far as I know. You have to be sure the type you are using implements the IDisposable or it will throw a compile time error. public void YourMethod() { using(MyObj m = new MyObj()) { MyObj.DoWhatYouWant() // Dispose() is called automatically for you when the // Using block exits } } Good luck and I hope it helps.
Thanks guys for the quick help. the fixed the problem by removing the panel that was fill-docking my user control and adding the ParentControlDesigner attribute. Now the controls are being added into the user control and not to one of its controls (i.e. the panel i wanted it to be added to). thanks.