lushdog's Q&A profile
Visual C++ dao namespace
How do I access the 'dao' namespace in C++ managed code In the other .Net languages I set I reference to the DAO library and then use either a 'using dao' statement in C# or an 'imports dao' in VB. Doing the same thing in C++ and using a "using namespace dao" statement results in a C2871 error "a namespace with this name does not exist". Any suggestions Add COM reference to Microsoft DAO 3.6 Object Library. Use DAO in the code by the following way: DAO::DBEngine^ dbEngine = gcnew DAO::DBEngine(); DAO::Database^ db = dbEngine->OpenDatabase(L"Test.mdb", nullptr, nullptr, nullptr); ... You can add line using namespace DAO; and use DAO types without prefix: DBEngine^ dbEngine = gcnew DBEngine(); Datab ...Show All
SQL Server Security Issues with Reports
I am having a problem with getting my reports to work after deploying them to a report server. Viewing them in the preview pane in Visual Studio 2005 works fine with the data being returned. But when trying to navigate to the report from my desktop machine using the report server url I get the following error An error has occurred during report processing. Cannot create a connection to data source 'datasource'. For more information about this error navigate to the report server on the local server machine, or enable remote errors So I remote into the report server and browse to the report from there and it works fine and the data is returned. Is there something I am overlooking here I am using "Window ...Show All
Visual Studio Express Editions how can I integrate C program in VB express?
how can I integrate C program in VB express Regards, Yaniv C++ mangles the symbol. Use extern "C" to stop the mangling: extern "C" double __declspec(dllexport) b5(int x) { return x; } ...Show All
SQL Server SQL Server 2000 Debugging using Query Analyzer
I'm trying to debug some procedural functions in SQL Server 2000 using Query Analyzer, and not having much luck. Any help would be appreciated! Thanks, Doug This article deals more with Stored Procedures... anybody have experience with User Defined functions or functions THanks!! Merry Christmas! doug ...Show All
SQL Server Please help with partitions!!
Hi everyone, Primary platform is sql25k 32-bit. I'm trying to move data from one partition to a table I am not able at all. Find attached the full script for that: CREATE PARTITION FUNCTION rangoAnualFP ( datetime ) AS RANGE LEFT FOR VALUES ( '200301' , '200401' , '200501' , '200601' ); CREATE PARTITION SCHEME rangoAnualFE AS PARTITION rangoAnualFP TO ( PRIMERO , SEGUNDO , TERCERO , CUARTO , QUINTO ) --Where PRIMERO, SEGUNDO and so on are FILEGROUPS, of course.. -- SOURCE TABLE CREATE TABLE [dbo] . [DatosMensuales] ( [Id] [int] NOT NULL, [Concepto] [varchar] ( 50 ) NULL, [FechaAlta] [datetime] NOT NULL ) ON [rangoAnu ...Show All
Visual Studio Express Editions Microsoft's Web-based registration fails for VS 2005 Express
September 7, 2006 Visual Studio 2005 Express only runs 30 days without registration. Registration page fails to login with an existing Passport account. Registration page fails to login with a newly created Windows Live account. Registration information page provides no option to register. The error message from the Microsoft registration page reads: "The Microsoft Passport Network is unavailable from the site...." We are running only valid, registered Microsoft software on a nearly new computer under Windows XP Pro SP2, with all upgrades. We have no known problem with any other software or Web site. Registration page entered from Visual Studio 2005 Express -- https://login.live.com/ppsecure/secure.srf lc=1033&id= ...Show All
Visual C# creating a combo box inside a data grid view
I have created a data grid view in C# and I want to define a column in this data grid view to be a combo box. I have code which compiles but doesn't work. What I see when I test (in the column in the data grid view) is a drop down arrow on the right side of the field, but nothing happens if you select it. This is the code I used: DataGridViewComboBoxColumn dgvColPlayEveryDescription = new DataGridViewComboBoxColumn (); dgvColPlayEveryDescription.DataPropertyName = "PLAY_EVERY_RID" ; dgvColPlayEveryDescription.Name = "PLAY_EVERY_RID" ; dgvColPlayEveryDescription.HeaderText = "Play Every" ; dgvColPlayEveryDescription.DisplayMember = "DESCRIPTION" ; dgvColPlayEveryDescript ...Show All
Windows Live Developer Forums Has anyone implemented a rectangle zoom?
This question probably isn't clear -- some maps allow users to drag a rectangle on the surface of the map and then onmouseup the map zooms to the area within the rectangle. Has anyone implemented this If so are you wiling to share a code sample Thanks. Thanks for the answer -- and I'm sorry for the 'duh' question (the programs I've seen use the left mouse button) ...Show All
Visual Studio Team System URL to access the VSTS workitem in the browser
can somebody send me the url to access the workitems like testcases, bugs directly in the browser instead of checking it in the VSTS. http://TFS_Name:port_number/WorkItemTracking/Workitem.aspx artifactMoniker=work_Item_Id Replace TFS_Name, port_number and work_Item_Id with coresponding values. Regards, Ognjen, VSTS MVP ...Show All
Smart Device Development How to retrieve SMS content??
I would like to retrieve an incoming SMS content to a textbox., but i don't know how to retrieve the SMS content.... Any one can give me your hand Thanks !!! I've never tried it but take a look at this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/T_Microsoft_WindowsMobile_PocketOutlook_SmsAccount.asp http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=408382&SiteID=1 ...Show All
Commerce Server Commerce Server Deployment Nightmare
With my development about 1/2 done, I have been interested in moving what I have to a test environment, and I am having a horrible time. Here is the problem: The web server that will host the Commerce Server application will be on a separate server than the databases. I installed Commerce Server on the web server without event. I also was able to configure the databases so that the MSCS_Admin and CatalogScratch databases were created on the right server. Here's where the fairy tale ends however. The installation instructions say to then unpack the CSharpSite pup package. Well, since I don't want to use the default ootb site, I instead unpacked MY packaged site from my development machine. Again, the databases were created on the correc ...Show All
Windows Forms how to use picturebox
Hi! I have a question that how to use picturebox. If I want to load pictures from a file. My reference says something like; pictureBox1.Image = Image.FromFile( ); What would it be after FromFile Should I put file address of the pictures Thank you for help. Interesting Thread ...Show All
.NET Development download using webclient with downloadasync
Hello, I'm currently programming in VB .NET 2005. I've got a working programme which downloads and saves the file to the location I choose but I have one problem. If I download using DownloadFileAsync method of the webclient, I receive feedback on how much has been downloaded but I can't seem to queue another file as it fails the first file and begins the next. The only way to pause between the calls to the method DownloadAsync is to insert a messagebox. Now I can solve this problem using the method DownloadFile of the webclient but then I don't get any feedback of how much of the file has been downloaded. the method which calls the downloadasync, Private Sub DownloadButton_Click( ByVal sender As System.Object, ByVal ...Show All
Windows Forms Custom title bar of the Form
Hello, I want to customize look of the title bar. In a matter of fact i need to add bitmap images to the left and right ends of the title which heights are not equal. What are the "good"/correct/efficient way to do it Thank you. I read this article. The problem here is that i have to redraw my custom image over the menu strip. I did not find any place defining the order and rules of the menu strip drawing. ...Show All
.NET Development C# Triple DES encrypt, getting long string of AAAAAAA ?
Something doesnt seem right. I encrypt my string and the encrypted result is a long string of A's followed by an "=" sign. ideas Try decrypting it and see if you get your string back ;). If not, you better post your code. ...Show All
