DanMelson's Q&A profile
Visual C++ I have a problem with AfxBeginThread()
I want to create a worker thread but i recive an error like this: my code: UINT ReadCD(LPVOID lp) { .//Some Code// . . return0; } . . . AfxBeginThread(ReadCD,NULL); Error:"error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)" This is true. You can pass the pointer to the object into the LPARAM value of the thread function. Inside the function you can cast the LPARAM pointer back to a pointer of you structure. ...Show All
SQL Server Report and Images on Interanet
Hi - I wonder if anyone has tried to display images from a intranet site when I try to do it the images doesn't get render and ends up as [x]. And the same report executed in VS gives me the following error: The value expression for the image ‘image1’ contains a URL reference, which is not supported. Any ideas IS it looking for a .com ... Limitation The URL is constructed as follow: http://servername/folder/imagefile Thanks Are you rendering the report with the webservice What are you exactly trying to do I had the same problem and in my new article I solved it but I dont know if i ...Show All
Visual Studio Team System Changesets, Merges, and atomic cherries.
I've been having a look at the capabilities of changesets and merges, in particular I was interested in the following: * Cherry-pick merges -- you can merge specific file change to another branch without merging the changes that were included in previous versions of those files. Thus, if you've got 2 bug fixes which touch the same file, you can merge the second one without merging the first. So, I conducted the following simple experiment, involving a single file, and merge from a parent branch $/Test/Main to a child $/Test/Main-branch . I added a file A.txt into $/Test/Main, with a single line of text, Original Code. History ...Show All
SQL Server ADP or VS
I am developing a solution using Access and now i come to know that SQL Express is free for unlimited connection so i want to switch to SQL as backend for scalability and VPN support. But i want to make sure i make the right choice on the frontend too. Could anyone help give some insight on the pros and cons of using ADP or Visual Studio Express as frontend Many thanks. As Buck Woody says, but remember as long as you get a solid back end, it would be really easy to add a web front end also. I find a nice mix of Access / VS / Web apps perform nicely together for various ne ...Show All
Visual Studio Team System Unable to access Team Foundation Source Control
Hi, I m using Team Foundation server Beta 3 Refresh and new to this.My project Manager created a Team Project "<TeamProj1> " who is a member of [server]Team Foundation Server administrator Group.He added me as project administrator in ,[TeamProj1] Project administrator group. I m unable to open Sourec conrtol explorer when i double click Source control in Team Explorer, getting follwing error Either source control has not been configured for this team project or you dont have permission access it.Would you like to create create the source control folder, $/<TeamProj1> When i click Yes button getting this ...Show All
Visual C# The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file
The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file, which renders the forms unviewable in design view until that change is undone. Is there any way to prevent the IDE from doing this automatically Thanks, Wilfred This sounds like a bug. If you can reproduce it consistantly, post a bug report on the Microsoft Product Feedback Center . ...Show All
SQL Server Extended stored procedure to implement sequence
Hello, I want do implement an extended stored procedure to implement an oracle sequence in sql server 2000. I need that because i have a script with more than 75000 lines, full of inner selects (for oracle) of the kind: insert into table1 (col1_1, col1_2, col1_3) (select col2_1, col2_2, some_sequence.nextval from table2) I need to port this script to run in sql server. I have a table to implement sequences, in my sql server db, of the kind: table mysequence ( sequence_name varchar(100), sequence_id decimal ) I need a function that will replace 'some_sequence.nextval' for a function that reads mysequence tab ...Show All
Windows Forms Using Microsoft.mshtml in .NET 2.0 to access DOM
I've deployed my converted 1.1 app onto a machine with only the 2.0 version of the framework, but it seems to ignore all the calls that go into the Microsoft.mshtml assembly that I brought over from 1.1. In a WebBrowser control, I cast an HtmlElement.DomElement to an mshtml.HTMLLIElementClass so I can change its className property. The element's appearance changes on machines with both 1.1 and 2.0 versions of the framework but not on machines with only 2.0. Anybody else experiencing anything like this Here is my code: private void _HandleAttemptCompleted( object sender, TaskEventArgs tea) { if (_HtmlWindow.Document == ...Show All
Visual Studio Team System how to clear the cache in a web test?
hi, all For some reason, I have to clean cache during every time running web test cases, does any one know how to do that please help me . Thanks very much. The cache simulation in a web test is automatic, and is only kept in memory, so you shouldn't need to clean up the cache between web tests. Are you running the web tests in a load test or just running individual web tests What problem or files are you seeing that you need to clean up ...Show All
Visual Studio Team System Baseless merge ?
I've been told a couple of times to workaround problems with branching via a Baseless Merge. Now I'm pretty sure I can guess what this does based on the name, but I can't find any way to accomplish this through the VS2005 UI. I've read all the docs I can find and I've searched google and all I've come up with is the command line option to do "h.exe merge /baseless" from MSDN and the reference from Buck's blog. The description in the docs being : /baseless - "Performs a merge in the absence of a basis version" Am I missing something in the UI or is it just not in there yet Excellent. Thanks, Richard ...Show All
SQL Server Installing SQL Server Express 2005 via Remote Desktop
Hi, Does anyone know if it's at all possible to install SQL Server Express 2005 over a Remote Desktop on a Windows XP machine. I know there are problems running SQL over Remote Desktop, in that it won't start up a User Instance, but I wasn't sure if we can install over Remote Desktop. If it's not possible, can anyone point me to an official document stating this fact Thanks Sam Yes, this is most certainly possible. If you encounter an error during install, please share the logs (%ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\Log)so we can take a look. ...Show All
Software Development for Windows Vista can anyone please explain this error to me?
hello. while trying to eun exercise 3 of the lab (wf handls on labs 01) i get the following error: Activity 'IfAutoApproveReport' validation failed: Can not find the condition "AutoApproveCondition". Check if condition is defined in the conditions file can anyone give me any hints on this the code was all built through drag-n-drop...that is why i don't understand what's going on hello again. btw, can anyone tell me if the condition file is the file with the .rules extension on it another stupid question: can anyone compile the hands on labs i get the same errors when i open the solution and try to compile the project!!! th ...Show All
Visual Studio 2008 (Pre-release) Check box inside combo box or list box
I wrote this piece of code <listbox name ="list1"> <Checkbox id ="ch1">check1</checkbox> </listbox> which doesn't work, I want to add in XAML dynamic check boxes inside the list control thru C# coding. Please help me out. is it possible to do this without Avalon or longhorn programing Thanks Tarusoft ...Show All
.NET Development ApplicationBlock
hello, i want to use ExceptionApplicationBlock and i read in the docs that i need to add a reference to Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll assembly but i cant find it in the "Add Reference" window what am i missing thanks I am note sure if it will work with VS2002. Since you say you have an immediate requirement why dont you go ahead with the older block - that should work with VS2002. http://www.microsoft.com/downloads/details.aspx displaylang=en&FamilyID=8CA8EB6E-6F4A-43DF-ADEB-8F22CA173E02 That works well too. Regards, Vikram ...Show All
Windows Forms Shortcut key combos like Ctrl+W, S
In visual studio, you can go Ctrl+W, S to open the solution explorer window. The ShortcutKeys property of a MenuItem only allows you to assign one. Do I have to implement a key combo feature manually ...Show All
