VB_Devil's Q&A profile
Visual C++ Problems compiling COM based sample application in Visual Studio 2005
Ok, vanilla install of Visual Studio 2005 and Platform SDK. I copied and pasted some text from wmi samples into an empty Win32 console project with C++ and having some issues with compilation. Apparently even adding #define _WIN32_DCOM was not enough, compiler complains that CoInitializeEx is not found and other identifiers that are usually in objbase.h My code initialization is #define _WIN32_DCOM #include <Windows.h> #include "stdafx.h" #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> # pragma comment(lib, "wbemuuid.lib") any visual studio specific settings that n ...Show All
Visual FoxPro Report problem
Hi All, I met a strange problem in using REPORT FORM. Say I have selected a list of data by using SQL-select and placed it in cursor MyCurcor in my PRG file, but not in MyReport.scx Then I want to create a report: REPORT FORM MyReport PREVIEW the result is OK for first page and when I move to next page or other page or if I were to click on the report, suddenly selected cursor is changed and report shows me that there is Variable 'xxxx' is not found ***'xxxx' is one of the fields in the MyCursor But if I placed a BROWSE statement before the REPORT FORM statement the problem goes away. I don't want the BROWSE command before the repo ...Show All
Visual C++ timeval struct incorrect
Hi, A question, according to the opengroup the timeval struct should store tv_sec as time_t, not as long as MS now does. Some API's return time_t, on 64bit we now get warnings. Shouldn't timeval be updated See http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html Johnny This question you may want to ask Windows SDK folks. http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=121&SiteID=1 Thanks, Nikola ...Show All
.NET Development Data Not update
I have written a small program that only has one table. When the program loads I select the csv file to load into the table. I then truncate the table and bulk insert from the csv file into the table to load all the records. I have a second dialog form that i load from a button. On this form i create reports with a .net report and report viewer. The problem is that the report viewer always show the data that was in the table before the insert of the new csv. Its like it is loading the report info from a snapshot of the previous data. Please Help here is the code: Main form: Imports system.i ...Show All
Visual Studio 2008 (Pre-release) MenuItem selected color
Is there a simple way to change the background of a menu item when it is selected There is no such property on the MenuItem class. I tried changing the control template of MenuItem but the default template is already pretty complex and I'd like to avoid having to rewrite the entire template. Any idea Thanks in advance <Style TargetType="{x:Type MenuItem}"> <Style.Triggers> <Trigger Property="IsHighlighted" Value="true"> <Setter Property="Background" Value="red"/> </Trigger> </Style.Triggers> </Style> ...Show All
SQL Server Changing Connection string in multiple packages.
Scenario: 130 dtsx packages using 4 matching connections. 3 of those connections are stored in an SSIS Configuration table in an Operational database. The last connection is in a shared data source and points to the Operational database so the packages can grab the others. Problem: It's time for deployment and all of those connections must change to production servers. The 3 are no issue, just change the ConfiguredValue in the SSIS Configuration table on the production box to point to the other production servers. However, the fourth one... I had made an assumption that when you changed a shared data source it filtered down t ...Show All
SQL Server SQL Express Start
I downloaded SQL Express, but find nothing but SQL Server 2005 in my All Programs menu, which only gives me configure options. None of the configure options has an interface where I can create a sample table or work with tables. Please tell me what I am missing and if there is any doc that steps you thru starting to learn and use SQL Express. Thanks for any help on this from a real beginner. This edition has the basic database engine features of SQL Server 2k5. Very few features are available with Express edition. This edition also limits the database size and user workload. Try Developer ed ...Show All
SQL Server All tables and columns referenced by sql objects
I'm trying to find all the tables and columns referenced by the sql objects (stored procs, UDFs, views, etc.) in a particular MSSQL2005 database. I can join the sys.objects, sys.sql_dependencies and sys.columns tables using object_id, referenced_major_id, referenced_minor_id, and column_id but I find that the more complex procs contain references to tables (sub selects, for example) that do not seem to appear in sys.sql_dependencies. I can always do string searches on the definition column in sys.sql_modules, but that won't reliably get me column+table combos. Anyone have any ideas Thanks! I actually wrote a blog on this ex ...Show All
Smart Device Development Fullscreen mode - windows message (IP loss) not clearing
I have a 2.0 application that runs in fullscreen mode. the device moves from branch to branch (same WiFi network - different DHCP assigned IP Address). On a number of occasions the IP doesn't properly let go when leaving a branch OR windows throws up a message that it couldn't get an IP address. Unfortunately, when it throws up that message it is hidden and the end user can't hit <OK> thereby locking the process of retrieving a new IP up. Any comments or suggestions because I am at a loss!!! You could have a background thread that periodically PInvokes to EnumWindows. Look for a window whose title mat ...Show All
Visual Studio Express Editions SQL database
hey guys, im just learing how to program...im working through bob tabors tutorials for visual basic 2005 express edition. im on lesson 8 which starts to deal with SQL databases. the problem comes when ive added a new database and when i add a new table and start uptting in information, i cant set a "primary key". the button for doing this is greyed out, as are all the other buttons in the "table designer" toolbar. does anyone have any ideas why all the buttons are greyed out thanks for any help! If you have set focus inside the table designer, then, the icons should be enabled. I'm not exactly sure ...Show All
Visual C# How to Open C# Program with Parameter from Command Line ?
I am new to C# and trying to write a small app which will eventually accept a user ID as an input parameter. In the example code below, I'd like to ask how to start this app from the command line as as follows: c:\>DumpFirst.exe ("PARAMETER PASSED IN") How would I get this parameter above into the exe below Many thanks Mike Thomas using System; namespace DumpFirst { class Class1 { private String strString; public Class1() { strString = "NO PARAMETER PASSED IN" ; } public Class1(String t) { strString = t ; } static void Main(string[] args) { Class1 t = new Class1(); S ...Show All
Smart Device Development Error with the deploy tools and imageList
When I deploy an application PPC with a toolbar and an imagelist, I have an exception: System.NotSupportedException was unhandled Message="System.Drawing.Bitmap" StackTrace: at System.Resources.ResourceReader.LoadObjectV2() at System.Resources.ResourceReader.LoadObject() at System.Resources.RuntimeResourceSet.GetObject() at System.Resources.ResourceManager.GetObject() at System.Resources.ResourceManager.GetObject() at Test.Main.InitializeComponent() ...Show All
SQL Server Can't uninstall or reinstall nonfunctioning sql server
In previous post in the Getting Started section, I discussed problems trying to run queries on multiple databases: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=299240#299240&SiteID=1 Nobody could help with the problem. I eventually got a query to run after several attempts at deleting and recreating databases. Then, I was hit with the following error message: Class does not support aggregation (or class object is remote) (Exception from HRESULT: 0x80040110 (CLASS_E_NOGGREGATION)) (Microsoft.SqlServer.SqlTools.VSIntegration) Nobody could help with that either but based on posts with the same message, I tried uninstall ...Show All
SQL Server How to run DTS package/upgrade in SQL 2005.
Hi All, I am following instrucation in the following doc to migrate dts package. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsql90/html/SQL05InSrREAL.asp In step 2. Right-click the DTS Packages folder in Solution Explorer and select the Migrate DTS 2000 Package option. This starts the Integration Services Migration Wizard . I don't see "DTS Packages" folder what am I doing wrong. Thank you in advance. Satish Patil After you have migrated DTS-package you find them under Integration Services. In Object Explorer, click Connect and choose Integration Services... You will now have a ...Show All
Visual C# Crystal Reports v10 Parameter Fields Problem!
C#.NET 2005 & Crystal reports v10: I have a few Parameter Fields on my crystal report that capture single discrete values such as date, address, etc. and these work fine. I am having a problem passing multiple discrete values to a parameter field. I tried checking the 'Allow multiple values' box (also tried with code) and it seems to capture only the last value being passed. For this example i have set up a Parameter Field called 'Items' and i am trying to populate it with multiple values, with no success.Here is what i do: while (sqlDataReader.Read()) { string item = sqlDataReader[ "ItemDescription" ...Show All
