Magic PC's Q&A profile
Visual C# The system cannot find the file specified
I have this problem: Could not load file or assembly 'Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. HELP! Thank's! Hi the thing is that you are referencing an assembly, and loading a different one.. the thing i mostly do is copy the assembly you want to reference in a folder under your project and add the reference to the copy. are you loading the assembly from the GAC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Debugger hanging at program start (Loader lock related?)
I'm developing a C# MDX application. Sometimes (maybe 1 out of 5 times) when I debug the application (by pressing F5) it hangs before displaying the main window. I'm sure it's happening before DirectX gets setup, but I'm not sure where - because the debugger hangs too. I notice that if I press F10 (step in) followed by F5 (run) the problem never happens and I also notice that it happens more often on slower computers than faster ones. I'm guessing it's a race condition, and it has something to do with the Loader Lock exception that I disabled in order to use MDX. Putting the following code at the very beginning of Main seems to reduce the probability of the problem occurring (but it still happens): ...Show All
Visual C++ Working with bytes and bits
I'm writing a program (to be more exactly it's a DLL) that comunicates with some machines through the serial port, so I need to read 17 bytes from the buffer, get the first byte and split it into 7 bits (the serial port configuration specifies that will be 7 the number of data bits). - How can I get this value from the BYTE array and split it into an array of bits - I'm getting the value from a position of the BYTE array a writing to a file to see what the program(VB6) is receiving. The first time it receives only one byte, the other times, it receives the whole BYTE array. Why I'm using fputs like this: char cSWA = buf[0]; fputs(&cSWA, mFilePointer); - And, how can I convert a BYTE array to a char type - And the ...Show All
SQL Server DTS Packages in SSIS
I read in Kirk Haselden's book "Microsoft SQL Server 2005 Integration Services" that if SQL Serfver 2005 and 2000 are installed on the same machine as seperate instances then you can view the SQL Server 2000 DTS packages in 2005 Management Studio under the Management tree, Legacy, Data Transformation Services node. But in my case, I am not able to see DTS packages in Management Studio. Is there a property or a setting that we need to configure for that Thanks. Can you find the node for Data Transformation Services If so, why can you not see anything, or perhaps what do you see Have you got any DTS packages on that server, to show in SSMS ...Show All
Visual C++ How to use LoadLibrary (win32 api) in C++/CLI without P/Invoke??
Hello All, I'm trying to call an unmanaged win32 api "LoadLibrary" from my C++/CLI based project. I'm using Visual Studio 2005. +++++++++++++++++++++ Project Settings: In C++ compiler command line, I've a "/clr" switch Also in the Linker command line, I've a reference to "user32.lib" +++++++++++++++++++++ In "Stdafx.h" I've added "#include <Windows.h>" The error I get is: error C2039: 'LoadLibrary' : is not a member of '`global namespace'' and (followed by) error C3861: 'LoadLibrary': identifier not found ++++++++++++++++++++ I'm not interested in using P/Invoke facility (DllImport attribute) to invoke this api. What am I missing in the pr ...Show All
SQL Server Need help importing .CSV file
Hi all- I am in need of some help importing a .CSV file into a SQL Server 2005 Express database. I can't use SSIS because it's SQL Server Express. The operation needs to run as a parameterized Stored Proc which I will call from ASP.NET. The problem is that I need to get the only 2 columns from the text file, then "tack on" 3 more columns that will have data that changes, which will come in as parameters to the T-SQL stored proc. This prevents me from using a straight BULK INSERT. The data in each of these columns will be the same for each record in that column - that is, every record in every field in column 3, for example, will be the same. Some of the files will have 4 million records and up, so speed is of the esse ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft.public.platformsdk.security&cat=en-us-msdn-windev-winsdk&lang=en&cr=US&pt=&catli ...Show All
Visual Basic Can't add new field in exist carystal report file
Hi , I'm using .Net within crystal report with xml (.xsd) datasource in my project , but after removing and reinstalling crystal report component on .net , I can't add any new field , I've already verified databases in report , but adding field is still unavailable . thank's ...Show All
Visual Studio Express Editions Green Squiggly Line
Hello. Can someone please tell me what the green squiggly line means exactly. The routine seems to work with them but is it alright to have them I have a message with them which goes as " Access of shared member - etc. " How can we get rid of them I am pleased tohave your answer. Thankyou. Hello. Save you answering. I have gone through lines and on pressing : Shift + Alt + F10, I was given instruction to change m = re.Match(... to m = System.Text.Regex.RegularExressions.Regex.Match(.... Thanks for interest. Now to start working with Regex..... ...Show All
Visual Studio Express Editions Multithreading for dummies
Okay, I want to create a simple worker thread. Easiest method possible. Press a button and have some stuff happen in the background. From my reading I thought AfxBeginThread would be the way to go, but I'm getting an "identifier not found" error when I try and compile. Is there a header I need to include for this Or something else I need to do to make it work Thanks. I managed to get threading working with _beginthread instead. But I can't figure out how to have my thread talk to my GUI. I'm using the visual c++ form designer to create a form, and then have a button click spawn a thread to do some stuff. But Id really like the thread to be able to print stuff in my textbox for example to keep tr ...Show All
SQL Server Usage of Association Rules
Hello, I want to score my data by only the assoziation rules I filtered in Mining-Model-Viewer. Is this possible I recognized that MiningModel Predictionquery uses the generated Model (all rules). Is there any way to influence the model at generating time. Thanks a lot. Hi, I specified the point to solve my problem but I did not understand why MS SQL Server didn't recognize the Association parameters I but in. It uses the Minimum_Probability I put in, but the Minimum_Importance i wrote didn't care it, it use the default value. I want to paste a screenshot here but it isn't possible. By the way I'm using the evaluation version, which should be same as the enterprise edition. Hope for a soon ans ...Show All
Windows Forms Is this a Bug? Published ClickOnce App Will Not Update Automatically
I have a ClickOnce application that I am about to release. However, as I have tested my ClickOnce deployment, I've noticed that there seems to be a bug I see occasionally and I'm not sure if I'm doing something wrong or if it's an issue with ClickOnce. Here's the deal. When I am about to publish my application, I open the projects properties page, go to the Publish tab and manually increment the version number. (I know I can set the auto check button to do that for me, but I don't auto-increment the application for other reasons). After I change the version of the app, I click on the Update button on this tab and then I manually set the minimum version to the new application version. After setting the version. Next, I always clean the s ...Show All
Audio and Video Development XPath Node Set Functions
Does any know if node set functions, such as count or position, are vaild to use in the HDi world I've been trying, but I keep having problems getting a valued returned. Below is the line that is giving me the issue. It may not be 100% correct because I am writing this from home without the exact code in front of me. I believe it's close enough to get the idea across though. var position = this.savedbookmarks.evaluteXPath(position( //bookmark[@time ="+current+")],this.savedbookmarks.documentElement); From what I can remember, the evaluteXPath call returns a node list. In this case, it's returning a node list with a length of zero. Is there maybe a different way I should be going about this ...Show All
Visual Basic Months and dates problem
I have been trying to do a calendar problem using the months of the year. 30 days for April, 31 for December etc. But I am stuck. I was going to use a select case, but again, stuck. Any help would be useful. Thanks As you know, 30 days in september, april, june and november. the rest obviously have 31 days apart from february. I am using a domain up & down for the months and a numeric up & down for the days. So i have got to work out a way of getting the correct days for the correct month. That is where i am stuck ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating a Vector3
I need to rotate a Vector3 around the X, Y and Z axis, with a different angle at each rotation. Is there a way to do this using matrices, or do I have to calculate the new x,y,z using rotation equations Yeah that's what I need, however, my Vector3 is the Max and Min of a BoundingBox, and most of the properties/methods usually available for the Vector3 class aren't available for them. In fact only the Normalize and Length methods are available. Any idea why ...Show All
