I tend to use POSIX Threads, when programming in C, under Linux.
Without MFC
Question:
How would I then create threads in VC++?
Find more information on threads under win32?
Edit:
Brief illustrations
I LOVE stackoverflow - best resource for students!
Regards
...
Thread to wait infinitely in a loop until a flag state change, then call function.
pseudo code illustration:
while (true)
{
while (!flag)
{
sleep(1);
}
clean_upfunction();
}
Currently:
Using the multithreaded versions of the C run-time libraries only
No:
MFC
Question:
Is there a more efficient way o...
I have a strange problem with VS2008. My solution has 8 projects (all c#) and hangs VS when I build. The task manager says "not responding" and the process takes 100% of one of my cores, and the memory usage gradually climbs. Eventualy the IDE responds again, builds and deploys. The hang time seems to grow longer and longer each time...
I need to make changes to files locked by another user who is not accessible any more. How can I unlock the files without having to log in using their account in Visual Studio 2008 TFS?
...
After loading an existing MFC application in Visual Studio 2008, I am left with one linking error:
LINK : fatal error LNK1104: cannot open file '..\..\xpressmp\lib\xprm_rt.lib'
I have looked "everywhere", but I can't figure out where the relative path is set. The lib file is located in C:\xpressmp\lib, and I have added this directory ...
I use VWD 2008 Express on Windows 7 beta. When I add Subsonic 3 templates to my MVC RC project, Web Developer Express doesn't generate classes based on them. Connection string is correct. Do you have any ideas?
...
Hi,
I am trying to add a row to a table in the database using the table adapter's update method. I am not getting any errors it looks like working fine but there is no actual insertion into the database. However if I try to insert the same row again I get a constraint exception saying that I am trying to insert a data that is already in...
I plan to introduce a set of standards for writing unit tests into my team. But what to include?
These two posts (Unit test naming best practices and Best practices for file system dependencies in unit/integration tests) have given me some food for thought already.
Other domains that should be covered in my standards should be how test...
Whenever I rightclick something in visualstudio, I get a context menu for about half a second. Then it goes away, before I got a chance to click anything. Sometimes if I'm really fast I manage to click something anyway, then it works.
So annoying.
Sometimes the problem goes away for a few hours, then it comes back (in the sams visual ...
Hi
This may not really sound hard to do but it is currently killing me. Currently i have a Visual Studio 2008 C# Project that i use in conjunction with a DAL generator , its nothing fancy at all besides generating files that i can use in the project to access the database.
The problem i am having is that after the generator has run and...
We use Visual Studio 2008 for C# application development.
We launch three process when our applications comes up & we shutdown the launched processes when we close our application.
But often during debugging, we tend to close the debugger by Shift-F5 which stops the application immediately. So we need to manually close the processes st...
When I use the query designers in VS2008, how do I save the results to a file?
The output window is truncating the XML datatype - even if it didn't truncate, it still requires cut and paste to save the results to a file.
...
Is there any way you can implement inheritance in Reporting Services? I would like to have a master report, that contains the standard header and footer + some info in the beginning of the report, as well as containing some report parameters. Then I would like to create a new report that inherits the master reports design and then I co...
I am trying to use MageUI.exe included in Visual Studio 2008 on a DLL in order to deploy it. When I try to save the application manifest I got the "Files page - No entry point specified" message every time. If I set on the Files Tab a dll as Entry Point, it is not a valid Entry Point. What am I missing?
...
I'm making a custom control with a panel. I want to be able to drag and drop it so I've implemented that in the MouseDown event of my control. But I want the thing to react when you start drag to give a little feedback to the user. So in the MouseDown even I change the color. Then I want to change it back in the MouseUp event.
My contro...
I have a small MVC app that works locally, but when I publish it to the server (running IIS6), all the links get messed up.
For example, a typical link when running locally would be:
http://localhost:3467/Exceptions?exdate=20090108
However, when I publish it to our dev server at \\deverserver\apps\MyProject, note the duplication in t...
When publishing an asp.net web site in Visual Studio 2008, is there a way that I can force it to ignore the .svn folders in my local working copy so that my target folder does not end up with .svn files as part of the output.
Thanks,
Jason
...
I am using VSTS 2008 with both the developer and database editions installed. I have the DB edition GDR installed (version 9.0.31124). We have several places in code that we reference linked servers (DB2 mainframe, iSeries, and SQL Server). One such example is this code that we have in a store procedure:
SELECT VendorID
INTO #tmp...
I am no longer able to graphically see tables, server or databases in Visual Studio 2008. If I open previously created datasets all I see is the XML as if I had selected view code instead of designer, I have also lost my server explorer window and when I try to re-add it from tools --> connect to server or database nothing happens.
Noth...
I have Visual Studio 2008 (9.0.30729.1 SP) installed on my computer and a build machine. On my computer, a project builds fine. On the build machine, I have started getting this error.
ALINK operation failed (80070005) : Access is denied
This is incredibly irritating because it doesn't say Access TO WHAT??? is denied.
I've tried rebo...