dfl's Q&A profile
Visual C++ MessageBOX
I want to use Messagebox to display a message on screen, The code is: if (ret == EW_OK) MessageBox::Show(S"CNC is connected"); else MessageBox::Show(S"CNC connection fail"); The following error are: error C2653: 'MessageBoxA' : is not a class or namespace name error C2660: 'System::Windows::Forms::Control::Show' : function does not take 1 arguments Can anybody help me to correct the error Thank you! I presume that you are mixing .NET and Win32: i.e. you have somewhere in your program a #include <windows.h>. If this #include is really neccessary (and I assume it is) then the easiest fix for this problem is to add ...Show All
Visual Studio Team System How to upgrade my VSTS Team Suite Trial to real?
I know there's already a thread titled similarly but it doesn't help my situation. My VSTS Team Suite Trial Edition install is to expire in 20 days (you know it reminds you every time it starts). The role change for my MSDN Premium with Team Suite is complete (now when I login to my MSDN I can see Team Suite as a download option). My question is, how do I upgrade the VSTS Team Suite Trial install on my computer without an uninstall/reinstall Everytime I go to Help -> About Microsoft Visual Studio and click the Uprade button, it takes me a this URL http://msdn.microsoft.com/vstudio/products/ Hi The fo ...Show All
Windows Forms Using the DataGridViewComboBoxColumn
Hi, I have a table with around 100 records, one of the fields in the table is a priority field which has a value of high, medium or low. I am bindins all the columns in this table (around 20) to a datagridview. For the priority column I want to use the DataGridViewComboBoxColumn. I am writing the following code for binding the data to the column : comboboxColumn.DataSource = ds.Tables[0]; comboboxColumn.ValueMember = "priority"; comboboxColumn.DataPropertyName = "priority"; comboboxColumn.DisplayMember = comboboxColumn.ValueMember; comboboxColumn.MaxDropDownItems = 3 The data is coming in the combobox column but for each row in the table it ...Show All
Microsoft ISV Community Center Forums Supported MS Access Versions
Hello everyone, Is there a list of MIcrosoft Access versions that are still being supported. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MC2 GameOS?
Hi, On a cursory look, it seems that the "GameOS" lib contains a good deal of core logic, including some rendering logic. Is it possible to get more source in this lib (still excepting the network code, of course). I originally wanted to update the renderer to utilize shaders via DX9, but the initial browse makes me think this isn't doable. Thanks, Brian At this time we have no plans to release the source code to the GameOS library, this was due to the fact it was based on DirectX 7.0 and we simply didn't have time in our schedule to accomodate porting it to DirectX 9. I don't know what future ...Show All
SQL Server Get local sql server name
Hi, How can I get local sql server name Thank's Alexei Good for you. You have an escuse for using Microsoft.SqlServer.Management.Smo. http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.database Using SMO is a nice experience (or I've been lucky). You will need to a reference to the microsoft....smo dll, of course. #region "Add local SQL Server 2005 instances to tree" DataTable dt = Microsoft.SqlServer.Management.Smo.SmoApplication.EnumAvailableSqlServers(false); foreach (DataRow r in dt.Rows) { string sInstance ...Show All
Visual C# How to check for tables in dataset
Hi all. I am not using mssql. I get my data from a progress db. When i receive my dataset, they can contain 1,2,3 or 4 tables. How can i find out what tables are in the dataset. (The name of the tables can change..)I have tried if (set.Tables[0].Rows.Count > 0) if (set.Tables[1].Rows.Count > 0) if (set.Tables[2].Rows.Count > 0) This dosn't work. A ny other way to check my dataset for tables Thanks. Lars E. Use a DataTableCollection to say DataTableCollection tables = set.Tables; foreach(DataTable table in tables) { if(table.Rows.Count > 0) ... } ...Show All
Visual C++ Linking error
I am using vc++ 6.0 for an application which uses nmake tool to build the required files. During the process it is giving an linking error LINK : fatal error LNK1104: cannot open file "mfc42u.lib" NMAKE : fatal error U1077: 'link' : return code '0x450' Stop. Please tell me a way to resolve this. thanks in advance It looks like you are missing a directory from you LIB enivronment variable: I would fix this by finding out where mfc42u.lib is on your machine and then add the directory that contains it to the LIB environment variable. ...Show All
SQL Server Help with using the right approach
Greetings my friends I am attempting to solve the following problem using SSIS, actually I am attempting to convert a SQL Server 2000 DTS package in to a SSIS package. The package does the following : 1) Retrieve the maximum Price_ID (PK) from a PRICE dimension table. 2) Populate a staging table with data coming from a source system where the PRICE_ID > (Price_ID from above) 3) Update the actual DIM table with the new data help in the staging table. For this task I want to learn the use of the Lookup component which I think is appropriate. My questions are as follows : If I create a global variable to h ...Show All
SQL Server How to add existing dtsx file back into VS project
I recently did a save as for my ssis project in VS. Now when I open my sln file, it doesn't show the previous package name, it shows the new name. This is not what I want. I thought that doing a save as would separate the new package name into it's own project. I removed that package name from my solution explorer and tried to add back in the old dtsx filename under SSIS packages in Object Explorer. I did a right click on SSIS Packages and choose "add existing package", chose the old dtsx file. It created a whole new filename with (1).dtsx appended to it. How can I get this project back where it used ...Show All
Visual Studio 2008 (Pre-release) Which security strategy may work for my sceario?
I need to settle on a strategy for securing (with message encryption and authentication) a service and I’d like to throw up the scenario and find out what recommendations come back from the community. The scenario is as follows: I have a WinForms “Smart Client” application that consumes a WCF Service that is hosted in IIS. The client app only talks to the service (i.e. consumes no other services) and the service only exists to be consumed by the client app, and probably an ASP.Net app in the near future, but that doesn’t exist yet. The Server that hosts the service is in a co-located hosting facility. M ...Show All
Visual Studio Express Editions Selection changed event raised on adding a row to a DataGridView - c# express?
Hi, I have a form with a Datagridview control which gets filled programatically. It also has an associated 'selection changed' event for when the user gets to interact. In beta 1 all was OK but in beta 2 the selection changed event is raised everytime the program adds a row which is definitely not what I want. Anyone know if this behaviour is by design As a workaround I guess I could disable the selection changed events and then enable them again Which leads on to the Newbie question how do I disable the event which has been set up in the designer section using the properties pane Many thanks for reading Cheers ...Show All
Game Technologies: DirectX, XNA, XACT, etc. blender and .X
I have created some models in Blender and was wondering how to set the coords and render them in DX. I am using C#. I am also using C# and Blender for mesh development. There is a new script out there for Blender that is suppose to fix DX export issues here: http://xoomer.virgilio.it/glabro1/python236.html . Now when you use the export to DX8 it will be formatted correctly. Another issue I found was object naming in Blender is not compatible with DirectX. Blender names successive objects with dot delimeters: Ex cylinder.001, cylinder.002 . You have to change those dots to underscor ...Show All
Visual Studio Express Editions Treeview
I'm using the treeview control to simulate an outlook type navigation system so when a node is clicked a panel opens and when another node is clicked another panel is displayed. I can't make heads or tails of the 3 msdn library examples which seem to discuss populating the nodes. Does anyone have a link to a useful tutorial or tech doc on node click events in C# Regards Paul Devine hi, thats because the node is allready selected in the treeview you have to select other node then select it back to get what you want or to change the event handler you can get all the event handlers for a control ...Show All
Smart Device Development Port number for the Core Connectivity
For one of my target machine (RNDIS enabled), the IP address is 169.254.2.1. I can create two screams with different port numbers successfully: one port is 9002 and another is 9004. For another target machine (RNDIS disabled), I also try to create two screams. However, it seems that I can only use 9002 as the port number. For example, I created a stream ("ip=127.0.0.1 port=9004") on the target side. When I try to create a stream ("ip=127.0.0.1 port=9004) on the host side, an error message is reported: (0x8007274d)No connection could be made because the target machine actively refused it I am not sure if this issue is ...Show All
