donno20's Q&A profile
Visual C++ _bstr_t problem
Hi, I get a link error while invoking a library method that returns _bstr_t. Compilation is successful, but not linking. I get this error: error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CalculateKey(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ( CalculateKey@@YA AV $basic_string@DU $char_traits@D@std@@V $allocator@D@2@@std@@V12@@Z) referenced in function "protected: class _com_ptr_t<class _com_IIID<struct trr::ITRR_RouteReader,&struct __s_GUID const _GUID_a5493ad2_8229_44a4_a9bf_0f0cfcb0650d> > __thiscall ExampleExport::GetAPI(void) ...Show All
SQL Server Option "Include first-level subfolders"
I do not have the option to "Include first-level subfolders". There is some discussion in another thread (Re: How to Delete Files on Maintenance Plan) that indicates this has been fixed on SP1. I am running SQL Server 2005 x86 64-bit Standard Edition with SP1. Is anyone else experiencing this problem Satya SKJ wrote: Oh I guess the x64 bit could be the reason about why this might not be fixed with SP1. Is there a more definitive answer out there ...Show All
Visual Studio Cannot Download Visual Studio 2005
Hi, I am trying to download the visual studio 2005 trial for 90 days. The link provided by microsoft is : http://www.microsoft.com/downloads/info.aspx na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=B2C27A7F-D875-47D5-B226-E2578A116E12&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fe%2f0%2f4%2fe04de840-8f6b-4fe5-ac3d-d3ad8e4c2443%2fEn_vs_2005_Pro_90_Trial.img the Img file is download wighin milliseconds. But actual size shown was 2.4 GB. What is this image file or any tool is there to run this file.. Thanks Mohan Mohan1 wrote: Hi, Later it redirects me to the same URL which i had mensioned earlier. is it concerned with the internet speed. Mohan It works fine for m ...Show All
Windows Forms SQL Database / Windows 98.
Hi, I have created an application that accesses a SQL database and Published and installed on a Windows 98 machine which has .Net framework installed. The SQL Database is directly accessed at run-time it is not included as a Resource File - I have manually copied the file to the Windows 98 machine. My question : Will this application run on a Windows 98 machine. At the moment I get an Error establishing a connection to SQL server. Does the ClickOnce/ Publish include all required files I really don't know what I'm doing, so any help would be great. Thanks Hi I have attached the Error Text, I am using the SQL Server 2005 that came with VBEE. I have enabled the TCP/IP if that's what ...Show All
Visual Studio 2008 (Pre-release) WCF method returning a strongly typed collection to a .NET 2.0 client
Ok I have a WCF method defined which returns a strongly typed collection. [ServiceKnownType(typeof(XXX.Platform.RoleAssignment))] XXX.Platform.RoleAssignmentCollection GetRoleAssigments(int UserID); RoleAssignmentCollection class can add objects of type XXX.Platform.RoleAssignment. Whenever the above method is invoked from a .NET 2.0 client using the proxy generated by WSDL, it returns an Object array. So on trying to iterate through the object array in rebuilding the collection as shown below proxy cs=new proxy(); Object[] t1 = cs.GetRoleAssigments(3); XXX.Platform.RoleAssignmentCollection r1 = new XXX.Platform.RoleAssignmentCollection(); foreach (Object o in t1) { r1.Add((XXX.Platform.RoleAssignment)o); } ...Show All
Visual Studio How FormatCurrency to be blank if $0.00 ?
ASP.NET 2.0 C#, Edit Expression in Report.Table.Textbox. Customer wants $0.00 to appear as "--" or blank, says chrystal reports supports this formatting. I'm shooting in the dark, unknown if this support C# syntax, is equivalent to VB6, ro what I've tried things like this: =Format( "($0.00 ---:{0})" ,FormatCurrency(Fields!Balance.Value)) Thanks One way of doing this is to use the following settings on the textbox: Value property: =iif(Fields!Balance.Value = 0, "--", Fields!Balance.Value) Format property: C2 The C2 format string will apply currency formatting with two decimals to numeric values (assuming tha ...Show All
Visual Basic how to implement the "Add new" button
hi all, I am using the DataBinding to bind a couple of controls on my form to an Access db. i managed to do an update on the modified rows. I just cant program the button that is behind the "add new" button. I am using VS2005 Pro. please download the solution from here and make sure u change the path of the DB to wherever u put it . http://www.wegraphics.com/dotNet/addnew.rar this is the code in case u dont have the IDE ... thanks alot for any help. Public Class Form1 Public WithEvents dt As New DataTable Public WithEvents da As New OleDb.OleDbDataAdapter Public WithEvents conn As New OleDb.OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Se ...Show All
Visual C++ Number of sub-threads are increasing when OpenMP is used in a spawned Win32 thread...
OpenMP support in VS2005 is very nice feature, and our team is now using it intensively. However, we've found a very big problem in OpenMP that the number of threads are increasing. When using OpenMP in VS2005, the created sub-threads still remains even if the parallel-construct finished. In usual cases, it would not be so problematic since the reamaining sub-threads are re-used when another OpenMP parallel construct enters into action. However, when we use the OpenMP funcion in a spawnd Win32 thread, the remaining sub-threads are not re-used. Here is an example to reproduce it: static WorkerThread( LPVOID ) { ::omp_set_num_threads( 4 ); #pragma omp parallel { TRACE( _T("Thread Id: %d\n"), ::GetCurrentThreadId() ); ...Show All
SQL Server reinstalling As
good day to all! well i'm having a problem: i had As installed in my computer. then i needed to unistall it and now that i nedd to reinstall analysis server i have a message "please unistall the previous version". but i had do it can someone tell me what to do ( i'm not thinking in installing windows again!) thx! Hi Try doing it from the commandline with the switch SKUUPGRADE=1. SQLDIR\setup SKUUPGRADE=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Textured cube rendered with BasicEffect and Effect shader
This code start from examples that you can find here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=694235&SiteID=1 by "pRtkL xLr8r" and "i made this". It show a textured cube rendered with BasicEffect (on left, with light) and with Effect shader (on right, not light). Not all faces are right textured. Press keys: Insert-Enter to toggle Full Screen/window mode; arrows, PagUp, PagDown, Home, Fine to move; Esc to exit. To dowload the project: http://tonigreco.spaces.live.com/ I hope it can help. Bye Toni NotMyself wrote: Interesting, if I comment out the 3d render code I get the blue background. Add back in Draw cube with BasicEffect, I get a black screen. Comment that out and add back in Draw cube with Effect shader ...Show All
Visual Studio Team System Standard team project reports have empty parameter combos
Hi, I created a new team project last week, but noticed that when I went to (for example) the "Remaining Work" report, the Iteration combo was blank, and when dropped down didn't contain any entries. I tried forcing a process of the data warehouse, but that didn't help. Also, parameter in other reports displayed the same issue (eg, Work Item Type, Area, etc) Today I tried deleting the project and creating it again, but it's made no difference. All the other projects that already existed on the server behave without a problem. It may be relevant that this is almost certainly the first project created since we moved from the RC to the release version. This project is going live tomorrow, so I could really do wit ...Show All
.NET Development How to sign an assembly that is already compiled?
I am building an application in 1.1, and all the assemblies in my application are strongly named. I want to reference an external assembly that is not strongly named/signed from one of my strongly named assemblies. The build in VS fails because strongly named assembly cannot reference weakly named assemblies. I do not have the source code for the weakly named assembly. What are my options Can I sign the weakly-named assembly using any tool so that it can have a strong name. Thanks. I remember this problem bitting me as well :) You can try ILMerge tool (you can download it from http://www.microsoft.com/downloads/details.aspx familyid=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en ). Happy sig ...Show All
Visual C++ Visual Studio 2005 relative paths
Hello folks I know this is a litlle bit unusual question, but I just installed visual studio 2005 and my converted solutions from 2003 are fine. But when I create a new project using 2005, my additional include directories are messed up. I cannot use relative paths anymore and instead of showing relative paths from my project, it shows the Visual Studio path, i.e : .\1033\..... Btw, the relative paths created in the converted solutions are ok. Anyone had the same problem Thanks in advance In Visual Studio 2005 you will have to hard code alot of the paths you didn't before, I think.... I just always have my includes in the default directory with the rest so I don't have to worry about situations like that. ...Show All
Visual Basic Checking if drive exist
I got a few questions, maybe you might be able to help. I am needing to design a program that will check for a problem with another pc in my local network. We are not running a server type enviroment, but just a simple peer to peer platform. Any how on to the problem, We use one pc to act as a server, and the hard drives use a raid controller using 1(mirror). We ran into a snaffou yesterday, because no one in that building monitors thier pc's, they just use them, anyhow the raid broke and created 2 independent drives with the same shared folders, and the drive windows decided was bad wasnt the right drive, it renamed the volume and took everyone back to fridays data that resided on the drive that windows thought was bad. Anyhow ...Show All
Windows Forms How to bind a hierarchical DataSet
Hello I had to migrate an application that was based on hierarchical ADO recordsets (in this technology, a child chapter stands as a child recordset in one of the fields) Since: 1) The same approach add to be kept in the .NET version in order to keep a uniform way of accessing data from the application point of vue 2) In ADO.Net this approach does not exist (one get an array of DataRow using the GetChildRows method instead of a DataTable) I created a new class that simulates this behavior, that is root tables as well as child rows are always embedded in that class. Now the question is: Since this class should be used as a DataSource for the DataGridView control, I was wondering how to implement the DataV ...Show All
