dr.acv's Q&A profile
Visual C# Tekrar
I don't want to use form while drawing screen. ...Show All
SQL Server Combining established columns into one
I have a table whose schema is already defined and populated with data. I would like to create a column named Name that combines the first and last name columns in the following format "last name, first name". I tried to create a formula that concatenated these two columns, but it kept spitting up on me. Any ideas It is best to do the formatting for display purposes on the client. What if you want to change the formatting later You hav e to make schema changes even if you use computed columns or views or queries in SPs. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Decompilable?
How easily can the games compiled with XNA be decompiled I know .NET and C# can be easily decompiled, so I'm just wondering. Looks like decompiling will not be an issue at first Q: How exactly can I share my 360 game to other 360 users Will my game only be available to people with the XNA “Creators Club” subscription Will it be available to all 360 users that have an Xbox Live account A: There is currently no supported way to share binaries on the Xbox 360. Currently, there are four requirements that must be met in order to share a game targeting Xbox 360 which is developed with XNA Game Studio Express. The individual you are planning to share the game with must be logged in to Xbox Live and hav ...Show All
Visual Basic Developing Chart Of Accounts - How to use trees & tree nodes
Hello i m making an accounting application, i m developing a form that loads the company's COA, i want to show the copp's COA in tree my question is how does i make a child node in the tree how do i keep track where is the root node, where is the 1st level 2d level node etc i have a sample in vb 6 which is a piece of cake but haven't got one single in vb.net i m using vb.net 2003, please help also tell how do we sort a data table in vb.net is there some1 who has experience of developing an accounting business application, he/she must have gone through the Chart of accounts module which deserves a tree view, what i simply wanna do is to master tree vew control, populate it through database records, analyze w ...Show All
Visual Studio Packages for Express Editions
I have built the BasicPackage sample and it works great in Visual Studio both with the Experimental hive and full. I exported the registry keys and tested it both ways and it works great. I then updated the .reg files and altered them to write out to VCSExpress. VCSExpress is failing to load these giving the infamous "Package Load Failure" message. - I know the dll is registered correctly (it didn't move between the tests) - I know the registry entires are valid (only the base key I write to changed) - I ran "vscexpress.exe /setup" but it returns immediately, unlike devenv.exe - I ran "vscexpress.exe /log" yet it appears to do nothing, unlike devenv.exe I understand that most of the extensiblity ...Show All
Smart Device Development Loading Resources From DLL
Hi All, I am currently working on a Windows mobile 5.0 application.I have made a dll which contains a string table.I want to load strings from that table using a function named TCHAR* CResAssembly::GetResString(HINSTANCE &hInst,DWORD nStringID) { if (!nStringID) return NULL; if (!LoadString(hInst,nStringID,m_szLoadedString,MAX_PATH)) { DWORD err = GetLastError(); return NULL; } return m_szLoadedString; } this function internally calls Loadstring() Function.I am using load time dynamic linking.So i don't have the first parameter that is "HINSTANCE".When i am loding the dll using loadlibrary and passing the retuned value to GetResString function then i am getting the correct va ...Show All
Visual Studio Express Editions DSN's user ID & password for SQL Server
Hi, I setup a DSN which uses SQL as data source and chooses "With SQL Server authentication using a login ID and password entered by the user" option. The user ID and password are set in the DSN. I'd like to know how to connect the SQL Server through the DSN (ODBC connection) at runtime, without enter or hard code the user ID and password again as the users shouldn't know the user ID and password of the SQL Server. How to use or get the user ID and password has been set with the DSN Thanks, ybc Did I say anything about doing that I don't think so. I encrypt the connection string and save the encrypted string. I have several algorithms for doing this including saving an encrypted key in the program and decrypting ...Show All
Windows Forms Need Help getting image to show up in PictureBox
I have a program that has an openFileDialog and some pictureboxes that I want pictures to show up in according to the images you choose in the openfiledialog from the local harddrive. But I don't know what to type in the GetThumbnailImage(); private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image.GetThumbnailImage(); } Hi, Please try this. private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image =Image.FromFile(AddPic.FileName); } ...Show All
Windows Search Technologies Two or More machines using the same index in a mapped share.
Hello Friends, I am new here, sorry for my english i don't know to much :( I will try explain.... I am trying use 1 machine to make all the index for one microsoft outlook. after this i want to share this index in the network to anothers machines with the WDS and search the index pre maded. This is possible I will try explain better, but i don't know too much english :P My goal is: Have a unique index in the network and all another Windows Desktop Searchs use this unique index to make searchs. Thanks for awser me :) ...Show All
Visual Studio Express Editions Specified cast is not valid.
hey guys, I hang on one issue since last two weeks. I have VB 2005 Express edition and crystal report XI 2. When i try to open external crystal report file using VB 2005 but it shows error as "Specified cast is not valid." This code is under button_click event. I tried to search on site but couldn't find solutions over this. My code as follows: Dim CR As New ReportDocument() CR.Load( Application.startuppath & "\Reports\Widal.rpt" ) Dim pvName As New ParameterValues Dim pvDoc As New ParameterValues Dim pvDate As New ParameterValues Dim p1 As New ParameterDiscreteValue Dim p2 As New ParameterDiscreteValue Dim p3 As New ParameterDiscret ...Show All
Visual Studio Express Editions Visual C++ newbie question
I have just started my first job as C++ programmer. The company uses Visual C++ extensively for the pass few years; they are developing software for Windows Platform utilizing ActiveX, OLE, COM etc.... Coming from Java background where being taught extensively on OOP, i am struggling in this company as i cannot find apparent OOP methodology in their design and coding. Which brings me to this question. Is it not possible to follow OOP methodology when we are developing for Windows platform B'cos all it seems to me right now, the coding are all about manipulating the user interface and no objects representing the interface e.g. a sales form but i there is no Sales object behind that form. So..... is this suppose to be the way to program in v ...Show All
Gadgets using webservices in a gadget
Hi, Has anyone have an example of using a web service in a gadget Thanks in advance, rudgr Hi, you can use wbservice bahavior http://msdn.microsoft.com/workshop/author/webservice/using.asp which is old news but it works in simple cases or you can use XMLHttpRequest object or just use some already made soap client library like this one: http://www.codeplex.com/Wiki/View.aspx ProjectName=JavaScriptSoapClient Niko ...Show All
Windows Forms Thread Killing (That do some Extensive Work)
Hi, I am intantiating thread that do more extensive work, i.e. executing query on FoxPro 2.6 through ODBCDataAdapter with VisualFoxPro driver. Since the query executing is Complex and navigating through 870000 records and taking a time about 2-2.5 minutes. Once the thread is started and goes for data retrival. Meanwhile if I try to close the form. The thread is still running. I have also added Code for killing thread in Closing event of form using Abort() method. But it does not kill the thread. Instead the threadstatus returned is AbortRequested. Please help me in this regard, as Closing event fire the thread should returned and leave the resources. Thanks MaqboolHussain wrote: As you have stated use of syncronization object. ...Show All
Silverlight (formerly WPF/E) design pattern factory
What is it pls Thanks Do you have a specific question on WPF/E and design patterns If not, possibly this book will help. Joe ...Show All
.NET Development Call a public method from other aspx page's code behind
hello, I have the following two aspx page and two correspond cs file. I have a property in default1.aspx.cs named 'Fun' and I tried to get and set this function from default2.aspx.cs. But it gives error that 'Fun' does not exist. do i have any mistake please help. default1.aspx.cs ------------- namespace util { public partial class _Default : System.Web.UI.Page { public string fun = string.Empty; public string Fun { get { return fun; } set { fun = value; } } protected void Page_Load(object sender, EventArgs e) { } } } defult2.aspx.cs --------------- namespace util { public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } ...Show All
