doc203's Q&A profile
Visual C# whats the difference between "string" and "String"?
I am new to c#.Can anybody tell me whats the difference in the use of "string" and "String"in c# Hi, It's practically the same. although " string " looks like a native data type and " String " looks like a system class. both are exactly the same. Although " string " is most widely used. IMO, the String class is a .netframework specific on handling strings. And string is a C# specific... cheers, Paul June A. Domag ...Show All
Visual C++ Calling C# DLL from C++ CLR console application.
Wow, I can't imagine I can't do this simple thing. I have a C# Class with public constructor which expects a String parameter. It is packaged in a DLL. I have a VC++ CLR console application and I want to instantiate that class. Below is my C++ code String ^text = gcnew String(bptr); Gateway gateway = gcnew Gateway(text); // this class is from the C# DLL Hey, when I compiled, I got this error. Error 1 error C2664: 'PrintGateway::Gateway::Gateway(System::String ^)' : cannot convert parameter 1 from 'PrintGateway::Gateway ^' to 'System::String ^' e:\SAP\TestC\TestC\TestC.cpp 48 What could be wrong Please advice me. Urgent and I will reward you. Thanks and best regards cl408e w ...Show All
Visual Studio 2008 (Pre-release) Two questions about IQueryable<T> - Expression{get;} and CS0310
Dear group - I am prototyping a Linq provider for Mysql and have some questions. 1) The first point of entry on my IQueryable implementation is "Expression {get; }". I saw in Hartmut Maennel 's Linq provider for RDF that he returns a ConstExpression. I copied that, and it works. But what is the meaning of that Is that documented anywhere 2). My second question is more of a basic question about generics. I have my generic class, MySqlProvider<T>, and it calls into other generic classes. I get error CS0310 because the outer class can be anything, and one of the inner generic classes calls 'new()'. Code snippet below. The question - how can I cast for a 'newable' class to prevent CS0310 Thanks, George public class MysqlLinqP ...Show All
SQL Server How many user current "connect" to a row in table.
Hi all... Iam a newbie and i have one question want to ask experts ... . I am current working on one App which have some user connect to database at the same time. And i want to know: how many user connect or use (read , update) to one row in a table Could it be possible to know that If you have one solution to solve this problem , please let me know :) ... Could it be done by Software , T-SQL or anything ...., iam happy to know. Thanks all. Louis Davidson wrote: Can you state the underlying purpose to what you are doing It is not a natural thing to be interested in what row a user might be "connected" to. Now if you are talking about locking it for modification, that makes it a bit more clear, and you could us ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D animation
I am trying to make some simple animation, like 5 frames. I have all the bmp files with the frames I want. How do I allow them to be animated in my game and how do I string them together. Each time Draw() is called, you can draw the next picture in the sequence. And then when you hit the last image, revert back to the first one. You can also add a delay between each frame, so the animation will run slower, and at the same pace on every computer. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. get screen resolution & FullScreen
How do I get screen resolution of the computer Because my program will be shared between many computers, I want the program to find the resolution of the computer on wich it is running. By example, on my computer at home, the program will return the value 1024 and the value 768 in order to make 1024 X 768. On my laptop, I will get 1920 and 1200. I want to get the width and the height separately, in two variables. With those values, I will be able to set automatically on each computer the window size as I want it. To resume, I am looking for something like this: width = computer.ScreenResolution.width; height = computer.ScreenResolution.height; Also... If I ever decide to start the game in FullScreen (Make the wind ...Show All
SQL Server How to connect to Analysis Services with Excel 2007 Data Mining Add In?
I downloaded a trial version of office 2007 and the data mining addin. I do not have an automatic connection to Analysis Services, so most functionality does not work. Is it possible to configure a connection with a trial version If so, does anyone know what the server name is and how to configure it In Excel, when you try to create a new connection to Analysis Service, you might want to share what is the error message when you click on Test connection (assuming you type localhost for the Server name). ...Show All
Visual Basic Need help storing a color, font & size in settings & retreiving them too
I need to be able to store the various properties of a font in the Settings area in .NET 2.0 and them retreive them as well. I know how to store the String, Boolean, Integer, etc. values & retreive them, but I don't know how to store & retreive System.Drawing.Color, System.Drawing.Font, etc. values & then retreive them. Here's a high level of what I need to happen. 1. I run my application 2. I select Edit Font from the menu 3. I get a FontDialog 4. I choose a Font, Color & Size. Problem 1 - I need to store the Font, Color, Size in the My Project -> Settings area so I can retreive them next time I run the application. Currently I use this, but I need to know the right way to do it. My.Settings.m_strLabel1 ...Show All
Visual C# bool and objects
I have an collection of objects(arraylist)...in my list is want to check to see if properties within my arraylist have changed by using a _IsDirty flag...but i get an error saying cannot convert object to bool can anyone help me out here [code languge="C#"] for ( int x = 0; x < ArrayList.Count; x++) { if (Convert.ToBoolean(Arraylist[x]) == this ._IsDirty) { } [/code] how should this be yes that looks ok. A better way would be to use the Generic List<> collection as you don't have to do any casting as you are right now....the Generic List<> will hold a type of an object (Tracking.BusinessObjects.OrderLegDetail in this case) which means you don't need to do any casting and can ac ...Show All
Visual Studio Express Editions VC6 to VC Express 2005 error!
Hello; I recently start moving from VC++ 6 to VC++ Express 2005. I read the book "Game Programming all in One" from Premier Press and practice all the examples with VC++ 6 having no troubles at all. But when I start coding all the examples for VCE the problems start. Initially nothing difficult, some type errors, "some functions are deprecated because more secure versions are available", another warnings, etc. But, when I tried to compile a game (working fine in VC++ 6) called Monster I found an error I couldn't solve, the error message is next: 1>\chapter 07\monster\conlib.cpp(75) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR' Types pointed to are unrelated; conv ...Show All
SQL Server Problem with Command exec job step in SQL2000 sp3
Hi, I have a command exec SQL Agent job step in sql 2000 sp3 that is like this C: cd \Program Files\Microsoft Analysis Services\Bin call "msmdarch" /r HKSH1-FILE2 "\Program Files\Microsoft Analysis Services\Data\" "\cubes\Warlock.cab" "\cubes\MyRestoreLog.log" "C:\Temp" The problem I have with this code is that it runs fine in a cmd window but fail with error when I try to run it from the job. Executed as user: ONSEMI\smteam. The process could not be created for step 10 of job 0x4A0900B6BF0B6644AF720DFA384A2425 (reason: Access is denied). The step failed. The user that owns the job is admin on the box. Any idea This was working a few months ago. Thanks, Philippe ...Show All
Visual Studio Visual Studio Hosting process
Hi folks, I've been using Visual C# 2005 Express Edition for the last couple of weeks. It was working perfectly fine until I peformed a registry cleanup (however, I'm not sure if this is the reason for the problem to occur). Whenever I tried to debug applications, I got an error message which read: Error while trying to run project: Unable to start debugging. The binding handle is invalid. I fixed this problem by navigating to Projects > (Project Name) Properties > Debug and disabling 'Visual Studio hosting process'. This fixed the problem for good. However, I was wondering: What does Visual Studio hosting process do How would disabling it affect Visual Studio Why does this, " ...Show All
SQL Server Matrix Report Textbox Expression
=IIF( Sum(Fields!Percentile.Value, "RegionalSnaps") >= .10, "Yellow", "White") I only want the ones above 10% to be yellow, otherwise white. Any ideas anyone on why the entire range of cells are yellow and not just the one above 10% Ive tried both .10 and 10 for the value, and still the same thing Because you're doing a sum, it's doing it for the entire dataset. If this expression is in a grouping e.g. table, matrix, list etc... then try changing the expresison to =IIF( Fields!Percentile.Value >= .10, "Yellow", "White") Effectively evalueated for every row in the group. ...Show All
Internet Explorer Development IE7 - File Not Found ieframe.dll\1
Hello, After upgrading to IE7, all of my programs with the "Microsoft Internet Controls" (i.e. Webbrowser) are breaking when I load them in code (compiled still works though). I get the following error: "File Not found 'C:\Windows\system32\ieframe.dll\1' However, if i look in my references, all I can find that is there is the reference to shdocvw.dll, no ieframe dll. If I open a new project and add the controls, then I get the same error. To me there is something broken between the two. The strange thing is, it worked fine yesterday. I don't have my computer set to do automatic updates and I didn't do any updates last night. Anyone else having this issue Regards, Ryan I ha ...Show All
.NET Development DeleteCommand
I want to code deletecommand without using CommandBuilder.There are two table customers and orders.I use dataset to store each table and their relation.I dont use relation property(cascade) I wanna do that manually.so make all operations on this dataset Finally,update this dataset to database. But I didn't code deletecommand because There are two tables.I am confused to code this //build delete command SqlCommand delCmd = new SqlCommand( "delete from customers where No=@No" ,con); delCmd.Parameters.Add( "@No" , SqlDbType.Int, 4 , "No" ); sqlDa.DeleteCommand = delCmd; but there are an error.because I make delete operation on two table...How do I code deletecommand on two table,customers and orders ...Show All
