HendrikG's Q&A profile
Visual Studio Express Editions combobox usage with sql statement
I have datagridview , combobox. And I completely set the datasource. I addet some items into combobox. I want to execute the sql statement when I click the items in combobox but it does not work. sql statement for fillby : select * from table 1 where abc like ' " &combobox1& " ' and the click event of combobox1 is : me.table1tableadapter.fillby(me.dataset.table1) it doesn't work.. How can I do this what happens when "it doesn't work" you may wish to try this query: "select * from table 1 where abc like '%" &combobox1. Text & "%' " ...Show All
Smart Device Development Device Emulator using CE 6.0
Hi, I have just downloaded CE 6.0 and having been playing around with trying to configure the device emulator. I signed up for the CE 6.0 Launch and used the Lab manual for developing C# applications. I tried to do the lab. However after building the OSDesign, I tried s ipconfig /d and VS 2005 complained about No IPv4 adapter. What is this and how do you fix it I then built another OSDesign and added lots of additional features. I was then able to receive an IP address for the emualtor. I then started another instance of VS 2005 and developed a basic C# application. The lab manual described the steps to follow. When I did these steps I got the OSDesign of VS 2005 to start up the emulator. I then tried to connect to the device ...Show All
Visual Studio 2008 (Pre-release) How to combine data from two tables into one EntityType?
Using the vNext August CTP and Linq May CTP LINQtoEntities Sample I would like to include the CategoryName of the Northwind Categories table in the Product EntityType, to be able to do following query: var products = from p in db.Products orderby p.CategoryName select p; foreach ( Product p in products) Console .WriteLine( "{0}\t{1}" , p.CategoryName, p.ProductName); What does the entity model have to look like Thanks! Adding to Dan's analysis. Yes. That is the issue here. If an entity is "split" across multiple tables, we require the split be done on the primary key of the entity (i.e., the entity's key must map to the primary keys of those tables) ...Show All
Visual Basic Excel Application in VB
Kindly help me how to open Excel application through VB Code 1. Make reference to Excel Library (COM object) 2. Import to local class 3. Make varibale references: Imports Excel = Microsoft . Office . Interop . Excel Dim OExcel As New Excel . Application OExcel . WindowState = Excel . XlWindowState . xlMaximized OExcel . Visible = True Dim oBook As Excel . Workbook = OExcel . Workbooks . Add Dim oSheet As Excel . Worksheet = oBook . Worksheets (1) ...Show All
Windows Live Developer Forums Problem with games in windows live messanger
Hello, I am trying to play a game with someone on my messanger list and keep getting activex control problems. I have tried a hundred different things and can not get it to work. Please help Thank you ...Show All
Visual C++ string, objects and arrays
Hello. I need help solveing this problem... -----------------------Player.h------------------------------- 1 - #include <string> // Class Shot, struct Keys, Position and Enum Direction are all here... 35 - class Player 36 - { 38 - private: 39 - Position _p; 40 - Direction _d; 41 - Keys _k; 42 - Shot _s[]; 43 - string _m[]; 44 - 45 - public: 46 - Player(int); 47 - void SetMap(string m[]); 48 - } ----------------------------Player.cpp-------------------------- 12 - Player::Player(int s) 13 - { 14 - _p.X = 10; 15 - _p.Y = 10; 16 - _d = LEFT; 17 - _s = Shot[ s ]; 18 - } 19 - void Player::SetMap(string m[]) { _m(m); } ------------------------------------------------------------- I am getting lots of errors ...Show All
Software Development for Windows Vista Creating a virtualized process?
I've got an application (a setup) which must run as full-fledged administrator (with virtualization turned off). However, my setup application must launch one or more of the applications which it is installing. These launched applications need to run as they normally would (IE: not in administrator mode, and with virtualization turned on). Is there a good way to do this I haven't found much documentation. What I'm currently trying to do is restrict a security token to the proper level, then call CreateProcessAsUser and pass it my token. One of the restrictions I'm trying to place on the token is virtualization. However, even though I'm running as full-blown, god-like admin, I don't have permission to ...Show All
Visual Basic getting binary from file.
Private Function TextFromFile( ByRef fInStream As String ) As String Dim i As Integer Dim strText As String i = FreeFile strText = "" FileOpen(i, fInStream, OpenMode.Input, , OpenShare.LockWrite) System.Windows.Forms.Application.DoEvents() strText = StrConv( InputB (LOF(i), i), vbUnicode) --- this is the original code strText = My .Computer.FileSystem.ReadAllBytes(i) ---- I just added this to try FileClose(i) TextFromFile = strText End Function I just converted this code from mVB6 to 2005.net, but you will see a one of the functions don't exist any more (inputB), which is grabbing the binary info from a text file. I attempted to do the same ...Show All
Visual C++ File format
Hi all. Im having trouble making this file read-out look nice. The code is this: #include <fstream> using namespace std; int main(){ char buffer[100]; ifstream file("file.dat",ios::end); if(file.fail()){ printf("File not found.\n"); } printf("File contents read the following:\n"); while(file >> buffer){ printf("\n%s ",buffer); } file.close(); system("pause"); return 0; } The file "file.dat" reads "This is only a test" inside. But when i run the program it reads: File contents read the following: This is only a test ----------------------- So i figured maybe it was a problem with my way of printing the message in the console. So i sw ...Show All
Visual Studio Express Editions Error creating a new datasource
I have created a database file using the Microsoft SQL Server Express Edition which I believe is not complicated at all. When connecting to the Visual Studio (Visual Basic or Visual C#) express edition, and try to add a new Data source. It tells me "Could not get type information < Dataset name >". What is wrong What should I do ...Show All
.NET Development How can I change network interface to ad hoc mode?
I build my app in pocket pc with C#. I want to send data with ad hoc mode to everyone who is in wifi length. Can you give any suggestions to me Thanks ...Show All
SQL Server is there no mod operator in analysis services ?
I am missing a mod (modulo, %) operator in analysis services. I need to find out if a number is even or not (to return the value in the middle of a set) - and if the tupples in the set is event then the average of the two in the middle. HANNES Hi Hannes, Unfortunately, the MDX language in AS 2000 lacked a "mod" operator, and I'm not aware of it being added in AS 2005, either. Of course, it would be great if someone could contradict; meanwhile, I use this technique: A Mod B ==> A - (Int(A/B) * B) ...Show All
SQL Server How to create multiple personal tables on the fly for each registered user of a website using VWD and SQL 2005 Express?
Hello all, Being still a relative newcomer to SQL Server (people may say I'm trying to take on too much being somewhat inexperienced once they read about the problem I'm trying to tackle, but alas...) I'm running into the following problem: I need to create tables in my user database on the fly (using Stored Procedures) so that each table can be created many times in the database but only once for every user. The tables should be named something like "username.Table1", "username.Table2" etc. as opposed to "dbo.Table1". I then want to use the stored procedure from .NET/C# in my web application, so that i can create the complete set of usertables for each of my clients. Now, I tackled the stored proced ...Show All
SQL Server Better was to handle fixed width flat files?
Is there a better way to handle fixed width flat files than the built-in SSIS capability I have a fixed width file with over 400 columns and it looks like I need to manually click lines where each column starts/ends (quite tedious and prone to error). I have an excel version of the spec with start position, length, and data type for each column. So far it looks like the only way to automate this task is to somehow automatically generate the package XML from the spec and paste it into the dtsx file. Anyone know of a better way I think you're posting correctly. Your approach is fascinating, can you provide instructions for what you did ...Show All
Software Development for Windows Vista Workflows and returning data
I have built a workflow which in the end gets an XML document. That document holds the information that has to be used by the presentation layer. The workflow is a part of a Workflow Library. How can I send that information to the presentation layer, I am not able to access any variable declared in the workflow Thanks in advance, Marko Vuksanovic. My understanding is that you can declare a public property in your workflow class that retrieves your XML document, like this: public XmlDocument MyDocument { get { return this.myDocument; } } Then you can handle the WorkflowRuntime.WorkflowCompleted event and access the property as an output parameter: private void workflowRuntime_WorkflowCompleted( ...Show All
